| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function process(ContainerBuilder $container) |
||
| 13 | { |
||
| 14 | if (!$container->has('doctrine')) { |
||
| 15 | return; |
||
| 16 | } |
||
| 17 | |||
| 18 | $factory = $container->getDefinition('cruds.factory.reflection'); |
||
| 19 | $factory->setFactory([new Reference('cruds.factory.doctrine_reflection'), 'create']); |
||
| 20 | |||
| 21 | if ($container->has('cruds.processor.property_access')) { |
||
| 22 | $processor = $container->getDefinition('cruds.processor.property_access'); |
||
|
|
|||
| 23 | } |
||
| 24 | } |
||
| 25 | } |
||
| 26 |
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.