@@ -19,7 +19,6 @@ |
||
| 19 | 19 | private $store; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @param RobotStoreInterface $file |
|
| 23 | 22 | */ |
| 24 | 23 | public function __construct(RobotStoreInterface $store) |
| 25 | 24 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\Console\Command\Command; |
| 14 | 14 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 17 | 16 | use Reith\ToyRobot\Messaging\Query\RobotReport; |
| 18 | 17 | |
| 19 | 18 | class Report extends Command |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use MathPHP\LinearAlgebra\Vector; |
| 14 | 14 | use Psr\Log\LoggerInterface; |
| 15 | 15 | use Reith\ToyRobot\Domain\Robot\RobotRepositoryInterface; |
| 16 | -use Reith\ToyRobot\Domain\Robot\Place; |
|
| 17 | 16 | use Reith\ToyRobot\Domain\Space\SpaceInterface; |
| 18 | 17 | use Reith\ToyRobot\Messaging\Command\PlaceRobot; |
| 19 | 18 | use Reith\ToyRobot\Messaging\Annotation\Subscribe; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @return Vector |
|
| 37 | + * @return Vector[] |
|
| 38 | 38 | */ |
| 39 | 39 | protected function defaultPosition(): Vector |
| 40 | 40 | { |
@@ -58,7 +58,6 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @param Vector $place |
|
| 62 | 61 | * |
| 63 | 62 | * @return bool |
| 64 | 63 | * |
@@ -112,7 +111,7 @@ discard block |
||
| 112 | 111 | * For all the places passed, ensure they are of the same |
| 113 | 112 | * dimensionality. |
| 114 | 113 | * |
| 115 | - * @param Vector $vectors ... Vectors to check |
|
| 114 | + * @param Vector[] $vectors ... Vectors to check |
|
| 116 | 115 | * |
| 117 | 116 | * @throws PlaceDimensionsDoNotMatchSpaceException |
| 118 | 117 | */ |
@@ -10,11 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Reith\ToyRobot\CommandHandler; |
| 12 | 12 | |
| 13 | -use MathPHP\LinearAlgebra\Vector; |
|
| 14 | 13 | use Psr\Log\LoggerInterface; |
| 15 | 14 | use Reith\ToyRobot\Domain\Robot\RobotRepositoryInterface; |
| 16 | 15 | use Reith\ToyRobot\Domain\Robot\Robot; |
| 17 | - |
|
| 18 | 16 | use Reith\ToyRobot\Messaging\Annotation\Subscribe; |
| 19 | 17 | use Reith\ToyRobot\Messaging\Command\TurnLeft; |
| 20 | 18 | use Reith\ToyRobot\Messaging\Command\TurnRight; |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\Console\Command\Command; |
| 14 | 14 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 17 | 16 | use Reith\ToyRobot\Messaging\Command\TurnLeft; |
| 18 | 17 | |
| 19 | 18 | class Left extends Command |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\Console\Command\Command; |
| 14 | 14 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 17 | 16 | use Reith\ToyRobot\Messaging\Command\MoveForward; |
| 18 | 17 | |
| 19 | 18 | class Move extends Command |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\Console\Command\Command; |
| 14 | 14 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
| 16 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 17 | 16 | use Reith\ToyRobot\Messaging\Command\TurnRight; |
| 18 | 17 | |
| 19 | 18 | class Right extends Command |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use MathPHP\LinearAlgebra\Vector; |
| 14 | 14 | use Assert\Assert; |
| 15 | -use Assert\Assertion; |
|
| 16 | 15 | use Reith\ToyRobot\Domain\Space\SpaceInterface; |
| 17 | 16 | use Reith\ToyRobot\Domain\Robot\Exception\NotPlacedInSpaceException; |
| 18 | 17 | |