| @@ -23,7 +23,7 @@ | ||
| 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); | 
| @@ -25,7 +25,7 @@ | ||
| 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); | 
| @@ -24,7 +24,7 @@ | ||
| 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); |