Passed
Push — main ( a2fa2c...0301e0 )
by smiley
01:54
created
src/Common/GF256.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
 	private const logTable = [
40 40
 		  0, // the first value is never returned, index starts at 1
41
-		       0,   1,  25,   2,  50,  26, 198,   3, 223,  51, 238,  27, 104, 199,  75,
41
+			   0,   1,  25,   2,  50,  26, 198,   3, 223,  51, 238,  27, 104, 199,  75,
42 42
 		  4, 100, 224,  14,  52, 141, 239, 129,  28, 193, 105, 248, 200,   8,  76, 113,
43 43
 		  5, 138, 101,  47, 225,  36,  15,  33,  53, 147, 142, 218, 240,  18, 130,  69,
44 44
 		 29, 181, 194, 125, 106,  39, 249, 185, 201, 154,   9, 120,  77, 228, 114, 166,
Please login to merge, or discard this patch.
src/Common/ReedSolomonDecoder.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,8 @@
 block discarded – undo
143 143
 		// This is a direct application of Chien's search
144 144
 		$numErrors = $errorLocator->getDegree();
145 145
 
146
-		if($numErrors === 1){ // shortcut
146
+		if($numErrors === 1){
147
+// shortcut
147 148
 			return [$errorLocator->getCoefficient(1)];
148 149
 		}
149 150
 
Please login to merge, or discard this patch.
src/Detector/FinderPatternFinder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -580,7 +580,7 @@
 block discarded – undo
580 580
 					$this->hasSkipped = true;
581 581
 
582 582
 					return (int)((abs($firstConfirmedCenter->getX() - $center->getX()) -
583
-					              abs($firstConfirmedCenter->getY() - $center->getY())) / 2);
583
+								  abs($firstConfirmedCenter->getY() - $center->getY())) / 2);
584 584
 				}
585 585
 			}
586 586
 		}
Please login to merge, or discard this patch.
src/Detector/Detector.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@
 block discarded – undo
59 59
 			$estAlignmentY       = (int)($topLeft->getY() + $correctionToTopLeft * ($bottomRightY - $topLeft->getY()));
60 60
 
61 61
 			// Kind of arbitrary -- expand search radius before giving up
62
-			for($i = 4; $i <= 16; $i <<= 1){//??????????
62
+			for($i = 4; $i <= 16; $i <<= 1){
63
+//??????????
63 64
 				$alignmentPattern = $this->findAlignmentInRegion($moduleSize, $estAlignmentX, $estAlignmentY, (float)$i);
64 65
 
65 66
 				if($alignmentPattern !== null){
Please login to merge, or discard this patch.
src/QROptionsTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 	 *
232 232
 	 * @see \chillerlan\QRCode\QROptions::$imageTransparencyBG
233 233
 	 * @see https://github.com/chillerlan/php-qrcode/discussions/121
234
- 	 */
234
+	 */
235 235
 	protected bool $imageTransparent = true;
236 236
 
237 237
 	/**
Please login to merge, or discard this patch.
src/Detector/GridSampler.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,8 @@
 block discarded – undo
153 153
 				}
154 154
 			}
155 155
 			// @codeCoverageIgnoreStart
156
-			catch(Throwable $aioobe){//ArrayIndexOutOfBoundsException
156
+			catch(Throwable $aioobe){
157
+//ArrayIndexOutOfBoundsException
157 158
 				// This feels wrong, but, sometimes if the finder patterns are misidentified, the resulting
158 159
 				// transform gets "twisted" such that it maps a straight line of points to a set of points
159 160
 				// whose endpoints are in bounds, but others are not. There is probably some mathematical
Please login to merge, or discard this patch.
src/Detector/AlignmentPatternFinder.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@
 block discarded – undo
85 85
 
86 86
 				if($this->matrix->check($j, $i)){
87 87
 					// Black pixel
88
-					if($currentState === 1){ // Counting black pixels
88
+					if($currentState === 1){
89
+// Counting black pixels
89 90
 						$stateCount[$currentState]++;
90 91
 					}
91 92
 					// Counting white pixels
Please login to merge, or discard this patch.