Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | public function validate(array $validationSubject) |
||
36 | { |
||
37 | $isValid = true; |
||
38 | $storeId = $validationSubject[ 'storeId' ]; |
||
39 | $currency = $validationSubject[ 'currency' ]; |
||
40 | |||
41 | if ($currency !== $this->config->getValue('currency', $storeId)) { |
||
42 | $isValid = false; |
||
43 | } |
||
44 | if (!\in_array($currency, [ 'USD' ])) { |
||
45 | $isValid = false; |
||
46 | } |
||
47 | |||
48 | return $this->createResult($isValid); |
||
49 | } |
||
51 |
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