@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $basementPostion = 1; |
| 49 | 49 | $inBasement = false; |
| 50 | - while(!$inBasement) { |
|
| 50 | + while (!$inBasement) { |
|
| 51 | 51 | foreach ($this->directions as $position => $direction) { |
| 52 | 52 | if ($direction === self::FLOOR_UP) { |
| 53 | 53 | $floor++; |
@@ -43,7 +43,9 @@ |
||
| 43 | 43 | |
| 44 | 44 | public function calculateFirstBasementDirectionPosition(int $floor = self::STARTING_FLOOR): int |
| 45 | 45 | { |
| 46 | - if ($floor < 0) return 0; |
|
| 46 | + if ($floor < 0) { |
|
| 47 | + return 0; |
|
| 48 | + } |
|
| 47 | 49 | |
| 48 | 50 | $basementPostion = 1; |
| 49 | 51 | $inBasement = false; |