Completed
Push — master ( cf6343...033dab )
by Scott
04:23
created
models/Discount.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * @var array Guarded fields
35 35
      */
36
-    protected $guarded = ['*'];
36
+    protected $guarded = [ '*' ];
37 37
 
38 38
     /**
39 39
      * @var array Fillable fields
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function filterFields($fields)
128 128
     {
129 129
         $fields->amount_exact->hidden = $this->is_percentage;
130
-        $fields->amount_percentage->hidden = ! $this->is_percentage;
130
+        $fields->amount_percentage->hidden = !$this->is_percentage;
131 131
     }
132 132
 
133 133
     /**
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $categoryProductIds = $this->categories()
141 141
             ->select('id')
142
-            ->with(['products' => function ($products) {
142
+            ->with([ 'products' => function($products) {
143 143
                 return $products->select('id');
144
-            }])
144
+            } ])
145 145
             ->lists('categories.products.id');
146 146
 
147 147
         $productIds = $this->products()->lists('id');
Please login to merge, or discard this patch.