From: Michael Wallner Date: Tue, 30 Sep 2014 12:52:36 +0000 (+0200) Subject: missing bits X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=680748775bd50797f22351bddb7f52829ffc17ba;p=mdref%2Fmdref-pq missing bits --- diff --git a/pq/Converter.md b/pq/Converter.md index dee32c4..f9ad4cf 100644 --- a/pq/Converter.md +++ b/pq/Converter.md @@ -52,7 +52,7 @@ Interface for type conversions. * @param $box Box * @see pq\Converter::convertToString() */ - function convertToString($box, $type = NULL) { + function convertToString($box, $type) { return sprintf("(%F,%F),(%F,%F)", $box->p1->x, $box->p1->y, $box->p2->x, $box->p2->y @@ -64,7 +64,7 @@ Interface for type conversions. * @param string $data * @see pq\Converter::convertFromString() */ - function convertFromString($data, $type = NULL) { + function convertFromString($data, $type) { list($p1x, $p1y, $p2x, $p2y) = sscanf($data, "(%f,%f),(%f,%f)"); return new Box(new Point($p1x, $p1y), new Point($p2x, $p2y)); } diff --git a/pq/Converter/convertFromString.md b/pq/Converter/convertFromString.md index 1afbec9..08af540 100644 --- a/pq/Converter/convertFromString.md +++ b/pq/Converter/convertFromString.md @@ -18,7 +18,7 @@ Convert a string received from the PostgreSQL server back to a PHP type.