@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | |
| 90 | 90 | |
| 91 | - public function register($username, $password=null, $password_length=6) |
|
| 91 | + public function register($username, $password = null, $password_length = 6) |
|
| 92 | 92 | { |
| 93 | 93 | // Check if username is already taken |
| 94 | 94 | if ($this->getUserByUsername($username)) { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | // Hash the password |
| 99 | - if (! $password) { |
|
| 99 | + if (!$password) { |
|
| 100 | 100 | $password = $this->randomPassword(length: $password_length); |
| 101 | 101 | } |
| 102 | 102 | |