Conditions | 2 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public static function getAllPosts($domain, array $input): array |
||
15 | { |
||
16 | |||
17 | try { |
||
18 | $client = new Client(['verify' => false]); |
||
19 | $response = $client->get($domain . '/wp-json/wp/v2/posts', [ |
||
20 | 'query' => $input |
||
21 | ]); |
||
22 | |||
23 | $result = json_decode($response->getBody()); |
||
24 | |||
25 | return $result; |
||
26 | } catch (\Exception $e) { |
||
27 | print_r($e); |
||
28 | } |
||
29 | |||
30 | return null; |
||
31 | } |
||
33 |
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