Skip to content

Commit

Permalink
pint
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Sep 30, 2024
1 parent 85c31e4 commit 981d5cf
Show file tree
Hide file tree
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
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/overrides/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/RefreshesDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 981d5cf

Please sign in to comment.