| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class WeaponShieldRepository extends EntityRepository implements WeaponShieldRepositoryInterface |
||
| 16 | { |
||
| 17 | public function prototype(): WeaponShieldInterface |
||
| 20 | } |
||
| 21 | |||
| 22 | public function save(WeaponShieldInterface $weaponshield): void |
||
| 23 | { |
||
| 24 | $em = $this->getEntityManager(); |
||
| 25 | |||
| 26 | $em->persist($weaponshield); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function delete(WeaponShieldInterface $weaponshield): void |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getByModuleAndWeapon( |
||
| 43 | ]); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getFactionByModule($moduleid): ?WeaponShieldInterface |
||
| 57 | } |
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of
return,dieorexitstatements that have been added for debug purposes.In the above example, the last
return falsewill never be executed, because a return statement has already been met in every possible execution path.