1 | <?php |
||
19 | final class Propel1PagerProvider implements PagerProviderInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $objectClass; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $baseOptions; |
||
30 | |||
31 | /** |
||
32 | * @param string $objectClass |
||
33 | * @param array $baseOptions |
||
34 | */ |
||
35 | 2 | public function __construct($objectClass, array $baseOptions) |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 1 | public function provide(array $options = array()) |
|
54 | } |
||
55 |
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.