Conditions | 3 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
25 | 3 | public function search(WordSearchCriteria $criteria): Word |
|
26 | { |
||
27 | try { |
||
28 | 3 | $searchWordDto = $this->dictionary->searchWord($criteria); |
|
29 | 2 | if ($searchWordDto->count()) { |
|
30 | 1 | return new Word($searchWordDto->word(), $searchWordDto->definition()); |
|
31 | } |
||
32 | |||
33 | 1 | throw new WordFoundException(); |
|
34 | 2 | } catch (ApiClientException $exception) { |
|
35 | 1 | $this->logger->error($exception->getMessage()); |
|
36 | |||
37 | 1 | throw new WordFoundException(); |
|
38 | } |
||
41 |
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