| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| 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 | $paymentTransfer = new PaymentTransfer(); |
||
| 26 | $quoteTransfer->setPayment($paymentTransfer); |
||
| 27 | } |
||
| 28 | |||
| 29 | if (!$this->isValidPayment($quoteTransfer)) { |
||
| 30 | $paymentTransfer = $quoteTransfer->getPayment(); |
||
| 31 | /** @var \Generated\Shared\Transfer\ComputopPayPalExpressPaymentTransfer $computopTransfer */ |
||
| 32 | $computopTransfer = $this->mapper->createComputopPaymentTransfer($quoteTransfer); |
||
| 33 | $paymentTransfer->setComputopPayPalExpress($computopTransfer); |
||
| 34 | $quoteTransfer->setPayment($paymentTransfer); |
||
| 35 | $quoteTransfer->setCustomer(new CustomerTransfer()); |
||
| 36 | $this->quoteClient->setQuote($quoteTransfer); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $quoteTransfer; |
||
| 40 | } |
||
| 52 |
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