Passed
Branch master (63f5af)
by Mauro
07:52
created
src/Controller/BaseController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Log each request.
69 69
      *
70
-     * @return bool|void
70
+     * @return false|null
71 71
      */
72 72
     protected function logRequest()
73 73
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * Log each response.
87 87
      *
88 88
      * @param array $response
89
-     * @return bool|void
89
+     * @return false|null
90 90
      */
91 91
     protected function logResponse($response)
92 92
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     protected function getFromCache($id)
121 121
     {
122 122
         $redis = $this->getRedisClient();
123
-        $key = $this::KEY.$id;
123
+        $key = $this::KEY . $id;
124 124
         $value = $redis->get($key);
125 125
 
126 126
         return json_decode($value);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     protected function saveInCache($id, $result)
134 134
     {
135 135
         $redis = $this->getRedisClient();
136
-        $key = $this::KEY.$id;
136
+        $key = $this::KEY . $id;
137 137
         $redis->set($key, json_encode($result));
138 138
     }
139 139
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     protected function deleteFromCache($id)
144 144
     {
145 145
         $redis = $this->getRedisClient();
146
-        $key = $this::KEY.$id;
146
+        $key = $this::KEY . $id;
147 147
         $redis->del($key);
148 148
     }
149 149
 }
Please login to merge, or discard this patch.
app/routes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 $app->get('/', 'App\Controller\DefaultController:getHelp');
4 4
 $app->get('/status', 'App\Controller\DefaultController:getStatus');
5 5
 
6
-$app->group('/api/v1', function () use ($app) {
7
-    $app->group('/tasks', function () use ($app) {
6
+$app->group('/api/v1', function() use ($app) {
7
+    $app->group('/tasks', function() use ($app) {
8 8
         $app->get('', 'App\Controller\Task\GetAllTasks');
9 9
         $app->get('/[{id}]', 'App\Controller\Task\GetOneTask');
10 10
         $app->get('/search/[{query}]', 'App\Controller\Task\SearchTasks');
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $app->put('/[{id}]', 'App\Controller\Task\UpdateTask');
13 13
         $app->delete('/[{id}]', 'App\Controller\Task\DeleteTask');
14 14
     });
15
-    $app->group('/users', function () use ($app) {
15
+    $app->group('/users', function() use ($app) {
16 16
         $app->get('', 'App\Controller\User\GetAllUsers');
17 17
         $app->get('/[{id}]', 'App\Controller\User\GetOneUser');
18 18
         $app->get('/search/[{query}]', 'App\Controller\User\SearchUsers');
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $app->put('/[{id}]', 'App\Controller\User\UpdateUser');
21 21
         $app->delete('/[{id}]', 'App\Controller\User\DeleteUser');
22 22
     });
23
-    $app->group('/notes', function () use ($app) {
23
+    $app->group('/notes', function() use ($app) {
24 24
         $app->get('', 'App\Controller\Note\GetAllNotes');
25 25
         $app->get('/[{id}]', 'App\Controller\Note\GetOneNote');
26 26
         $app->get('/search/[{query}]', 'App\Controller\Note\SearchNotes');
Please login to merge, or discard this patch.