Conditions | 3 |
Paths | 6 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function checkStatus(): Result |
||
48 | { |
||
49 | $result = new Result($this->label); |
||
50 | try { |
||
51 | $request = $this->client->createRequest('GET', $this->url); |
||
52 | $response = $this->client->sendRequest($request); |
||
53 | if ($response->getStatusCode() !== 200) { |
||
54 | $result->setError('HTTP status code for '.$this->url.' is '.$response->getStatusCode()); |
||
55 | } |
||
56 | } catch (ClientExceptionInterface $e) { |
||
57 | $result->setError('URL failed: '.$this->url); |
||
58 | } |
||
59 | return $result; |
||
60 | } |
||
62 |
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