@@ -9,9 +9,7 @@ |
||
9 | 9 | use Palladium\Entity as Entity; |
10 | 10 | use Palladium\Component\DataMapper; |
11 | 11 | use Palladium\Exception\IdentityConflict; |
12 | - |
|
13 | 12 | use Palladium\Repository\Identity as Repository; |
14 | -use Palladium\Contract\HasId; |
|
15 | 13 | use Psr\Log\LoggerInterface; |
16 | 14 | |
17 | 15 | class Registration |
@@ -153,18 +153,18 @@ |
||
153 | 153 | * |
154 | 154 | * @return Palladium\Entity\Identity |
155 | 155 | */ |
156 | - public function findIdentityByToken(string $token, $action = Entity\Identity::ACTION_NONE): Entity\Identity |
|
157 | - { |
|
158 | - $identity = new Entity\Identity; |
|
156 | + public function findIdentityByToken(string $token, $action = Entity\Identity::ACTION_NONE): Entity\Identity |
|
157 | + { |
|
158 | + $identity = new Entity\Identity; |
|
159 | 159 | |
160 | - $identity->setToken($token); |
|
161 | - $identity->setTokenAction($action); |
|
162 | - $identity->setTokenEndOfLife(time()); |
|
160 | + $identity->setToken($token); |
|
161 | + $identity->setTokenAction($action); |
|
162 | + $identity->setTokenEndOfLife(time()); |
|
163 | 163 | |
164 | - $this->repository->load($identity); |
|
164 | + $this->repository->load($identity); |
|
165 | 165 | |
166 | - return $identity; |
|
167 | - } |
|
166 | + return $identity; |
|
167 | + } |
|
168 | 168 | |
169 | 169 | /** |
170 | 170 | * @param int $identityId |