| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 26 | { |
||
| 27 | |||
| 28 | $command = $this->getApplication()->find('config:convert'); |
||
| 29 | $returnCode = $command->run(new ArrayInput([ |
||
|
|
|||
| 30 | 'command' => 'config:convert' |
||
| 31 | ]), $output); |
||
| 32 | |||
| 33 | $command = $this->getApplication()->find('packages:install'); |
||
| 34 | $returnCode = $command->run(new ArrayInput([ |
||
| 35 | 'command' => 'packages:install' |
||
| 36 | ]), $output); |
||
| 37 | |||
| 38 | $command = $this->getApplication()->find('migration:migrate'); |
||
| 39 | $returnCode = $command->run(new ArrayInput([ |
||
| 40 | 'command' => 'migration:migrate' |
||
| 41 | ]), $output); |
||
| 42 | |||
| 43 | $output->writeln("install completed!"); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.