mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 18:41:04 +00:00
removed @todo
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user