Total Complexity | 8 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 16% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ChangePasswordCommand extends Command |
||
10 | { |
||
11 | protected $name = 'koel:admin:change-password'; |
||
12 | protected $description = "Change the default admin's password"; |
||
13 | |||
14 | private $hash; |
||
15 | |||
16 | 132 | public function __construct(Hash $hash) |
|
17 | { |
||
18 | 132 | parent::__construct(); |
|
19 | 132 | $this->hash = $hash; |
|
20 | 132 | } |
|
21 | |||
22 | public function handle(): void |
||
44 | } |
||
45 | |||
46 | private function validatePasswords(?string $password, ?string $confirmedPassword): bool |
||
63 |