Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function filterPaymentMethods(PaymentMethodsTransfer $paymentMethodsTransfer, QuoteTransfer $quoteTransfer): PaymentMethodsTransfer |
||
24 | { |
||
25 | $result = new ArrayObject(); |
||
26 | |||
27 | foreach ($paymentMethodsTransfer->getMethods() as $paymentMethod) { |
||
28 | if ($paymentMethod->getMethodName() === BraintreeConfig::PAYMENT_METHOD_PAY_PAL_EXPRESS) { |
||
29 | continue; |
||
30 | } |
||
31 | $result->append($paymentMethod); |
||
32 | } |
||
33 | |||
34 | $paymentMethodsTransfer->setMethods($result); |
||
35 | |||
36 | return $paymentMethodsTransfer; |
||
37 | } |
||
39 |
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