Skip to content

Commit c24f0c9

Browse files
committed
💄
1 parent 0e16cc7 commit c24f0c9

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/Data/QRMatrix.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ public function setLogoSpace(int $width, int $height = null, int $startX = null,
579579

580580
// clear the space
581581
foreach($this->matrix as $y => $row){
582+
/** @SuppressWarnings(PHPMD.UnusedLocalVariable) */
582583
foreach($row as $x => $val){
583584
// out of bounds, skip
584585
if($x < $start || $y < $start ||$x >= $end || $y >= $end){

src/Decoder/Binarizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ private function getHistogramBlackMatrix(int $width, int $height):BitMatrix{
206206
private function calculateBlackPoints(int $subWidth, int $subHeight, int $width, int $height):array{
207207
$blackPoints = array_fill(0, $subHeight, 0);
208208

209+
/** @SuppressWarnings(PHPMD.UnusedLocalVariable) */
209210
foreach($blackPoints as $key => $point){
210211
$blackPoints[$key] = array_fill(0, $subWidth, 0);
211212
}

src/Detector/PerspectiveTransform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private function set(
5454
}
5555

5656
/**
57-
*
57+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
5858
*/
5959
public function quadrilateralToQuadrilateral(
6060
float $x0, float $y0, float $x1, float $y1, float $x2, float $y2, float $x3, float $y3,

src/QRCode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* @author Smiley <[email protected]>
77
* @copyright 2015 Smiley
88
* @license MIT
9+
*
10+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
911
*/
1012

1113
namespace chillerlan\QRCode;

0 commit comments

Comments
 (0)