Completed
Push — master ( 5d2ad9...beb91f )
by Mārtiņš
02:03
created
src/Palladium/Service/Registration.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     private $hashCost;
27 27
 
28 28
     /**
29
-     * @param Palladium\Repository\Identity $repository Repository for abstracting persistence layer structures
30
-     * @param Psr\Log\LoggerInterface $logger PSR-3 compatible logger
29
+     * @param Repository $repository Repository for abstracting persistence layer structures
30
+     * @param LoggerInterface $logger PSR-3 compatible logger
31 31
      * @param int $hashCost Optional value for setting the cost of hashing algorythm (default: 12)
32 32
      */
33 33
     public function __construct(Repository $repository, DataMapper $accountMapper, LoggerInterface $logger, $hashCost = self::DEFAULT_HASH_COST)
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param string $password
45 45
      * @param int $tokenLifespan
46 46
      *
47
-     * @return Palladium\Entity\StandardIdentity
47
+     * @return Entity\StandardIdentity
48 48
      */
49 49
     public function createStandardIdentity(string $identifier, string $password, $tokenLifespan = self::DEFAULT_TOKEN_LIFESPAN)
50 50
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Palladium/Service/Search.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -153,18 +153,18 @@
 block discarded – undo
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
Please login to merge, or discard this patch.