| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function isQuotePaymentValid(QuoteTransfer $quoteTransfer): bool |
||
| 21 | { |
||
| 22 | $paymentTransfer = $quoteTransfer |
||
| 23 | ->requirePayment() |
||
| 24 | ->getPayment(); |
||
| 25 | if ($paymentTransfer->getPaymentProvider() !== BraintreeConfig::PROVIDER_NAME) { |
||
| 26 | return true; |
||
| 27 | } |
||
| 28 | |||
| 29 | $braintreePaymentTransfer = $paymentTransfer |
||
| 30 | ->requireBraintree() |
||
| 31 | ->getBraintree(); |
||
| 32 | if (!$braintreePaymentTransfer->getNonce()) { |
||
| 33 | return false; |
||
| 34 | } |
||
| 35 | |||
| 36 | return true; |
||
| 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