1 | <?php |
||
10 | class MigrateRollback extends YarakCommand |
||
11 | { |
||
12 | /** |
||
13 | * Configure the command. |
||
14 | */ |
||
15 | protected function configure() |
||
28 | |||
29 | /** |
||
30 | * Execute the command. |
||
31 | * |
||
32 | * @param InputInterface $input |
||
33 | * @param OutputInterface $output |
||
34 | */ |
||
35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
40 | } |
||
41 |
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.