Completed
Pull Request — master (#5)
by
unknown
04:28
created
src/QRCode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 			foreach($range2 as $col){
293 293
 
294 294
 				if(
295
-					    $this->matrix[$row][$col    ]
295
+						$this->matrix[$row][$col    ]
296 296
 					&& !$this->matrix[$row][$col + 1]
297 297
 					&&  $this->matrix[$row][$col + 2]
298 298
 					&&  $this->matrix[$row][$col + 3]
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 			foreach($range2 as $row){
311 311
 
312 312
 				if(
313
-					    $this->matrix[$row    ][$col]
313
+						$this->matrix[$row    ][$col]
314 314
 					&& !$this->matrix[$row + 1][$col]
315 315
 					&&  $this->matrix[$row + 2][$col]
316 316
 					&&  $this->matrix[$row + 3][$col]
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 				for($row = -2; $row <= 2; $row++){
650 650
 					for($col = -2; $col <= 2; $col++){
651 651
 						$this->matrix[$posI + $row][$posJ + $col] =
652
-							    $row === -2 || $row === 2
652
+								$row === -2 || $row === 2
653 653
 							||  $col === -2 || $col === 2
654 654
 							|| ($row ===  0 && $col === 0);
655 655
 					}
Please login to merge, or discard this patch.
src/Output/QRImage.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,9 @@
 block discarded – undo
142 142
 			foreach($row AS $c=>$pixel){
143 143
 				if($pixel){
144 144
 					$count++;
145
-					if($from < 0)
146
-						$from = $c;
145
+					if($from < 0){
146
+											$from = $c;
147
+					}
147 148
 				}
148 149
 				else if($from >= 0){
149 150
 					echo '<rect x="' . ($from * $this->options->pixelSize + $this->options->marginSize) . '" y="' . ($r * $this->options->pixelSize + $this->options->marginSize) . '" width="' . ($this->options->pixelSize * $count) . '" height="' . $this->options->pixelSize . '" class="' . $class . '" />';
Please login to merge, or discard this patch.