Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
53 | protected function execute(InputInterface $input, OutputInterface $output) |
||
54 | { |
||
55 | $parameters = $this->getParameters($input); |
||
56 | $validator = new InputValidator(); |
||
57 | |||
58 | if ($validator->validateInputParameters($parameters)) { |
||
59 | $converter = new Converter($parameters); |
||
|
|||
60 | $output->writeln('Generated '.$parameters['outputFile']); |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.