| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | public function registerBundles() |
||
| 9 | { |
||
| 10 | $bundles = array(); |
||
|
|
|||
| 11 | |||
| 12 | $bundles = [ |
||
| 13 | new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
| 14 | new \JMS\SerializerBundle\JMSSerializerBundle($this), |
||
| 15 | new \FOS\RestBundle\FOSRestBundle(), |
||
| 16 | new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(), |
||
| 17 | new \Maikuro\DistributedConfigurationBundle\MaikuroDistributedConfigurationBundle(), |
||
| 18 | ]; |
||
| 19 | |||
| 20 | return $bundles; |
||
| 21 | } |
||
| 22 | |||
| 28 |
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.