| Conditions | 5 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function insertAuthIps(\ArrayObject $pbPlans): bool |
||
| 36 | { |
||
| 37 | if (!$pbPlans->count()) { |
||
| 38 | return false; |
||
| 39 | } |
||
| 40 | |||
| 41 | foreach ($pbPlans as $pbPlan) { |
||
| 42 | if (!empty($pbPlan->getAuthIps())) { |
||
| 43 | continue; |
||
| 44 | } |
||
| 45 | |||
| 46 | foreach ($pbPlan->getAuthIps() as $authIp) { |
||
| 47 | $authIp->setPlan($pbPlan->getPlanId()); |
||
| 48 | $this->entityManager->persist($authIp); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | $this->entityManager->flush(); |
||
| 53 | |||
| 54 | return true; |
||
| 55 | } |
||
| 57 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.