From 78d184a050128698d970f76ff7c058295c71a180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 19 Dec 2023 11:25:26 +0200 Subject: [PATCH] apply cs fixer --- src/AppkeepProvider.php | 2 +- src/Checks/DatabaseConnectionCountCheck.php | 1 - src/Concerns/WatchesScheduledTasks.php | 6 +++--- tests/Feature/HttpClientTest.php | 1 - 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/AppkeepProvider.php b/src/AppkeepProvider.php index 9578e57..fc92a87 100644 --- a/src/AppkeepProvider.php +++ b/src/AppkeepProvider.php @@ -66,7 +66,7 @@ public function boot() public function bootForConsole() { - if (!$this->app->runningInConsole()) { + if (! $this->app->runningInConsole()) { return; } diff --git a/src/Checks/DatabaseConnectionCountCheck.php b/src/Checks/DatabaseConnectionCountCheck.php index 3b44d5a..1b9d5f0 100644 --- a/src/Checks/DatabaseConnectionCountCheck.php +++ b/src/Checks/DatabaseConnectionCountCheck.php @@ -9,7 +9,6 @@ use Illuminate\Support\Facades\Cache; use Appkeep\Laravel\Database\MySqlInspector; use Appkeep\Laravel\Database\PostgresInspector; -use Appkeep\Laravel\Database\SqlServerInspector; class DatabaseConnectionCountCheck extends Check { diff --git a/src/Concerns/WatchesScheduledTasks.php b/src/Concerns/WatchesScheduledTasks.php index ecdbd6b..1d7d496 100644 --- a/src/Concerns/WatchesScheduledTasks.php +++ b/src/Concerns/WatchesScheduledTasks.php @@ -27,11 +27,11 @@ public function dontWatchScheduledTasks() protected function watchScheduledTasks(Application $app) { - if (!$this->watchScheduledTasks) { + if (! $this->watchScheduledTasks) { return; } - if (!$app->runningInConsole()) { + if (! $app->runningInConsole()) { return; } @@ -40,7 +40,7 @@ protected function watchScheduledTasks(Application $app) collect($schedule->events()) ->filter(function ($event) { // Don't monitor the Appkeep scheduled task itself. - return $event->command && !str_contains($event->command, 'appkeep:run'); + return $event->command && ! str_contains($event->command, 'appkeep:run'); }) ->each(function (Event $event) { $event->before(fn () => $this->scheduledTaskStarted($event)); diff --git a/tests/Feature/HttpClientTest.php b/tests/Feature/HttpClientTest.php index a5d3572..9b04298 100644 --- a/tests/Feature/HttpClientTest.php +++ b/tests/Feature/HttpClientTest.php @@ -20,7 +20,6 @@ public function it_sends_event() $client = new HttpClient('appkeep_key'); $client->sendEvent(new class extends AbstractEvent { - protected $name = 'test_event'; public function toArray()