@@ -134,18 +134,18 @@ |
||
| 134 | 134 | * @throws IdentityNotFound if identity was not found |
| 135 | 135 | * @throws \Palladium\Exception\InvalidToken |
| 136 | 136 | */ |
| 137 | - public function findIdentityByToken(string $token, int $action = Entity\Identity::ACTION_NONE): Entity\Identity |
|
| 138 | - { |
|
| 139 | - $identity = new Entity\Identity; |
|
| 137 | + public function findIdentityByToken(string $token, int $action = Entity\Identity::ACTION_NONE): Entity\Identity |
|
| 138 | + { |
|
| 139 | + $identity = new Entity\Identity; |
|
| 140 | 140 | |
| 141 | - $identity->setToken($token); |
|
| 142 | - $identity->setTokenAction($action); |
|
| 143 | - $identity->setTokenEndOfLife(time()); |
|
| 141 | + $identity->setToken($token); |
|
| 142 | + $identity->setTokenAction($action); |
|
| 143 | + $identity->setTokenEndOfLife(time()); |
|
| 144 | 144 | |
| 145 | - $this->repository->load($identity); |
|
| 145 | + $this->repository->load($identity); |
|
| 146 | 146 | |
| 147 | - return $identity; |
|
| 148 | - } |
|
| 147 | + return $identity; |
|
| 148 | + } |
|
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * @throws IdentityNotFound if identity was not found |