@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function () { |
|
| 3 | +Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function() { |
|
| 4 | 4 | Route::resource('api/bedard/shop/categories', 'Bedard\Shop\Api\Categories'); |
| 5 | 5 | }); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function fetch(array $params = []) |
| 15 | 15 | { |
| 16 | - if (! array_key_exists('select', $params) || ! is_array($params['select']) || empty($params['select'])) { |
|
| 16 | + if (!array_key_exists('select', $params) || !is_array($params['select']) || empty($params['select'])) { |
|
| 17 | 17 | throw new Exception('Categories fetch() must select at least one column.'); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | foreach ($keys as $key => $value) { |
| 26 | 26 | $isFiltered = gettype($value) === 'array'; |
| 27 | 27 | |
| 28 | - if (! $isFiltered) { |
|
| 28 | + if (!$isFiltered) { |
|
| 29 | 29 | $key = $value; |
| 30 | 30 | } |
| 31 | 31 | |