Passed
Push — main ( 1f0c2a...ef823a )
by Roberto
01:51
created
src/Authenticator/UserAuthenticator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.