Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | class PhpPasswordHasher implements Contract |
||
27 | { |
||
28 | /** |
||
29 | * Hash a given password. |
||
30 | * |
||
31 | * @param non-empty-string $password The password to hash |
||
32 | * |
||
33 | * @return non-empty-string |
||
34 | */ |
||
35 | #[Override] |
||
36 | public function hashPassword(string $password): string |
||
37 | { |
||
38 | /** @var non-empty-string $hashedPassword */ |
||
39 | $hashedPassword = password_hash($password, PASSWORD_DEFAULT); |
||
40 | |||
41 | return $hashedPassword; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Compare an plain text password with a given hashed password. |
||
46 | * |
||
47 | * @param string $password The plain text password |
||
48 | * @param string $hashedPassword The hashed password |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | #[Override] |
||
56 | } |
||
57 | } |
||
58 |
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