From 981d5cfdd6f2d5c93c8c98f94ae07f0878750c3a Mon Sep 17 00:00:00 2001 From: markhuot Date: Mon, 30 Sep 2024 12:51:23 -0400 Subject: [PATCH] pint --- bin/create-default-fs.php | 2 +- src/overrides/Config.php | 4 +--- src/overrides/ProjectConfig.php | 4 +--- src/pest/PhpReporter.php | 4 +--- src/test/DatabaseAssertions.php | 2 +- src/test/RefreshesDatabase.php | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/bin/create-default-fs.php b/bin/create-default-fs.php index f47a1b0..43ef82d 100755 --- a/bin/create-default-fs.php +++ b/bin/create-default-fs.php @@ -22,7 +22,7 @@ $volume = $app->volumes->getVolumeByHandle('local'); if (! $volume) { - $volume = new \craft\models\Volume(); + $volume = new \craft\models\Volume; $volume->name = 'Local'; $volume->handle = 'local'; $volume->fs = $fs; diff --git a/src/overrides/Config.php b/src/overrides/Config.php index 8ee1675..9664291 100644 --- a/src/overrides/Config.php +++ b/src/overrides/Config.php @@ -2,6 +2,4 @@ namespace markhuot\craftpest\overrides; -class Config extends \craft\services\Config -{ -} +class Config extends \craft\services\Config {} diff --git a/src/overrides/ProjectConfig.php b/src/overrides/ProjectConfig.php index 64d524f..ad8495e 100644 --- a/src/overrides/ProjectConfig.php +++ b/src/overrides/ProjectConfig.php @@ -2,6 +2,4 @@ namespace markhuot\craftpest\overrides; -class ProjectConfig extends \craft\services\Config -{ -} +class ProjectConfig extends \craft\services\Config {} diff --git a/src/pest/PhpReporter.php b/src/pest/PhpReporter.php index 7c8f963..abcff2a 100644 --- a/src/pest/PhpReporter.php +++ b/src/pest/PhpReporter.php @@ -2,6 +2,4 @@ namespace markhuot\craftpest\pest; -class PhpReporter extends Reporter -{ -} +class PhpReporter extends Reporter {} diff --git a/src/test/DatabaseAssertions.php b/src/test/DatabaseAssertions.php index e43a8cc..fa47769 100644 --- a/src/test/DatabaseAssertions.php +++ b/src/test/DatabaseAssertions.php @@ -22,7 +22,7 @@ trait DatabaseAssertions */ public function assertDatabaseCount(string $tableName, int $expectedCount) { - $actualCount = (new Query())->from($tableName)->count(); + $actualCount = (new Query)->from($tableName)->count(); $this->assertEquals($expectedCount, $actualCount); } diff --git a/src/test/RefreshesDatabase.php b/src/test/RefreshesDatabase.php index 2eb16c9..d51c485 100644 --- a/src/test/RefreshesDatabase.php +++ b/src/test/RefreshesDatabase.php @@ -129,7 +129,7 @@ public function rollBackTransaction() $this->transaction->rollBack(); - $event = new RollbackTransactionEvent(); + $event = new RollbackTransactionEvent; $event->sender = $this; Event::trigger(RefreshesDatabase::class, 'EVENT_ROLLBACK_TRANSACTION', $event);