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