@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_category_discount', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_category_discount', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('category_id')->unsigned()->nullable(); |
| 14 | 14 | $table->integer('discount_id')->unsigned()->nullable(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_category_product', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_category_product', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('category_id')->unsigned()->nullable(); |
| 14 | 14 | $table->integer('product_id')->unsigned()->nullable(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_discount_product', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_discount_product', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('discount_id')->unsigned()->nullable(); |
| 14 | 14 | $table->integer('product_id')->unsigned()->nullable(); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function validate() |
| 19 | 19 | { |
| 20 | 20 | $data = input('option'); |
| 21 | - if (! $data || ! is_array($data)) { |
|
| 21 | + if (!$data || !is_array($data)) { |
|
| 22 | 22 | return Response::make('Error', 422); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function handle($request, Closure $next) |
| 9 | 9 | { |
| 10 | - if (! ApiSettings::isEnabled()) { |
|
| 10 | + if (!ApiSettings::isEnabled()) { |
|
| 11 | 11 | abort(403, 'Forbidden'); |
| 12 | 12 | return; |
| 13 | 13 | } |
@@ -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 | }); |
@@ -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 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_inventory_option_values', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_inventory_option_values', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('inventory_id')->unsigned(); |
| 14 | 14 | $table->integer('option_value_id')->unsigned(); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function create() |
| 21 | 21 | { |
| 22 | 22 | $data = input('option'); |
| 23 | - if (! $data || ! is_array($data)) { |
|
| 23 | + if (!$data || !is_array($data)) { |
|
| 24 | 24 | return Response::make('Error', 422); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function createValue() |
| 45 | 45 | { |
| 46 | 46 | $data = input('value'); |
| 47 | - if (! $data || ! is_array($data)) { |
|
| 47 | + if (!$data || !is_array($data)) { |
|
| 48 | 48 | return Response::make('Error', 422); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function validate() |
| 69 | 69 | { |
| 70 | 70 | $data = input('option'); |
| 71 | - if (! $data || ! is_array($data)) { |
|
| 71 | + if (!$data || !is_array($data)) { |
|
| 72 | 72 | return Response::make('Error', 422); |
| 73 | 73 | } |
| 74 | 74 | |