Skip to content

Commit abcbadf

Browse files
jbrooksukgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 4e6d16c commit abcbadf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Filament/Widgets/Components.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Cachet\Models\ComponentGroup;
88
use Filament\Forms\Components\Component as FilamentFormComponent;
99
use Filament\Forms\Components\Group;
10-
use Filament\Forms\Components\ToggleButtons;
1110
use Filament\Forms\Components\Section;
11+
use Filament\Forms\Components\ToggleButtons;
1212
use Filament\Forms\Concerns\InteractsWithForms;
1313
use Filament\Forms\Contracts\HasForms;
1414
use Filament\Forms\Form;
@@ -56,7 +56,7 @@ public function form(Form $form): Form
5656
});
5757

5858
$ungroupedComponentSchema = $this->components
59-
->filter(fn(Component $component) => is_null($component->component_group_id))
59+
->filter(fn (Component $component) => is_null($component->component_group_id))
6060
->map(function (Component $component): FilamentFormComponent {
6161
return Section::make($component->name)
6262
->schema(fn () => [$this->buildToggleButton($component)])
@@ -71,7 +71,7 @@ public function form(Form $form): Form
7171

7272
protected function buildToggleButton(Component $component): ToggleButtons
7373
{
74-
return ToggleButtons::make($component->id . '.status')
74+
return ToggleButtons::make($component->id.'.status')
7575
->label($component->name)
7676
->hiddenLabel(is_null($component->component_group_id))
7777
->inline()

tests/Feature/Filament/Widgets/ComponentsTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Cachet\Filament\Widgets\Components;
77
use Cachet\Models\Component;
88
use Cachet\Models\ComponentGroup;
9+
910
use function Pest\Livewire\livewire;
1011
use function PHPUnit\Framework\assertCount;
1112
use function PHPUnit\Framework\assertEquals;
@@ -118,7 +119,7 @@
118119
$livewireComponent->assertSuccessful();
119120

120121
$livewireComponent->set(
121-
'formData.' . $component->id . '.status',
122+
'formData.'.$component->id.'.status',
122123
ComponentStatusEnum::major_outage->value
123124
);
124125

@@ -137,9 +138,9 @@
137138
$livewireComponent->assertSuccessful();
138139

139140
$livewireComponent->set(
140-
'formData.' . $component->id . '.status',
141+
'formData.'.$component->id.'.status',
141142
ComponentStatusEnum::major_outage->value
142143
);
143144

144145
assertEquals(ComponentStatusEnum::major_outage, $component->fresh()->status);
145-
});
146+
});

0 commit comments

Comments
 (0)