Passed
Push — master ( 4a4466...1554de )
by Mauro
03:16
created
src/Controller/User/GetOneUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $this->setParams($request, $response, $args);
25 25
         $client = new \Predis\Client();
26
-        $key = 'api-rest-slimphp:user:'.$this->args['id'];
26
+        $key = 'api-rest-slimphp:user:' . $this->args['id'];
27 27
         $value = $client->get($key);
28 28
         if (!is_null($value)) {
29 29
             $result = json_decode($value);
Please login to merge, or discard this patch.
src/Controller/User/UpdateUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $result = $this->getUserService()->updateUser($input, $this->args['id']);
26 26
 
27 27
         $client = new \Predis\Client();
28
-        $key = 'api-rest-slimphp:user:'.$this->args['id'];
28
+        $key = 'api-rest-slimphp:user:' . $this->args['id'];
29 29
         $client->set($key, json_encode($result));
30 30
 
31 31
         return $this->jsonResponse('success', $result, 200);
Please login to merge, or discard this patch.
src/Controller/User/DeleteUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $result = $this->getUserService()->deleteUser($this->args['id']);
25 25
 
26 26
         $client = new \Predis\Client();
27
-        $key = 'api-rest-slimphp:user:'.$this->args['id'];
27
+        $key = 'api-rest-slimphp:user:' . $this->args['id'];
28 28
         $client->del($key);
29 29
 
30 30
         return $this->jsonResponse('success', $result, 200);
Please login to merge, or discard this patch.