@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | '1' => 'Active', |
36 | 36 | '0' => 'Inactive', |
37 | 37 | ]) |
38 | - ->filter(function (Builder $builder, string $value) { |
|
38 | + ->filter(function(Builder $builder, string $value) { |
|
39 | 39 | if ($value === '1') { |
40 | 40 | $builder->where('active', true); |
41 | 41 | } elseif ($value === '0') { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | '1' => 'Featured', |
49 | 49 | '0' => 'Not Featured', |
50 | 50 | ]) |
51 | - ->filter(function (Builder $builder, string $value) { |
|
51 | + ->filter(function(Builder $builder, string $value) { |
|
52 | 52 | if ($value === '1') { |
53 | 53 | $builder->where('featured', true); |
54 | 54 | } elseif ($value === '0') { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | '1' => 'Active', |
37 | 37 | '0' => 'Inactive', |
38 | 38 | ]) |
39 | - ->filter(function (Builder $builder, string $value) { |
|
39 | + ->filter(function(Builder $builder, string $value) { |
|
40 | 40 | if ($value === '1') { |
41 | 41 | $builder->where('active', true); |
42 | 42 | } elseif ($value === '0') { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | '1' => 'Popup', |
50 | 50 | '0' => 'No Popup', |
51 | 51 | ]) |
52 | - ->filter(function (Builder $builder, string $value) { |
|
52 | + ->filter(function(Builder $builder, string $value) { |
|
53 | 53 | if ($value === '1') { |
54 | 54 | $builder->where('popup', true); |
55 | 55 | } elseif ($value === '0') { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | ->collapseOnTablet(), |
122 | 122 | Column::make('Expiry', 'expire') |
123 | 123 | ->format( |
124 | - fn ($value, $row, Column $column) => ! is_null($row->expire) ? (Carbon::create($row->expire))->toFormattedDayDateString() : '' |
|
124 | + fn ($value, $row, Column $column) => !is_null($row->expire) ? (Carbon::create($row->expire))->toFormattedDayDateString() : '' |
|
125 | 125 | ) |
126 | 126 | ->html() |
127 | 127 | ->collapseOnTablet(), |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function mount($software) |
13 | 13 | { |
14 | - if (! is_null($software)) { |
|
14 | + if (!is_null($software)) { |
|
15 | 15 | $this->software = $software; |
16 | 16 | $data = $software->data; |
17 | 17 | $this->modules = $data['modules'] ?? null; |
@@ -68,12 +68,12 @@ |
||
68 | 68 | ->searchable(), |
69 | 69 | Column::make('Salary', 'salary') |
70 | 70 | ->label( |
71 | - fn ($row, Column $column) => ! is_null($row->salary) ? (currency().$row->salary) : '-' |
|
71 | + fn ($row, Column $column) => !is_null($row->salary) ? (currency().$row->salary) : '-' |
|
72 | 72 | ) |
73 | 73 | ->searchable(), |
74 | 74 | Column::make('Deadline', 'deadline') |
75 | 75 | ->label( |
76 | - fn ($row, Column $column) => ! is_null($row->deadline) ? (Carbon::crate($row->deadline))->toFormattedDateString() : '-' |
|
76 | + fn ($row, Column $column) => !is_null($row->deadline) ? (Carbon::crate($row->deadline))->toFormattedDateString() : '-' |
|
77 | 77 | ) |
78 | 78 | ->sortable() |
79 | 79 | ->searchable(), |
@@ -29,7 +29,7 @@ |
||
29 | 29 | '1' => 'Yes', |
30 | 30 | '0' => 'No', |
31 | 31 | ]) |
32 | - ->filter(function (Builder $builder, string $value) { |
|
32 | + ->filter(function(Builder $builder, string $value) { |
|
33 | 33 | if ($value === '1') { |
34 | 34 | $builder->where('is_searchable', true); |
35 | 35 | } elseif ($value === '0') { |
@@ -20,16 +20,16 @@ |
||
20 | 20 | public function mount($event = null) |
21 | 21 | { |
22 | 22 | $this->event = $event; |
23 | - $this->passes = ! is_null($event) ? $event->passes : Pass::orderBy('position')->get(); |
|
23 | + $this->passes = !is_null($event) ? $event->passes : Pass::orderBy('position')->get(); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | public function initializeEventPassChart() |
27 | 27 | { |
28 | 28 | $passes = $this->passes; |
29 | - $total_pass_limit = ! is_null($this->event) ? $this->event->total_limit : (Cache::get('events', Event::orderBy('position')->get()))->reduce(function (int $total, $event) { |
|
29 | + $total_pass_limit = !is_null($this->event) ? $this->event->total_limit : (Cache::get('events', Event::orderBy('position')->get()))->reduce(function(int $total, $event) { |
|
30 | 30 | return $total + $event->total_limit; |
31 | 31 | }, 0); |
32 | - $total_registered_pass = ! is_null($this->event) ? $this->event->passes->count() : Pass::count(); |
|
32 | + $total_registered_pass = !is_null($this->event) ? $this->event->passes->count() : Pass::count(); |
|
33 | 33 | $total_remaining_pass = $total_pass_limit - $total_registered_pass; |
34 | 34 | $this->dispatchBrowserEvent('initializeEventPassChart', [ |
35 | 35 | 'passRegisterPerDay' => (new Statistic)->passRegisterPerDay($passes), |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public function mount($event = null) |
19 | 19 | { |
20 | 20 | $this->event = $event; |
21 | - $this->payments = ! is_null($event) ? $event->payments : Payment::orderBy('position')->get(); |
|
21 | + $this->payments = !is_null($event) ? $event->payments : Payment::orderBy('position')->get(); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function initializeEventPaymentChart() |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $this->product = $product; |
19 | 19 | $this->attributes = Attribute::orderBy('position')->get(); |
20 | - if (! is_null($product)) { |
|
20 | + if (!is_null($product)) { |
|
21 | 21 | $product_attributes = []; |
22 | 22 | $this->selected_attribute_ids = $product->attributes->pluck('id')->toArray(); |
23 | 23 | $this->updatedSelectedAttributeIds(); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | '1' => 'Active', |
36 | 36 | '0' => 'Inactive', |
37 | 37 | ]) |
38 | - ->filter(function (Builder $builder, string $value) { |
|
38 | + ->filter(function(Builder $builder, string $value) { |
|
39 | 39 | if ($value === '1') { |
40 | 40 | $builder->where('active', true); |
41 | 41 | } elseif ($value === '0') { |
@@ -89,19 +89,19 @@ discard block |
||
89 | 89 | ->collapseOnTablet(), |
90 | 90 | Column::make('SP', 'selling_price') |
91 | 91 | ->format( |
92 | - fn ($value, $row, Column $column) => ! is_null($row->selling_price) ? (currency().$row->selling_price) : '' |
|
92 | + fn ($value, $row, Column $column) => !is_null($row->selling_price) ? (currency().$row->selling_price) : '' |
|
93 | 93 | ) |
94 | 94 | ->html() |
95 | 95 | ->collapseOnTablet(), |
96 | 96 | Column::make('CP', 'cost_price') |
97 | 97 | ->format( |
98 | - fn ($value, $row, Column $column) => ! is_null($row->cost_price) ? (currency().$row->cost_price) : '' |
|
98 | + fn ($value, $row, Column $column) => !is_null($row->cost_price) ? (currency().$row->cost_price) : '' |
|
99 | 99 | ) |
100 | 100 | ->html() |
101 | 101 | ->collapseOnTablet(), |
102 | 102 | Column::make('Discount', 'discount') |
103 | 103 | ->format( |
104 | - fn ($value, $row, Column $column) => ! is_null($row->discount) ? (currency().$row->discount) : '' |
|
104 | + fn ($value, $row, Column $column) => !is_null($row->discount) ? (currency().$row->discount) : '' |
|
105 | 105 | ) |
106 | 106 | ->html() |
107 | 107 | ->collapseOnTablet(), |