| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class UrlCheck extends AbstractCheck |
||
| 10 | { |
||
| 11 | |||
| 12 | protected $url; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Client |
||
|
|
|||
| 16 | */ |
||
| 17 | protected $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * UrlCheck constructor. |
||
| 21 | * |
||
| 22 | * @param string $label Label |
||
| 23 | * @param string $url URL to be tested |
||
| 24 | * @param ClientInterface $client HTTP-Client to use |
||
| 25 | */ |
||
| 26 | public function __construct(string $label, string $url, ClientInterface $client) |
||
| 27 | { |
||
| 28 | parent::__construct($label); |
||
| 29 | $this->url = $url; |
||
| 30 | $this->setHttpClient($client); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * set http client |
||
| 35 | */ |
||
| 36 | public function setHttpClient(ClientInterface $client): void |
||
| 37 | { |
||
| 38 | $this->client = $client; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Check URL |
||
| 43 | * |
||
| 44 | * @return Result |
||
| 45 | * @throws GuzzleException |
||
| 46 | */ |
||
| 47 | public function checkStatus(): Result |
||
| 60 | } |
||
| 61 | } |
||
| 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