| 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 |
||
| 23 | private function comparePasswords(?string $password, ?string $confirmedPassword): bool |
||
| 24 | { |
||
| 25 | if (!$password || !$confirmedPassword) { |
||
| 26 | return false; |
||
| 27 | } |
||
| 28 | |||
| 29 | if (strcmp($password, $confirmedPassword) !== 0) { |
||
| 30 | $this->error('The passwords do not match. Try again maybe?'); |
||
| 31 | |||
| 32 | return false; |
||
| 33 | } |
||
| 34 | |||
| 35 | return true; |
||
| 36 | } |
||
| 38 |