| Conditions | 4 |
| Paths | 6 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function getData(AbstractTransfer $quoteTransfer): QuoteTransfer |
||
| 23 | { |
||
| 24 | if ($quoteTransfer->getPayment() === null) { |
||
| 25 | $quoteTransfer->setPayment(new PaymentTransfer()); |
||
| 26 | } |
||
| 27 | |||
| 28 | if ($this->isValidPayment($quoteTransfer)) { |
||
| 29 | return $quoteTransfer; |
||
| 30 | } |
||
| 31 | |||
| 32 | $paymentTransfer = $quoteTransfer->getPayment(); |
||
| 33 | /** @var \Generated\Shared\Transfer\ComputopPayPalExpressPaymentTransfer $computopPayPalExpressPaymentTransfer */ |
||
| 34 | $computopPayPalExpressPaymentTransfer = $this->mapper->createComputopPaymentTransfer($quoteTransfer); |
||
| 35 | $paymentTransfer->setComputopPayPalExpress($computopPayPalExpressPaymentTransfer); |
||
| 36 | $paymentTransfer->setAmount($quoteTransfer->getTotals()->getGrandTotal()); |
||
| 37 | $quoteTransfer->setPayment($paymentTransfer); |
||
| 38 | if ($quoteTransfer->getCustomer() === null) { |
||
| 39 | $quoteTransfer->setCustomer(new CustomerTransfer()); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $quoteTransfer; |
||
| 43 | } |
||
| 55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths