@@ -579,6 +579,7 @@ class QRMatrix{
// clear the space
foreach($this->matrix as $y => $row){
+ /** @SuppressWarnings(PHPMD.UnusedLocalVariable) */
foreach($row as $x => $val){
// out of bounds, skip
if($x < $start || $y < $start ||$x >= $end || $y >= $end){
@@ -206,6 +206,7 @@ final class Binarizer{
private function calculateBlackPoints(int $subWidth, int $subHeight, int $width, int $height):array{
$blackPoints = array_fill(0, $subHeight, 0);
foreach($blackPoints as $key => $point){
$blackPoints[$key] = array_fill(0, $subWidth, 0);
}
@@ -54,7 +54,7 @@ final class PerspectiveTransform{
/**
- *
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function quadrilateralToQuadrilateral(
float $x0, float $y0, float $x1, float $y1, float $x2, float $y2, float $x3, float $y3,
@@ -6,6 +6,8 @@
* @author Smiley <smiley@chillerlan.net>
* @copyright 2015 Smiley
* @license MIT
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
namespace chillerlan\QRCode;