| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 157 | public function findUserById(int $id): array |
|
| 37 | { |
||
| 38 | 157 | $query = $this->queryFactory->selectQuery()->select($this->fields)->from('user')->where( |
|
| 39 | 157 | ['deleted_at IS' => null, 'id' => $id] |
|
| 40 | 157 | ); |
|
| 41 | |||
| 42 | // Empty array if not found |
||
| 43 | 157 | return $query->execute()->fetch('assoc') ?: []; |
|
| 44 | } |
||
| 46 |
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