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