Ver Fonte

removed @todo

smiley há 10 anos atrás
pai
commit
ee9dc57917
2 ficheiros alterados com 3 adições e 4 exclusões
  1. 2 3
      src/Output/QRImage.php
  2. 1 1
      src/Output/QROutputBase.php

+ 2 - 3
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));
 

+ 1 - 1
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])