Conditions | 7 |
Paths | 11 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function getErrorCodes($response): array |
||
30 | { |
||
31 | $result = []; |
||
32 | if (!$response instanceof Error) { |
||
33 | return $result; |
||
34 | } |
||
35 | |||
36 | $collection = $response->errors; |
||
37 | |||
38 | foreach ($collection->deepAll() as $error) { |
||
39 | $result[] = $error->code; |
||
40 | } |
||
41 | |||
42 | if (isset($response->transaction) && $response->transaction) { |
||
43 | if ($response->transaction->status === Transaction::GATEWAY_REJECTED) { |
||
44 | $result[] = $response->transaction->gatewayRejectionReason; |
||
45 | } |
||
46 | |||
47 | if ($response->transaction->status === Transaction::PROCESSOR_DECLINED) { |
||
48 | $result[] = $response->transaction->processorResponseCode; |
||
49 | } |
||
50 | } |
||
51 | |||
52 | return $result; |
||
53 | } |
||
55 |
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