Passed
Push — master ( ea64ab...0482fa )
by Daan
01:28
created
src/Year2015/Day1.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.