diff --git a/Filament/Pages/BackupMysql.php b/Filament/Pages/BackupMysql.php index 15313bad..1f27c925 100644 --- a/Filament/Pages/BackupMysql.php +++ b/Filament/Pages/BackupMysql.php @@ -28,7 +28,7 @@ protected function getViewData(): array { Assert::isArray($connections = config('database.connections')); - $connections = array_filter($connections, fn ($item): bool => $item['driver'] === 'mysql'); + $connections = array_filter($connections, fn ($item): bool => 'mysql' === $item['driver']); // $connections=collect($connections)->keyBy('database'); return ['connections' => $connections]; diff --git a/Tests/Unit/Actions/DB/DownloadActionTest.php b/Tests/Unit/Actions/DB/DownloadActionTest.php index c9048bfe..1e4f50e5 100644 --- a/Tests/Unit/Actions/DB/DownloadActionTest.php +++ b/Tests/Unit/Actions/DB/DownloadActionTest.php @@ -21,7 +21,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->downloadAction = new DownloadAction; + $this->downloadAction = new DownloadAction(); } protected function tearDown(): void diff --git a/Tests/Unit/Database/Factories/SettingFactoryTest.php b/Tests/Unit/Database/Factories/SettingFactoryTest.php index c2ff6f6c..c0e1ca1e 100644 --- a/Tests/Unit/Database/Factories/SettingFactoryTest.php +++ b/Tests/Unit/Database/Factories/SettingFactoryTest.php @@ -21,7 +21,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->settingFactory = new SettingFactory; + $this->settingFactory = new SettingFactory(); } protected function tearDown(): void diff --git a/Tests/Unit/Database/Seeders/SettingDatabaseSeederTest.php b/Tests/Unit/Database/Seeders/SettingDatabaseSeederTest.php index 1a651eac..60893851 100644 --- a/Tests/Unit/Database/Seeders/SettingDatabaseSeederTest.php +++ b/Tests/Unit/Database/Seeders/SettingDatabaseSeederTest.php @@ -21,7 +21,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->settingDatabaseSeeder = new SettingDatabaseSeeder; + $this->settingDatabaseSeeder = new SettingDatabaseSeeder(); } protected function tearDown(): void diff --git a/Tests/Unit/Filament/Pages/BackupMysqlTest.php b/Tests/Unit/Filament/Pages/BackupMysqlTest.php index b00be7e1..4562c51b 100644 --- a/Tests/Unit/Filament/Pages/BackupMysqlTest.php +++ b/Tests/Unit/Filament/Pages/BackupMysqlTest.php @@ -21,7 +21,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->backupMysql = new BackupMysql; + $this->backupMysql = new BackupMysql(); } protected function tearDown(): void diff --git a/Tests/Unit/Filament/Pages/DashboardTest.php b/Tests/Unit/Filament/Pages/DashboardTest.php index 509fbb9e..97809df1 100644 --- a/Tests/Unit/Filament/Pages/DashboardTest.php +++ b/Tests/Unit/Filament/Pages/DashboardTest.php @@ -21,7 +21,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->dashboard = new Dashboard; + $this->dashboard = new Dashboard(); } protected function tearDown(): void diff --git a/Tests/Unit/docs/listeners/GenerateSitemapTest.php b/Tests/Unit/docs/listeners/GenerateSitemapTest.php index f19ecb74..a687f632 100644 --- a/Tests/Unit/docs/listeners/GenerateSitemapTest.php +++ b/Tests/Unit/docs/listeners/GenerateSitemapTest.php @@ -22,7 +22,7 @@ protected function setUp(): void parent::setUp(); /* @todo Correctly instantiate tested object to use it. */ - $this->generateSitemap = new GenerateSitemap; + $this->generateSitemap = new GenerateSitemap(); } protected function tearDown(): void