Passed
Push — main ( a2fa2c...0301e0 )
by smiley
01:54
created
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/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/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.