@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | for($row = 0; $row < $this->pixelCount; $row++){ |
| 253 | 253 | for($col = 0; $col < $this->pixelCount - 6; $col++){ |
| 254 | 254 | if( |
| 255 | - $this->matrix[$row][$col ] |
|
| 255 | + $this->matrix[$row][$col ] |
|
| 256 | 256 | && !$this->matrix[$row][$col + 1] |
| 257 | 257 | && $this->matrix[$row][$col + 2] |
| 258 | 258 | && $this->matrix[$row][$col + 3] |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | for($col = 0; $col < $this->pixelCount; $col++){ |
| 269 | 269 | for($row = 0; $row < $this->pixelCount - 6; $row++){ |
| 270 | 270 | if( |
| 271 | - $this->matrix[$row ][$col] |
|
| 271 | + $this->matrix[$row ][$col] |
|
| 272 | 272 | && !$this->matrix[$row + 1][$col] |
| 273 | 273 | && $this->matrix[$row + 2][$col] |
| 274 | 274 | && $this->matrix[$row + 3][$col] |
@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | if($this->options->type === QRCode::OUTPUT_STRING_JSON){ |
| 50 | 50 | return json_encode($this->matrix); |
| 51 | 51 | } |
| 52 | - |
|
| 53 | 52 | else if($this->options->type === QRCode::OUTPUT_STRING_TEXT){ |
| 54 | 53 | $text = ''; |
| 55 | 54 | |
@@ -65,7 +64,6 @@ discard block |
||
| 65 | 64 | |
| 66 | 65 | return $text; |
| 67 | 66 | } |
| 68 | - |
|
| 69 | 67 | else if($this->options->type === QRCode::OUTPUT_STRING_HTML){ |
| 70 | 68 | $html = ''; |
| 71 | 69 | |