Completed
Push — master ( 6328ee...480f92 )
by Scott
02:27
created
updates/1.0/create_category_discount_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
updates/1.0/create_category_product_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
updates/1.0/create_discount_product_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
controllers/Inventories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
classes/ApiMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
updates/1.0/create_inventory_option_values_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
controllers/Options.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
models/Inventory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,11 +91,11 @@
 block discarded – undo
91 91
      */
92 92
     public function scopeHasOptionValueIds($query, $ids)
93 93
     {
94
-        if (! is_array($ids)) {
94
+        if (!is_array($ids)) {
95 95
             $ids = [$ids];
96 96
         }
97 97
 
98
-        return $query->whereHas('optionValues', function ($optionValue) use ($ids) {
98
+        return $query->whereHas('optionValues', function($optionValue) use ($ids) {
99 99
             return $optionValue->whereIn('id', $ids);
100 100
         });
101 101
     }
Please login to merge, or discard this patch.