X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=pq%2FConverter.md;h=f9ad4cfb3a0bcd4702198ce72e2a8d70062cb82e;hb=680748775bd50797f22351bddb7f52829ffc17ba;hp=dee32c46780cdb18de98dcb67a2c68412d5ae59e;hpb=e6f6384f6f9bf4cf6b40fefe3262bcefccbed2a3;p=mdref%2Fmdref-pq 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)); }