| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class GuzzleRequestHandler implements RequestHandlerInterface |
||
| 17 | { |
||
| 18 | /** @var Client */ |
||
| 19 | private $client; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Client $client |
||
| 23 | * @return RequestHandlerInterface |
||
| 24 | */ |
||
| 25 | public function setClient(Client $client) |
||
| 26 | { |
||
| 27 | $this->client = $client; |
||
| 28 | |||
| 29 | return $this; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return Client |
||
| 34 | */ |
||
| 35 | public function getClient() |
||
| 36 | { |
||
| 37 | if (!$this->client) { |
||
| 38 | $this->client = new Client(); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this->client; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param DiscoveredUri $uri |
||
| 46 | * @return Resource |
||
| 47 | */ |
||
| 48 | public function request(DiscoveredUri $uri) |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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