Completed
Push — master ( b7e188...4523b4 )
by Scott
03:49
created
models/ShippingSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function validateDrivers(array $drivers = null)
46 46
     {
47
-        if (! $drivers || ! is_array($drivers)) {
47
+        if (!$drivers || !is_array($drivers)) {
48 48
             Flash::error(Lang::get('bedard.shop::lang.shipping.form.validation_none'));
49 49
             throw new ValidationException(null);
50 50
         }
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
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $self = $this->getTable().'.*';
42 42
 
43
-        if (! in_array($self, $query->getQuery()->columns)) {
43
+        if (!in_array($self, $query->getQuery()->columns)) {
44 44
             $query->addSelect($self);
45 45
         }
46 46
 
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
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public static function bootTimeable()
15 15
     {
16
-        static::extend(function ($model) {
16
+        static::extend(function($model) {
17 17
             $model->addFillable('start_at', 'end_at');
18 18
             $model->addDateAttribute('start_at');
19 19
             $model->addDateAttribute('end_at');
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function scopeIsActive(Builder $query)
40 40
     {
41
-        return $query->where(function ($model) {
41
+        return $query->where(function($model) {
42 42
             return $model->isNotExpired()->isNotUpcoming();
43 43
         });
44 44
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function scopeIsExpired(Builder $query)
53 53
     {
54
-        return $query->where(function ($model) {
54
+        return $query->where(function($model) {
55 55
             return $model->whereNotNull('end_at')
56 56
                 ->where('end_at', '<=', $this->getRawCarbonString());
57 57
         });
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function scopeIsUpcoming(Builder $query)
67 67
     {
68
-        return $query->where(function ($model) {
68
+        return $query->where(function($model) {
69 69
             return $model->whereNotNull('start_at')
70 70
                 ->where('start_at', '>', $this->getRawCarbonString());
71 71
         });
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function scopeIsNotActive(Builder $query)
81 81
     {
82
-        return $query->where(function ($model) {
83
-            return $model->isExpired()->orWhere(function ($q) {
82
+        return $query->where(function($model) {
83
+            return $model->isExpired()->orWhere(function($q) {
84 84
                 $q->isUpcoming();
85 85
             });
86 86
         });
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function scopeIsNotExpired(Builder $query)
96 96
     {
97
-        return $query->where(function ($model) {
97
+        return $query->where(function($model) {
98 98
             return $model->whereNull('end_at')
99 99
                 ->orWhere('end_at', '>', $this->getRawCarbonString());
100 100
         });
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function scopeIsNotUpcoming(Builder $query)
110 110
     {
111
-        return $query->where(function ($model) {
111
+        return $query->where(function($model) {
112 112
             return $model->whereNull('start_at')
113 113
                 ->orWhere('start_at', '<=', $this->getRawCarbonString());
114 114
         });
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,6 +1,6 @@
 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
     //
5 5
     // Cart
6 6
     //
Please login to merge, or discard this patch.