Passed
Push — v3.2.x ( 468603...34dff2 )
by smiley
02:11
created
src/Data/QRMatrix.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
 		18 => [6, 30, 56, 82],
64 64
 		19 => [6, 30, 58, 86],
65 65
 		20 => [6, 34, 62, 90],
66
-		21 => [6, 28, 50, 72,  94],
67
-		22 => [6, 26, 50, 74,  98],
66
+		21 => [6, 28, 50, 72, 94],
67
+		22 => [6, 26, 50, 74, 98],
68 68
 		23 => [6, 30, 54, 78, 102],
69 69
 		24 => [6, 28, 54, 80, 106],
70 70
 		25 => [6, 32, 58, 84, 110],
71 71
 		26 => [6, 30, 58, 86, 114],
72 72
 		27 => [6, 34, 62, 90, 118],
73
-		28 => [6, 26, 50, 74,  98, 122],
73
+		28 => [6, 26, 50, 74, 98, 122],
74 74
 		29 => [6, 30, 54, 78, 102, 126],
75 75
 		30 => [6, 26, 52, 78, 104, 130],
76 76
 		31 => [6, 30, 56, 82, 108, 134],
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
 	// ECC level -> mask pattern
131 131
 	protected const formatPattern = [
132
-		[ // L
132
+		[// L
133 133
 			0b111011111000100,
134 134
 			0b111001011110011,
135 135
 			0b111110110101010,
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 			0b110110001000001,
140 140
 			0b110100101110110,
141 141
 		],
142
-		[ // M
142
+		[// M
143 143
 			0b101010000010010,
144 144
 			0b101000100100101,
145 145
 			0b101111001111100,
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 			0b100111110010111,
150 150
 			0b100101010100000,
151 151
 		],
152
-		[ // Q
152
+		[// Q
153 153
 			0b011010101011111,
154 154
 			0b011000001101000,
155 155
 			0b011111100110001,
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 			0b010111011011010,
160 160
 			0b010101111101101,
161 161
 		],
162
-		[ // H
162
+		[// H
163 163
 			0b001011010001001,
164 164
 			0b001001110111110,
165 165
 			0b001110011100111,
@@ -393,8 +393,8 @@  discard block
 block discarded – undo
393 393
 
394 394
 		for($c = 0; $c < 3; $c++){
395 395
 			for($i = 0; $i < 8; $i++){
396
-				$this->set($h[$c][0]     , $h[$c][1] + $i, false, $this::M_SEPARATOR);
397
-				$this->set($v[$c][0] - $i, $v[$c][1]     , false, $this::M_SEPARATOR);
396
+				$this->set($h[$c][0], $h[$c][1] + $i, false, $this::M_SEPARATOR);
397
+				$this->set($v[$c][0] - $i, $v[$c][1], false, $this::M_SEPARATOR);
398 398
 			}
399 399
 		}
400 400
 
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 		foreach($this->matrix as $y => $row){
622 622
 			foreach($row as $x => $val){
623 623
 				// out of bounds, skip
624
-				if($x < $start || $y < $start ||$x >= $end || $y >= $end){
624
+				if($x < $start || $y < $start || $x >= $end || $y >= $end){
625 625
 					continue;
626 626
 				}
627 627
 				// a match
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 		$size              = $this->moduleCount - 1;
651 651
 		$mask              = $this->getMask($this->maskPattern);
652 652
 
653
-		for($i = $size, $y = $size, $inc = -1, $byteIndex = 0, $bitIndex  = 7; $i > 0; $i -= 2){
653
+		for($i = $size, $y = $size, $inc = -1, $byteIndex = 0, $bitIndex = 7; $i > 0; $i -= 2){
654 654
 
655 655
 			if($i === 6){
656 656
 				$i--;
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 				$y += $inc;
686 686
 
687 687
 				if($y < 0 || $this->moduleCount <= $y){
688
-					$y   -=  $inc;
688
+					$y   -= $inc;
689 689
 					$inc  = -$inc;
690 690
 
691 691
 					break;
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
 	 */
715 715
 	protected function getMask(int $maskPattern):Closure{
716 716
 
717
-		if((0b111 & $maskPattern) !== $maskPattern){
717
+		if((0b111&$maskPattern) !== $maskPattern){
718 718
 			throw new QRCodeDataException('invalid mask pattern'); // @codeCoverageIgnore
719 719
 		}
720 720
 
Please login to merge, or discard this patch.