| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | protected function configure() |
||
| 16 | { |
||
| 17 | $this->setName('migrate:rollback') |
||
| 18 | ->setDescription('Rollback migrations by given number of steps.') |
||
| 19 | ->setHelp('This command allows you to rollback migrations.') |
||
| 20 | ->addOption( |
||
| 21 | 'steps', |
||
| 22 | null, |
||
| 23 | InputOption::VALUE_OPTIONAL, |
||
| 24 | 'Number of steps to rollback.', |
||
| 25 | 1 |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 41 |
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.