Skip to content

Commit 31545ca

Browse files
jbrooksukgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent dfb9008 commit 31545ca

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/Actions/Integrations/ImportOhDearFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function importIncidents(array $updatesPerDay): void
5353
Incident::updateOrCreate(
5454
[
5555
'external_provider' => $provider = ExternalProviderEnum::OhDear,
56-
'external_id' => $incident['id']
56+
'external_id' => $incident['id'],
5757
],
5858
[
5959
'name' => $incident['title'],

src/Filament/Pages/Integrations/OhDear.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ class OhDear extends Page
2929
protected static string $view = 'cachet::filament.pages.integrations.oh-dear';
3030

3131
public string $url;
32+
3233
public bool $import_sites = false;
34+
3335
public ?int $component_group_id = null;
36+
3437
public bool $import_incidents = false;
3538

3639
/**
@@ -81,7 +84,7 @@ protected function getFormSchema(): array
8184
->label(__('Import Incidents'))
8285
->helperText(__('Recent incidents from Oh Dear will be imported as incidents in Cachet.'))
8386
->default(false),
84-
])
87+
]),
8588
];
8689
}
8790

tests/Unit/Actions/Integrations/ImportOhDearFeedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Cachet\Enums\IncidentStatusEnum;
77

88
it('can import an OhDear feed', function () {
9-
$importOhDearFeed = new ImportOhDearFeed();
9+
$importOhDearFeed = new ImportOhDearFeed;
1010

1111
$data = json_decode(file_get_contents(__DIR__.'/../../../stubs/ohdear-feed-php.json'), true);
1212

@@ -21,7 +21,7 @@
2121

2222
$this->assertDatabaseHas('incidents', [
2323
'external_provider' => ExternalProviderEnum::OhDear->value,
24-
'external_id' => "1274100",
24+
'external_id' => '1274100',
2525
'name' => 'php.net has recovered.',
2626
'status' => IncidentStatusEnum::fixed,
2727
]);

0 commit comments

Comments
 (0)