Completed
Push — master ( 67e459...845662 )
by Temitope
02:31
created
src/Controller/EmojiController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
             $userId = $this->getCurrentUserId($request, $response);
93 93
 
94
-            if (! $this->checkForDuplicateEmoji($requestParams['name'])) {
94
+            if (!$this->checkForDuplicateEmoji($requestParams['name'])) {
95 95
                 // Validate the user input fields
96 96
                 $validateResponse = $this->validateUserInput([
97 97
                     'name', 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
             if (count($emoji) > 0) {
146 146
                 // Validate the user input fields
147
-                $validateResponse =  $this->validateUserInput([
147
+                $validateResponse = $this->validateUserInput([
148 148
                     'name', 
149 149
                     'char', 
150 150
                     'category'
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         foreach ($emojis as $key => &$value) {
264 264
             $value['created_by'] = $value['created_by']['firstname'].' '.$value['created_by']['lastname'];
265 265
             $value['category'] = $value['category']['category_name'];
266
-            $value['keywords'] = array_map(function ($key) { return $key['keyword_name']; }, $value['keywords']);
266
+            $value['keywords'] = array_map(function($key) { return $key['keyword_name']; }, $value['keywords']);
267 267
         }
268 268
 
269 269
         return $emojis;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 
342 342
         } else { // Check whether the field supplied by the user is what we expect from them
343 343
             foreach ($suppliedFields as $key => $value) {
344
-                if (! in_array($key, $expectedFields)) {
344
+                if (!in_array($key, $expectedFields)) {
345 345
                     $counter++;
346 346
                 }
347 347
             }
Please login to merge, or discard this patch.