Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 2 | public function findUserByEmail(?string $email): UserData |
|
26 | { |
||
27 | 2 | $query = $this->queryFactory->selectQuery()->select(['*'])->from('user')->andWhere( |
|
28 | 2 | ['deleted_at IS' => null, 'email' => $email] |
|
29 | 2 | ); |
|
30 | |||
31 | 2 | $userValues = $query->execute()->fetch('assoc') ?: []; |
|
32 | |||
33 | // Empty user object if not found |
||
34 | // $notRestricted true as values are safe as they come from the database. It's not a user input. |
||
35 | 2 | return new UserData($userValues); |
|
36 | } |
||
38 |
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