Completed
Push — master ( 83a961...d0a8f9 )
by smiley
01:39
created
src/Output/QRImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 		// avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect
70 70
 		// https://stackoverflow.com/a/10455217
71 71
 		$tbg = $this->options->imageTransparencyBG;
72
-		$background  = \imagecolorallocate($this->image, ...$tbg);
72
+		$background = \imagecolorallocate($this->image, ...$tbg);
73 73
 
74 74
 		if((bool)$this->options->imageTransparent && \in_array($this->options->outputType, $this::TRANSPARENCY_TYPES, true)){
75 75
 			\imagecolortransparent($this->image, $background);
Please login to merge, or discard this patch.
src/Data/QRMatrix.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -59,14 +59,14 @@  discard block
 block discarded – undo
59 59
 		18 => [6, 30, 56, 82],
60 60
 		19 => [6, 30, 58, 86],
61 61
 		20 => [6, 34, 62, 90],
62
-		21 => [6, 28, 50, 72,  94],
63
-		22 => [6, 26, 50, 74,  98],
62
+		21 => [6, 28, 50, 72, 94],
63
+		22 => [6, 26, 50, 74, 98],
64 64
 		23 => [6, 30, 54, 78, 102],
65 65
 		24 => [6, 28, 54, 80, 106],
66 66
 		25 => [6, 32, 58, 84, 110],
67 67
 		26 => [6, 30, 58, 86, 114],
68 68
 		27 => [6, 34, 62, 90, 118],
69
-		28 => [6, 26, 50, 74,  98, 122],
69
+		28 => [6, 26, 50, 74, 98, 122],
70 70
 		29 => [6, 30, 54, 78, 102, 126],
71 71
 		30 => [6, 26, 52, 78, 104, 130],
72 72
 		31 => [6, 30, 56, 82, 108, 134],
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 	// ECC level -> mask pattern
127 127
 	protected const formatPattern = [
128
-		[ // L
128
+		[// L
129 129
 			0b111011111000100,
130 130
 			0b111001011110011,
131 131
 			0b111110110101010,
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 			0b110110001000001,
136 136
 			0b110100101110110,
137 137
 		],
138
-		[ // M
138
+		[// M
139 139
 			0b101010000010010,
140 140
 			0b101000100100101,
141 141
 			0b101111001111100,
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			0b100111110010111,
146 146
 			0b100101010100000,
147 147
 		],
148
-		[ // Q
148
+		[// Q
149 149
 			0b011010101011111,
150 150
 			0b011000001101000,
151 151
 			0b011111100110001,
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 			0b010111011011010,
156 156
 			0b010101111101101,
157 157
 		],
158
-		[ // H
158
+		[// H
159 159
 			0b001011010001001,
160 160
 			0b001001110111110,
161 161
 			0b001110011100111,
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
 
367 367
 		for($c = 0; $c < 3; $c++){
368 368
 			for($i = 0; $i < 8; $i++){
369
-				$this->set($h[$c][0]     , $h[$c][1] + $i, false, $this::M_SEPARATOR);
370
-				$this->set($v[$c][0] - $i, $v[$c][1]     , false, $this::M_SEPARATOR);
369
+				$this->set($h[$c][0], $h[$c][1] + $i, false, $this::M_SEPARATOR);
370
+				$this->set($v[$c][0] - $i, $v[$c][1], false, $this::M_SEPARATOR);
371 371
 			}
372 372
 		}
373 373
 
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 			for($i = 0; $i < 18; $i++){
443 443
 				$a = (int)\floor($i / 3);
444 444
 				$b = $i % 3 + $this->moduleCount - 8 - 3;
445
-				$v = !$test && (($bits >> $i) & 1) === 1;
445
+				$v = !$test && (($bits >> $i)&1) === 1;
446 446
 
447 447
 				$this->set($b, $a, $v, $this::M_VERSION); // ne
448 448
 				$this->set($a, $b, $v, $this::M_VERSION); // sw
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 		$bits = $this::formatPattern[QRCode::ECC_MODES[$this->eclevel]][$maskPattern] ?? 0;
466 466
 
467 467
 		for($i = 0; $i < 15; $i++){
468
-			$v = !$test && (($bits >> $i) & 1) === 1;
468
+			$v = !$test && (($bits >> $i)&1) === 1;
469 469
 
470 470
 			if($i < 6){
471 471
 				$this->set(8, $i, $v, $this::M_FORMAT);
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 		$byteCount         = \count($data);
547 547
 		$size              = $this->moduleCount - 1;
548 548
 
549
-		for($i = $size, $y = $size, $inc = -1, $byteIndex = 0, $bitIndex  = 7; $i > 0; $i -= 2){
549
+		for($i = $size, $y = $size, $inc = -1, $byteIndex = 0, $bitIndex = 7; $i > 0; $i -= 2){
550 550
 
551 551
 			if($i === 6){
552 552
 				$i--;
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
 						$v = false;
561 561
 
562 562
 						if($byteIndex < $byteCount){
563
-							$v = (($data[$byteIndex] >> $bitIndex) & 1) === 1;
563
+							$v = (($data[$byteIndex] >> $bitIndex)&1) === 1;
564 564
 						}
565 565
 
566 566
 						if($this->getMask($x, $y, $maskPattern) === 0){
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 				$y += $inc;
582 582
 
583 583
 				if($y < 0 || $this->moduleCount <= $y){
584
-					$y   -=  $inc;
584
+					$y   -= $inc;
585 585
 					$inc  = -$inc;
586 586
 
587 587
 					break;
Please login to merge, or discard this patch.