Passed
Push — main ( 3d73fa...0a4a5a )
by smiley
09:41 queued 08:00
created
src/Common/MaskPattern.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public function __construct(int $maskPattern){
60 60
 
61
-		if((0b111 & $maskPattern) !== $maskPattern){
61
+		if((0b111&$maskPattern) !== $maskPattern){
62 62
 			throw new QRCodeException('invalid mask pattern');
63 63
 		}
64 64
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 						$penalty += 3 + ($numSameBitCells - 5);
150 150
 					}
151 151
 
152
-					$numSameBitCells = 1;  // Include the cell itself.
152
+					$numSameBitCells = 1; // Include the cell itself.
153 153
 					$prevBit         = $bit;
154 154
 				}
155 155
 			}
Please login to merge, or discard this patch.
src/Output/QRMarkup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 
165 165
 			$cssClass = implode(' ', [
166 166
 				'qr-'.$M_TYPE,
167
-				($M_TYPE & QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light',
167
+				($M_TYPE&QRMatrix::IS_DARK) === QRMatrix::IS_DARK ? 'dark' : 'light',
168 168
 				$this->options->cssClass,
169 169
 			]);
170 170
 
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
@@ -152,7 +152,8 @@
 block discarded – undo
152 152
 					}
153 153
 				}
154 154
 			}
155
-			catch(Throwable $aioobe){//ArrayIndexOutOfBoundsException
155
+			catch(Throwable $aioobe){
156
+//ArrayIndexOutOfBoundsException
156 157
 				// This feels wrong, but, sometimes if the finder patterns are misidentified, the resulting
157 158
 				// transform gets "twisted" such that it maps a straight line of points to a set of points
158 159
 				// whose endpoints are in bounds, but others are not. There is probably some mathematical
Please login to merge, or discard this patch.