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