| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | protected function execute(InputInterface $input, OutputInterface $output){ |
||
| 25 | |||
| 26 | $command = $this->getApplication()->find('config:convert'); |
||
| 27 | $returnCode = $command->run(new ArrayInput([ |
||
|
|
|||
| 28 | 'command' => 'config:convert' |
||
| 29 | ]), $output); |
||
| 30 | |||
| 31 | $command = $this->getApplication()->find('packages:install'); |
||
| 32 | $returnCode = $command->run(new ArrayInput([ |
||
| 33 | 'command' => 'packages:install' |
||
| 34 | ]), $output); |
||
| 35 | |||
| 36 | $command = $this->getApplication()->find('migration:migrate'); |
||
| 37 | $returnCode = $command->run(new ArrayInput([ |
||
| 38 | 'command' => 'migration:migrate' |
||
| 39 | ]), $output); |
||
| 40 | |||
| 41 | $output->writeln("install completed!"); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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.