removed @todo

This commit is contained in:
smiley
2016-02-08 11:42:03 +01:00
parent 0b58ce1136
commit ee9dc57917
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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
View File
@@ -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])