Completed
Push — master ( b4cd60...2701aa )
by Scott
03:56
created
models/Discount.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @var array Guarded fields
33 33
      */
34
-    protected $guarded = ['*'];
34
+    protected $guarded = [ '*' ];
35 35
 
36 36
     /**
37 37
      * @var array Fillable fields
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function filterFields($fields)
116 116
     {
117 117
         $fields->amount_exact->hidden = $this->is_percentage;
118
-        $fields->amount_percentage->hidden = ! $this->is_percentage;
118
+        $fields->amount_percentage->hidden = !$this->is_percentage;
119 119
     }
120 120
 
121 121
     /**
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $categoryProductIds = $this->categories()
129 129
             ->select('id')
130
-            ->with(['products' => function($products) {
130
+            ->with([ 'products' => function($products) {
131 131
                 return $products->select('id');
132
-            }])
132
+            } ])
133 133
             ->lists('categories.products.id');
134 134
 
135 135
         $productIds = $this->products()->lists('id');
Please login to merge, or discard this patch.