Completed
Push — Rover/albertg ( 3c48fc )
by Albert
01:56
created
src/Rover/Domain/Model/Movement.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         $this->movement = $movement;
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $movement
16
+     */
14 17
     public static function fromString($movement): Movement
15 18
     {
16 19
         return new self($movement);
Please login to merge, or discard this patch.
src/Rover/Domain/Model/Rover.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         if ($movement->isForward())
40 40
         {
41 41
             $new_position = $this->position->moveForward($this->orientation);
42
-        }
43
-        else
42
+        } else
44 43
         {
45 44
             $new_position = $this->position->moveBackward($this->orientation);
46 45
         }
Please login to merge, or discard this patch.