@@ -269,7 +269,7 @@ discard block |
||
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 |
||
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 | } |