Completed
Push — master ( 8c4f30...29607e )
by Temitope
02:58
created
src/Controller/EmojiController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         if (is_array($requestParams)) {
81 81
             $created_at = date('Y-m-d h:i:s');
82 82
 
83
-            if (! $this->checkForDuplicateEmoji($requestParams['name'])) {
83
+            if (!$this->checkForDuplicateEmoji($requestParams['name'])) {
84 84
                 $emoji = Emoji::create(
85 85
                 [
86 86
                     'name'       => $requestParams['name'],
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         foreach ($emojis as $key => &$value) {
226 226
             $value['created_by'] = $value['created_by']['firstname'].' '.$value['created_by']['lastname'];
227 227
             $value['category'] = $value['category']['category_name'];
228
-            $value['keywords'] = array_map(function ($key) { return $key['keyword_name']; }, $value['keywords']);
228
+            $value['keywords'] = array_map(function($key) { return $key['keyword_name']; }, $value['keywords']);
229 229
         }
230 230
 
231 231
         return $emojis;
Please login to merge, or discard this patch.