Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | protected function configure() |
||
25 | { |
||
26 | parent::configure(); |
||
27 | $this |
||
28 | ->setName('documentor') |
||
29 | ->setDescription('Generate Markdown Documentation from PhpUnit XML') |
||
30 | ->addArgument( |
||
31 | 'inputFile', |
||
32 | InputArgument::REQUIRED, |
||
33 | 'PhpUnit Xml file path' |
||
34 | ) |
||
35 | ->addArgument( |
||
36 | 'outputFile', |
||
37 | InputArgument::REQUIRED, |
||
38 | 'Output file path' |
||
39 | ); |
||
40 | } |
||
41 | |||
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.