@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Temitope Olotin <[email protected]> |
|
| 4 | - * @license <https://opensource.org/license/MIT> MIT |
|
| 5 | - */ |
|
| 3 | + * @author Temitope Olotin <[email protected]> |
|
| 4 | + * @license <https://opensource.org/license/MIT> MIT |
|
| 5 | + */ |
|
| 6 | 6 | namespace Laztopaz\EmojiRestfulAPI; |
| 7 | 7 | |
| 8 | 8 | use Illuminate\Database\Capsule\Manager as Capsule; |
@@ -91,7 +91,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |