| 1 | <?php |
||
| 13 | class ConfigurationLoader implements ConfigurationLoaderInterface |
||
| 14 | { |
||
| 15 | /** @var Finder */ |
||
| 16 | private $finder; |
||
| 17 | /** @var SerializerInterface */ |
||
| 18 | private $serializer; |
||
| 19 | |||
| 20 | 2 | public function __construct(Finder $finder, SerializerInterface $serializer) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 2 | public function fromPath($path) |
|
| 56 | } |
||
| 57 |
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.