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 | $quoteTransfer->setPayment($paymentTransfer); |
||
37 | if ($quoteTransfer->getCustomer() === null) { |
||
38 | $quoteTransfer->setCustomer(new CustomerTransfer()); |
||
39 | } |
||
40 | $this->quoteClient->setQuote($quoteTransfer); |
||
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