This commit is contained in:
smiley
2023-03-11 04:11:37 +01:00
parent 0e16cc7bf5
commit c24f0c9fd5
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -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){
+1
View File
@@ -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);
/** @SuppressWarnings(PHPMD.UnusedLocalVariable) */
foreach($blackPoints as $key => $point){
$blackPoints[$key] = array_fill(0, $subWidth, 0);
}
+1 -1
View File
@@ -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,
+2
View File
@@ -6,6 +6,8 @@
* @author Smiley <smiley@chillerlan.net>
* @copyright 2015 Smiley
* @license MIT
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
namespace chillerlan\QRCode;