@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | } |
231 | 231 | |
232 | 232 | /** |
233 | - * @param string|DateTimeInterface|null $lastLoginDate The last login date. |
|
233 | + * @param string $lastLoginDate The last login date. |
|
234 | 234 | * @throws InvalidArgumentException If the ts is not a valid date/time. |
235 | 235 | * @return UserInterface Chainable |
236 | 236 | */ |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | } |
310 | 310 | |
311 | 311 | /** |
312 | - * @param string|DateTimeInterface|null $lastPasswordDate The last password date. |
|
312 | + * @param string $lastPasswordDate The last password date. |
|
313 | 313 | * @throws InvalidArgumentException If the passsword date is not a valid DateTime. |
314 | 314 | * @return UserInterface Chainable |
315 | 315 | */ |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | $this->setLastLoginIp($ip); |
455 | 455 | } |
456 | 456 | |
457 | - $this->update([ 'last_login_ip', 'last_login_date' ]); |
|
457 | + $this->update(['last_login_ip', 'last_login_date']); |
|
458 | 458 | |
459 | 459 | $this->saveToSession(); |
460 | 460 | |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | } |
542 | 542 | |
543 | 543 | if ($this->id()) { |
544 | - $this->update([ 'password', 'last_password_date', 'last_password_ip' ]); |
|
544 | + $this->update(['password', 'last_password_date', 'last_password_ip']); |
|
545 | 545 | } |
546 | 546 | |
547 | 547 | return $this; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param Container $container The Pimple DI Container. |
32 | 32 | * @return Authenticator |
33 | 33 | */ |
34 | - $container['authenticator'] = function (Container $container) { |
|
34 | + $container['authenticator'] = function(Container $container) { |
|
35 | 35 | return new Authenticator([ |
36 | 36 | 'logger' => $container['logger'], |
37 | 37 | 'user_type' => User::class, |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param Container $container The Pimple DI container. |
48 | 48 | * @return Authorizer |
49 | 49 | */ |
50 | - $container['authorizer'] = function (Container $container) { |
|
50 | + $container['authorizer'] = function(Container $container) { |
|
51 | 51 | return new Authorizer([ |
52 | 52 | 'logger' => $container['logger'], |
53 | 53 | 'acl' => new Acl(), |
@@ -121,11 +121,11 @@ |
||
121 | 121 | return $this->authorizer; |
122 | 122 | } |
123 | 123 | |
124 | - /** |
|
125 | - * @param string[]|string|null $permissions The list of required permissions. |
|
126 | - * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string. |
|
127 | - * @return self |
|
128 | - */ |
|
124 | + /** |
|
125 | + * @param string[]|string|null $permissions The list of required permissions. |
|
126 | + * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string. |
|
127 | + * @return self |
|
128 | + */ |
|
129 | 129 | protected function setRequiredAclPermissions($permissions) |
130 | 130 | { |
131 | 131 | if ($permissions === null || !$permissions) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @param DateTimeInterface|string|null $expiry The date/time at object's creation. |
|
124 | + * @param string $expiry The date/time at object's creation. |
|
125 | 125 | * @throws InvalidArgumentException If the date/time is invalid. |
126 | 126 | * @return AuthToken Chainable |
127 | 127 | */ |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @param DateTimeInterface|string|null $created The date/time at object's creation. |
|
155 | + * @param string $created The date/time at object's creation. |
|
156 | 156 | * @throws InvalidArgumentException If the date/time is invalid. |
157 | 157 | * @return AuthToken Chainable |
158 | 158 | */ |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
186 | - * @param DateTimeInterface|string|null $lastModified The last modified date/time. |
|
186 | + * @param string $lastModified The last modified date/time. |
|
187 | 187 | * @throws InvalidArgumentException If the date/time is invalid. |
188 | 188 | * @return AuthToken Chainable |
189 | 189 | */ |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * @param mixed $ident The auth-token identifier. |
275 | 275 | * @param string $token The token to validate against. |
276 | - * @return mixed The user id. An empty string if no token match. |
|
276 | + * @return string The user id. An empty string if no token match. |
|
277 | 277 | */ |
278 | 278 | public function getUserIdFromToken($ident, $token) |
279 | 279 | { |