| Total Complexity | 4 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class PrintMatrixTestCommand extends Command |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | protected function configure() |
||
| 23 | Print a beautiful matrix. |
||
| 24 | EOT |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 32 | { |
||
| 33 | /** @var Warehouse $warehouse */ |
||
| 34 | $warehouse = Warehouse::createFromJson(getcwd() . "/./resources/simpleWarehouse.json"); |
||
| 35 | |||
| 36 | $this->printTable($output, array(), $warehouse->createMatrix()); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Output the table for debug purpose |
||
| 41 | * |
||
| 42 | * @param OutputInterface $output |
||
| 43 | * @param array $arrayNodes |
||
| 44 | * @param array $matrix |
||
| 45 | */ |
||
| 46 | private function printTable(OutputInterface $output, array $arrayNodes, array $matrix) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Select the Places for find the path |
||
| 57 | * |
||
| 58 | * @param Place[] $calculatedArray |
||
| 59 | * @return Place[] |
||
| 60 | */ |
||
| 61 | private function chooseSearchablePlaces($calculatedArray) |
||
| 74 | ); |
||
| 75 | } |
||
| 77 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.