Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class CashOnDeliveryDataProvider implements StepEngineFormDataProviderInterface |
||
18 | { |
||
19 | /** |
||
20 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
21 | * |
||
22 | * @return \Generated\Shared\Transfer\QuoteTransfer |
||
23 | */ |
||
24 | public function getData(AbstractTransfer $quoteTransfer): QuoteTransfer |
||
25 | { |
||
26 | if ($quoteTransfer->getPayment() === null) { |
||
27 | $paymentTransfer = new PaymentTransfer(); |
||
28 | $paymentTransfer->setPayone(new PayonePaymentTransfer()); |
||
29 | $quoteTransfer->setPayment($paymentTransfer); |
||
30 | } |
||
31 | |||
32 | return $quoteTransfer; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getOptions(AbstractTransfer $quoteTransfer): array |
||
43 | } |
||
44 | } |
||
45 |
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