Passed
Push — v5 ( 84eb31...95cac3 )
by smiley
01:49
created
src/Decoder/BitMatrixParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			? $this->bitMatrix->get($j, $i)
69 69
 			: $this->bitMatrix->get($i, $j);
70 70
 
71
-		return $bit ? ($versionBits << 1) | 0x1 : $versionBits << 1;
71
+		return $bit ? ($versionBits << 1)|0x1 : $versionBits << 1;
72 72
 	}
73 73
 
74 74
 	/**
@@ -187,8 +187,8 @@  discard block
 block discarded – undo
187 187
 		// Should return null, but, some QR codes apparently do not mask this info.
188 188
 		// Try again by actually masking the pattern first.
189 189
 		$this->parsedFormatInfo = $this->doDecodeFormatInformation(
190
-			$formatInfoBits1 ^ FormatInformation::MASK_QR,
191
-			$formatInfoBits2 ^ FormatInformation::MASK_QR
190
+			$formatInfoBits1^FormatInformation::MASK_QR,
191
+			$formatInfoBits2^FormatInformation::MASK_QR
192 192
 		);
193 193
 
194 194
 		if($this->parsedFormatInfo !== null){
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 	 * @return \chillerlan\QRCode\Common\FormatInformation|null information about the format it specifies, or null
207 207
 	 *                                                          if doesn't seem to match any known pattern
208 208
 	 */
209
-	private function doDecodeFormatInformation(int $maskedFormatInfo1, int $maskedFormatInfo2):?FormatInformation{
209
+	private function doDecodeFormatInformation(int $maskedFormatInfo1, int $maskedFormatInfo2): ?FormatInformation{
210 210
 		// Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing
211 211
 		$bestDifference = PHP_INT_MAX;
212 212
 		$bestFormatInfo = 0;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 	 *
304 304
 	 * @return \chillerlan\QRCode\Common\Version|null
305 305
 	 */
306
-	private function decodeVersionInformation(int $versionBits):?Version{
306
+	private function decodeVersionInformation(int $versionBits): ?Version{
307 307
 		$bestDifference = PHP_INT_MAX;
308 308
 		$bestVersion    = 0;
309 309
 
Please login to merge, or discard this patch.