Completed
Push — master ( 38afed...b860d1 )
by Mārtiņš
02:36
created
src/Palladium/Service/Search.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -134,18 +134,18 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Palladium/Entity/Identity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
             $this->setStatusChangedOn(time());
127 127
         }
128 128
 
129
-        $this->status = (int)$status;
129
+        $this->status = (int) $status;
130 130
     }
131 131
 
132 132
 
Please login to merge, or discard this patch.