| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getData(AbstractTransfer $quoteTransfer): QuoteTransfer |
||
| 24 | { |
||
| 25 | if ($quoteTransfer->getPayment() === null) { |
||
|
|
|||
| 26 | $quoteTransfer->setPayment(new PaymentTransfer()); |
||
| 27 | } |
||
| 28 | |||
| 29 | if ($quoteTransfer->getPayment()->getHeidelpayInvoiceSecuredB2c() !== null) { |
||
| 30 | return $quoteTransfer; |
||
| 31 | } |
||
| 32 | |||
| 33 | $quoteTransfer->getPayment()->setHeidelpayInvoiceSecuredB2c(new HeidelpayPaymentTransfer()); |
||
| 34 | |||
| 35 | return $quoteTransfer; |
||
| 36 | } |
||
| 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.