| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | abstract class Adapter2 implements Contract |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Adapter constructor. |
||
| 31 | * |
||
| 32 | * @param class-string<User> $user |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 35 | protected string $user, |
||
| 36 | protected Config|array $config |
||
| 37 | ) { |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritDoc |
||
| 42 | */ |
||
| 43 | protected function verifyPassword(string $password, string $attemptedPassword): bool |
||
| 44 | { |
||
| 45 | return password_verify($attemptedPassword, $password); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Determine if a password attempt verifies against a user's existing password. |
||
| 50 | * |
||
| 51 | * @param User $user |
||
| 52 | * @param string $attemptedPassword |
||
| 53 | * |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | protected function verifyUserPassword(User $user, string $attemptedPassword): bool |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Hash a plain password. |
||
| 63 | * |
||
| 64 | * @param string $password |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | protected function hashPassword(string $password): string |
||
| 73 |
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