| Conditions | 2 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function construct(CrosswordCriteria $criteria): CrosswordDto |
||
| 33 | { |
||
| 34 | $uri = sprintf( |
||
| 35 | '%s/construct/%s/%s/%d', |
||
| 36 | $this->crosswordApiHost, |
||
| 37 | $criteria->language(), |
||
| 38 | $criteria->type(), |
||
| 39 | $criteria->wordCount() |
||
| 40 | ); |
||
| 41 | |||
| 42 | try { |
||
| 43 | $response = $this->client->sendRequest(new Request('GET', $uri)); |
||
| 44 | |||
| 45 | return new CrosswordDto($this->responseDataExtractor->extract($response)); |
||
| 46 | } catch (Throwable $exception) { |
||
| 47 | throw ApiClientException::badRequest($exception->getMessage()); |
||
| 48 | } |
||
| 51 |
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