Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class ComputopCreditCardInitStep extends AbstractBaseStep |
||
15 | { |
||
16 | /** |
||
17 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
|
|||
18 | * |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function requireInput(AbstractTransfer $quoteTransfer): bool |
||
22 | { |
||
23 | if ( |
||
24 | !$quoteTransfer->getPayment() |
||
25 | || $quoteTransfer->getPayment()->getPaymentSelection() !== ComputopConfig::PAYMENT_METHOD_CREDIT_CARD |
||
26 | ) { |
||
27 | return false; |
||
28 | } |
||
29 | |||
30 | return true; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function postCondition(AbstractTransfer $quoteTransfer): bool |
||
39 | { |
||
40 | return true; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function getTemplateVariables(AbstractTransfer $quoteTransfer): array |
||
56 | ]; |
||
57 | } |
||
58 | } |
||
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