@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Auth; |
| 15 | 15 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @return UserEntity|null |
| 96 | 96 | */ |
| 97 | - public function getIdentity() :?UserEntity |
|
| 97 | + public function getIdentity() : ? UserEntity |
|
| 98 | 98 | { |
| 99 | 99 | return $this->userEntity; |
| 100 | 100 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Auth\Storage; |
| 15 | 15 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return null|DataEntityInterface |
| 70 | 70 | */ |
| 71 | - public function getIdentity() : ?DataEntityInterface |
|
| 71 | + public function getIdentity() : ? DataEntityInterface |
|
| 72 | 72 | { |
| 73 | 73 | return $this->sessionManager->get($this->sessionKey); |
| 74 | 74 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Auth; |
| 15 | 15 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @return DataEntityInterface|null |
| 42 | 42 | */ |
| 43 | - public function getIdentity() : ?DataEntityInterface; |
|
| 43 | + public function getIdentity() : ? DataEntityInterface; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Clears the storage. |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Middleware\Security; |
| 15 | 15 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @param ResponseInterface $response |
| 60 | 60 | * @return void |
| 61 | 61 | */ |
| 62 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface&$response) : void |
|
| 62 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface&$response) : void |
|
| 63 | 63 | { |
| 64 | 64 | $identity = 'Unauthenticated user'; |
| 65 | 65 | $requestAttributes = $request->getAttributes(); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Middleware\Security; |
| 15 | 15 | |
@@ -158,8 +158,8 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | private function checkPolicies( |
| 160 | 160 | array $policies, |
| 161 | - ?ApplicationEntity $applicationEntity = null, |
|
| 162 | - ?ResourceEntity $resourceEntity = null |
|
| 161 | + ? ApplicationEntity $applicationEntity = null, |
|
| 162 | + ? ResourceEntity $resourceEntity = null |
|
| 163 | 163 | ) : bool { |
| 164 | 164 | // We assume the best case: the user has access |
| 165 | 165 | $hasAccess = true; |
@@ -182,8 +182,8 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | private function checkPolicy( |
| 184 | 184 | PolicyEntity $policyEntity, |
| 185 | - ?ApplicationEntity $applicationEntity = null, |
|
| 186 | - ?ResourceEntity $resourceEntity = null |
|
| 185 | + ? ApplicationEntity $applicationEntity = null, |
|
| 186 | + ? ResourceEntity $resourceEntity = null |
|
| 187 | 187 | ) : bool { |
| 188 | 188 | $applicationId = $applicationEntity ? $applicationEntity->getApplicationId() : null; |
| 189 | 189 | $resourceId = $resourceEntity ? $resourceEntity->getResourceId() : null; |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Middleware; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Middleware; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @link http://www.gixx-web.com |
| 11 | 11 | */ |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace WebHemi\Middleware; |
| 15 | 15 | |