Conditions | 5 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 16 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 4 | public function read(array $annotationInfoList) |
|
31 | { |
||
32 | 4 | $func = function ($queryKey, $xpath) use ($annotationInfoList) { |
|
33 | |||
34 | 4 | $queryList = []; |
|
35 | 4 | foreach ($annotationInfoList as $annotationInfo) { |
|
36 | 4 | $xmlObjects = $annotationInfo[$queryKey]; |
|
37 | 4 | foreach ($xmlObjects as $xmlObject) { |
|
38 | 4 | $xmlElement = $xmlObject->xpath($xpath); |
|
39 | 4 | if (!empty($xmlElement)) { |
|
40 | 4 | $query = ["sql" => trim($xmlElement[0]->__toString()), "method" => $xmlElement[0]->getName()]; |
|
41 | 4 | $entity = $xmlElement[0]->attributes()["entity"]; |
|
42 | 4 | $query["entity"] = $entity !== null ? $entity->__toString() : null; |
|
43 | 4 | $queryList[] = $query; |
|
44 | } |
||
45 | } |
||
46 | } |
||
47 | |||
48 | 4 | return $queryList; |
|
49 | 4 | }; |
|
50 | 4 | $this->annotationInfo = function ($queryKey, $xpath) use ($func) { |
|
51 | |||
52 | 4 | return $func($queryKey, $xpath); |
|
53 | }; |
||
56 |
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