@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | // Black hole |
49 | 49 | trigger_error( |
50 | - "Method for remembering the current user isn't implemented. " . |
|
50 | + "Method for remembering the current user isn't implemented. ". |
|
51 | 51 | "You can use the Jasny\Auth\Sessions trait to store the current user in a session", |
52 | 52 | E_USER_NOTICE |
53 | 53 | ); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param string $password |
71 | 71 | * @param string $salt Use specific salt to verify existing password |
72 | 72 | */ |
73 | - public static function password($password, $salt=null) |
|
73 | + public static function password($password, $salt = null) |
|
74 | 74 | { |
75 | 75 | return isset($salt) ? crypt($password, $salt) : password_hash($password, PASSWORD_BCRYPT); |
76 | 76 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | $id = is_object($user) ? $user->getId() : $user; |
195 | 195 | |
196 | - return sprintf('%010s', substr(base_convert(md5($id . static::getSecret()), 16, 36), -10) . |
|
196 | + return sprintf('%010s', substr(base_convert(md5($id.static::getSecret()), 16, 36), -10). |
|
197 | 197 | base_convert($id, 10, 36)); |
198 | 198 | } |
199 | 199 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $id = $user->getId(); |
223 | 223 | $password = $user->getPassword(); |
224 | 224 | |
225 | - return sprintf('%010s', substr(base_convert(md5($id . static::getSecret() . $password), 16, 36), -10) |
|
225 | + return sprintf('%010s', substr(base_convert(md5($id.static::getSecret().$password), 16, 36), -10) |
|
226 | 226 | . base_convert($id, 10, 36)); |
227 | 227 | } |
228 | 228 |