Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | private function getMealVoucherCategory(MollieGatewayConfigInterface $method, OrderItemInterface $item): ?string |
||
30 | { |
||
31 | if (null !== $this->getMealVoucherFromItem($item)) { |
||
32 | return $this->getMealVoucherFromItem($item); |
||
33 | } |
||
34 | if (null !== $method->getDefaultCategory()) { |
||
35 | return $method->getDefaultCategory()->getName(); |
||
36 | } |
||
37 | |||
38 | throw new \LogicException(\sprintf('Voucher need default category, product category found in product name %s', $item->getProduct()->getName())); |
||
39 | } |
||
48 |
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.