@@ -37,7 +37,7 @@ |
||
37 | 37 | protected function execute(InputInterface $input, OutputInterface $output) |
38 | 38 | { |
39 | 39 | /** @var Warehouse $warehouse */ |
40 | - $warehouse = Warehouse::createFromJson(getcwd() . "/../resources/biggerWarehouse.json"); |
|
40 | + $warehouse = Warehouse::createFromJson(getcwd()."/../resources/biggerWarehouse.json"); |
|
41 | 41 | $calculatedArray = $warehouse->getPlaces(); |
42 | 42 | |
43 | 43 | $warehouse->setPathCalculator(new ShortPathCalculator()); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected function execute(InputInterface $input, OutputInterface $output) |
35 | 35 | { |
36 | - $warehouse = Warehouse::createFromJson(getcwd() . "/resources/biggerWarehouse.json"); |
|
36 | + $warehouse = Warehouse::createFromJson(getcwd()."/resources/biggerWarehouse.json"); |
|
37 | 37 | |
38 | 38 | /** @var Place $nodeStart */ |
39 | 39 | $nodeStart = $warehouse->getPlaces()[5]; |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | $table->setRows($calculatedMatrix); |
49 | 49 | $table->render(); |
50 | 50 | |
51 | - $output->writeln("Start: " . $nodeStart->getName()); |
|
52 | - $output->writeln("End: " . $nodeEnd->getName()); |
|
53 | - $output->writeln("Total path: " . $nodeEnd->getCurrentWeight()); |
|
51 | + $output->writeln("Start: ".$nodeStart->getName()); |
|
52 | + $output->writeln("End: ".$nodeEnd->getName()); |
|
53 | + $output->writeln("Total path: ".$nodeEnd->getCurrentWeight()); |
|
54 | 54 | } |
55 | 55 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | protected function execute(InputInterface $input, OutputInterface $output) |
37 | 37 | { |
38 | 38 | /** @var Warehouse $warehouse */ |
39 | - $warehouse = Warehouse::createFromJson(getcwd() . "/../resources/biggerWarehouse.json"); |
|
39 | + $warehouse = Warehouse::createFromJson(getcwd()."/../resources/biggerWarehouse.json"); |
|
40 | 40 | $calculatedArray = $warehouse->getPlaces(); |
41 | 41 | |
42 | 42 | $warehouse->setPathCalculator(new FastCalculator()); |