Skip to content

Commit

Permalink
pint
Browse files Browse the repository at this point in the history
markhuot committed Sep 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 85c31e4 commit 981d5cf
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bin/create-default-fs.php
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 1 addition & 3 deletions src/overrides/Config.php
Original file line number Diff line number Diff line change
@@ -2,6 +2,4 @@

namespace markhuot\craftpest\overrides;

class Config extends \craft\services\Config
{
}
class Config extends \craft\services\Config {}
4 changes: 1 addition & 3 deletions src/overrides/ProjectConfig.php
Original file line number Diff line number Diff line change
@@ -2,6 +2,4 @@

namespace markhuot\craftpest\overrides;

class ProjectConfig extends \craft\services\Config
{
}
class ProjectConfig extends \craft\services\Config {}
4 changes: 1 addition & 3 deletions src/pest/PhpReporter.php
Original file line number Diff line number Diff line change
@@ -2,6 +2,4 @@

namespace markhuot\craftpest\pest;

class PhpReporter extends Reporter
{
}
class PhpReporter extends Reporter {}
2 changes: 1 addition & 1 deletion src/test/DatabaseAssertions.php
Original file line number Diff line number Diff line change
@@ -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);
}
2 changes: 1 addition & 1 deletion src/test/RefreshesDatabase.php
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 981d5cf

Please sign in to comment.