Completed
Push — master ( 66fc83...c346cd )
by Temitope
02:32
created
src/Controller/EmojiController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         foreach ($emojis as $key => &$value) {
270 270
             $value['created_by'] = $value['created_by']['firstname'].' '.$value['created_by']['lastname'];
271 271
             $value['category'] = $value['category']['category_name'];
272
-            $value['keywords'] = array_map(function ($key) { return $key['keyword_name']; }, $value['keywords']);
272
+            $value['keywords'] = array_map(function($key) { return $key['keyword_name']; }, $value['keywords']);
273 273
         }
274 274
 
275 275
         return $emojis;
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
             return ['message' => 'All fields must be supplied'];
345 345
         } else { // Check whether the field supplied by the user is what we expect from them
346 346
             foreach ($suppliedFields as $key => $value) {
347
-                if (! in_array($key, array_merge($expectedFields,['created_at', 'updated_at', 'created_by']))) {
347
+                if (!in_array($key, array_merge($expectedFields, ['created_at', 'updated_at', 'created_by']))) {
348 348
                     $counter++;
349 349
                 } 
350 350
             }
Please login to merge, or discard this patch.