diff --git a/src/Output/QRImage.php b/src/Output/QRImage.php index 9161b9f6f..d61be5ca3 100644 --- a/src/Output/QRImage.php +++ b/src/Output/QRImage.php @@ -11,6 +11,7 @@ */ namespace chillerlan\QRCode\Output; + use chillerlan\QRCode\QRCode; /** @@ -33,9 +34,7 @@ class QRImage extends QROutputBase implements QROutputInterface{ $this->options = new QRImageOptions; } - // clamp input values - // todo: determine sane values - + // clamp input (determine sane values!) $this->options->pixelSize = max(1, min(25, (int)$this->options->pixelSize)); $this->options->marginSize = max(0, min(25, (int)$this->options->marginSize)); diff --git a/src/Output/QROutputBase.php b/src/Output/QROutputBase.php index 1edc083c6..1cc00cdcd 100644 --- a/src/Output/QROutputBase.php +++ b/src/Output/QROutputBase.php @@ -41,7 +41,7 @@ class QROutputBase{ public function setMatrix(array $matrix){ $this->pixelCount = count($matrix); - // todo: specify valid range + // specify valid range? if($this->pixelCount < 2 || !isset($matrix[$this->pixelCount - 1]) || $this->pixelCount !== count($matrix[$this->pixelCount - 1])