@@ -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) { |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | /** |
| 223 | - * @param string|DateTimeInterface|null $lastLoginDate The last login date. |
|
| 223 | + * @param string $lastLoginDate The last login date. |
|
| 224 | 224 | * @throws InvalidArgumentException If the ts is not a valid date/time. |
| 225 | 225 | * @return self |
| 226 | 226 | */ |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * @param string|DateTimeInterface|null $lastPasswordDate The last password date. |
|
| 302 | + * @param string $lastPasswordDate The last password date. |
|
| 303 | 303 | * @throws InvalidArgumentException If the passsword date is not a valid DateTime. |
| 304 | 304 | * @return self |
| 305 | 305 | */ |
@@ -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 self |
| 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 self |
| 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 self |
| 189 | 189 | */ |