Conditions | 3 |
Paths | 3 |
Total Lines | 23 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function isQuotePaymentValid( |
||
26 | QuoteTransfer $quoteTransfer, |
||
27 | CheckoutResponseTransfer $checkoutResponseTransfer |
||
28 | ): bool { |
||
29 | $paymentTransfer = $quoteTransfer |
||
30 | ->requirePayment() |
||
31 | ->getPayment(); |
||
32 | if ($paymentTransfer->getPaymentProvider() !== BraintreeConfig::PROVIDER_NAME) { |
||
33 | return true; |
||
34 | } |
||
35 | |||
36 | $braintreePaymentTransfer = $paymentTransfer |
||
37 | ->requireBraintree() |
||
38 | ->getBraintree(); |
||
39 | if (!$braintreePaymentTransfer->getNonce()) { |
||
40 | $checkoutResponseTransfer |
||
41 | ->setIsSuccess(false) |
||
42 | ->addError($this->createCheckoutErrorTransfer()); |
||
43 | |||
44 | return false; |
||
45 | } |
||
46 | |||
47 | return true; |
||
48 | } |
||
59 |
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