@@ -292,7 +292,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |