| 1 | <?php |
||
| 17 | class PingCommand extends Command |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var JobManager |
||
| 21 | */ |
||
| 22 | protected $jm; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Creates a new Command |
||
| 26 | * |
||
| 27 | * @param JobManager $jm |
||
| 28 | */ |
||
| 29 | public function __construct(JobManager $jm) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | public function configure() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 66 | } |
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.