Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | private function comparePasswords(?string $password, ?string $confirmedPassword): bool |
||
28 | { |
||
29 | if (!$password || !$confirmedPassword) { |
||
30 | return false; |
||
31 | } |
||
32 | |||
33 | if (strcmp($password, $confirmedPassword) !== 0) { |
||
34 | $this->error('The passwords do not match. Try again maybe?'); |
||
35 | |||
36 | return false; |
||
37 | } |
||
38 | |||
39 | return true; |
||
40 | } |
||
42 |