Completed
Push — master ( 141c37...4e2b2d )
by Scott
04:28
created
updates/1.0/create_products_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function up()
12 12
     {
13
-        Schema::create('bedard_shop_products', function (Blueprint $table) {
13
+        Schema::create('bedard_shop_products', function(Blueprint $table) {
14 14
             $table->engine = 'InnoDB';
15 15
             $table->increments('id');
16 16
             $table->string('name')->default('');
Please login to merge, or discard this patch.
updates/1.0/create_categories_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_categories', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_categories', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('parent_id')->unsigned()->nullable()->index();
Please login to merge, or discard this patch.
updates/1.0/create_discounts_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_discounts', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_discounts', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('name')->default('');
Please login to merge, or discard this patch.
traits/Subqueryable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function scopeJoinSubquery($query, $subquery, $alias, $left, $operator, $right, $join = 'join')
40 40
     {
41 41
         $self = $this->getTable().'.*';
42
-        if (! in_array($self, $query->getQuery()->columns)) {
42
+        if (!in_array($self, $query->getQuery()->columns)) {
43 43
             $query->addSelect($self);
44 44
         }
45 45
 
Please login to merge, or discard this patch.
updates/1.0/create_prices_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_prices', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_prices', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->decimal('price', 10, 2)->unsigned();
Please login to merge, or discard this patch.
traits/Timeable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public static function bootTimeable()
14 14
     {
15
-        static::extend(function ($model) {
15
+        static::extend(function($model) {
16 16
             $model->addFillable('start_at', 'end_at');
17 17
             $model->addDateAttribute('start_at');
18 18
             $model->addDateAttribute('end_at');
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function scopeIsActive(Builder $query)
29 29
     {
30
-        return $query->where(function ($model) {
30
+        return $query->where(function($model) {
31 31
             return $model->isNotExpired()->isNotUpcoming();
32 32
         });
33 33
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function scopeIsExpired(Builder $query)
42 42
     {
43
-        return $query->where(function ($model) {
43
+        return $query->where(function($model) {
44 44
             return $model->whereNotNull('end_at')
45 45
                 ->where('end_at', '<=', (string) Carbon::now());
46 46
         });
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function scopeIsUpcoming(Builder $query)
56 56
     {
57
-        return $query->where(function ($model) {
57
+        return $query->where(function($model) {
58 58
             return $model->whereNotNull('start_at')
59 59
                 ->where('start_at', '>', (string) Carbon::now());
60 60
         });
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function scopeIsNotActive(Builder $query)
70 70
     {
71
-        return $query->where(function ($model) {
72
-            return $model->isExpired()->orWhere(function ($q) {
71
+        return $query->where(function($model) {
72
+            return $model->isExpired()->orWhere(function($q) {
73 73
                 $q->isUpcoming();
74 74
             });
75 75
         });
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function scopeIsNotExpired(Builder $query)
85 85
     {
86
-        return $query->where(function ($model) {
86
+        return $query->where(function($model) {
87 87
             return $model->whereNull('end_at')
88 88
                 ->orWhere('end_at', '>', (string) Carbon::now());
89 89
         });
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function scopeIsNotUpcoming(Builder $query)
99 99
     {
100
-        return $query->where(function ($model) {
100
+        return $query->where(function($model) {
101 101
             return $model->whereNull('start_at')
102 102
                 ->orWhere('start_at', '<=', (string) Carbon::now());
103 103
         });
Please login to merge, or discard this patch.
controllers/Discounts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
     public function listExtendQuery($query)
40 40
     {
41 41
         $query->with([
42
-            'categories' => function ($category) {
42
+            'categories' => function($category) {
43 43
                 return $category->select('name');
44 44
             },
45
-            'products' => function ($product) {
45
+            'products' => function($product) {
46 46
                 return $product->select('name');
47 47
             },
48 48
         ])->selectStatus();
Please login to merge, or discard this patch.
updates/1.0/create_options_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_options', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_options', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('product_id')->unsigned()->index();
Please login to merge, or discard this patch.
updates/1.0/create_inventories_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_inventories', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_inventories', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('product_id')->unsigned()->index();
Please login to merge, or discard this patch.