@@ -12,9 +12,9 @@ |
||
| 12 | 12 | namespace WebHemi\Auth; |
| 13 | 13 | |
| 14 | 14 | use Exception; |
| 15 | -use WebHemi\Data\Storage\User\UserStorage; |
|
| 16 | -use WebHemi\Data\Entity\User\UserEntity; |
|
| 17 | 15 | use WebHemi\Adapter\Auth\AbstractAuthAdapter; |
| 16 | +use WebHemi\Data\Entity\User\UserEntity; |
|
| 17 | +use WebHemi\Data\Storage\User\UserStorage; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Class Auth |
@@ -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 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return DataEntityInterface|null |
| 53 | 53 | */ |
| 54 | - public function getIdentity() : ?DataEntityInterface |
|
| 54 | + public function getIdentity() : ? DataEntityInterface |
|
| 55 | 55 | { |
| 56 | 56 | $identity = parent::getIdentity(); |
| 57 | 57 | // TODO implement |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | use WebHemi\Data\Entity\AccessManagement\PolicyEntity; |
| 23 | 23 | use WebHemi\Data\Entity\AccessManagement\ResourceEntity; |
| 24 | 24 | use WebHemi\Data\Entity\ApplicationEntity; |
| 25 | -use WebHemi\Data\Entity\User\UserMetaEntity; |
|
| 26 | 25 | use WebHemi\Data\Entity\User\UserEntity; |
| 26 | +use WebHemi\Data\Entity\User\UserMetaEntity; |
|
| 27 | 27 | use WebHemi\Data\Storage\AccessManagement\ResourceStorage; |
| 28 | 28 | use WebHemi\Data\Storage\ApplicationStorage; |
| 29 | 29 | use WebHemi\Data\Storage\User\UserMetaStorage; |
@@ -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; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | * Saves data. |
| 100 | 100 | * |
| 101 | 101 | * @param DataEntityInterface &$entity |
| 102 | - * @return mixed The ID of the saved entity in the storage |
|
| 102 | + * @return integer The ID of the saved entity in the storage |
|
| 103 | 103 | */ |
| 104 | 104 | public function saveEntity(DataEntityInterface&$entity) |
| 105 | 105 | { |
@@ -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\Validator; |
| 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\Application; |
| 15 | 15 | |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | * @param string $subDirectory |
| 348 | 348 | * @return bool |
| 349 | 349 | */ |
| 350 | - private function checkDomainIsValid(string $applicationName, array $applicationData, string &$subDirectory) : bool |
|
| 350 | + private function checkDomainIsValid(string $applicationName, array $applicationData, string&$subDirectory) : bool |
|
| 351 | 351 | { |
| 352 | 352 | $isSubdomain = $applicationName == 'website' |
| 353 | 353 | || ( |
@@ -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\Application; |
| 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\Application\Web; |
| 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\Application; |
| 15 | 15 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | string $name, |
| 136 | 136 | int $timeOut = 3600, |
| 137 | 137 | string $path = '/', |
| 138 | - ?string $domain = null, |
|
| 138 | + ? string $domain = null, |
|
| 139 | 139 | bool $secure = false, |
| 140 | 140 | bool $httpOnly = false |
| 141 | 141 | ) : SessionManager { |
@@ -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\Application; |
| 15 | 15 | |