@@ -31,7 +31,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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'); |