| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function getData(AbstractTransfer $quoteTransfer): AbstractTransfer |
||
| 38 | { |
||
| 39 | if ($quoteTransfer->getPayment() !== null) { |
||
|
|
|||
| 40 | return $quoteTransfer; |
||
| 41 | } |
||
| 42 | |||
| 43 | $paymentTransfer = new PaymentTransfer(); |
||
| 44 | $paymentTransfer->setPayone(new PayonePaymentTransfer()); |
||
| 45 | $quoteTransfer->setPayment($paymentTransfer); |
||
| 46 | |||
| 47 | return $quoteTransfer; |
||
| 48 | } |
||
| 49 | |||
| 70 |
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.