From 83e56f46cc9442839837cbdb9925a2a36493aa74 Mon Sep 17 00:00:00 2001 From: Thouhedul Islam Date: Mon, 17 Mar 2025 20:42:22 +0100 Subject: [PATCH] Install pint and apply pint style on code --- composer.json | 1 + src/Events/CommentAdded.php | 3 +-- src/Events/CommentDeleted.php | 3 +-- tests/TestCase.php | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index bc05377..6974e8a 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "illuminate/support": "^10.0|^11.0|^12.0" }, "require-dev": { + "laravel/pint": "^1.21", "orchestra/testbench": "^3.6|^5.0|^6.0|^7.0|^8.0", "phpunit/phpunit": "^9.5.8|^10.0.7" }, diff --git a/src/Events/CommentAdded.php b/src/Events/CommentAdded.php index a03c59a..11db643 100644 --- a/src/Events/CommentAdded.php +++ b/src/Events/CommentAdded.php @@ -17,6 +17,5 @@ class CommentAdded implements ShouldDispatchAfterCommit */ public function __construct( public Comment $comment, - ) { - } + ) {} } diff --git a/src/Events/CommentDeleted.php b/src/Events/CommentDeleted.php index 40d6c05..138032d 100644 --- a/src/Events/CommentDeleted.php +++ b/src/Events/CommentDeleted.php @@ -17,6 +17,5 @@ class CommentDeleted implements ShouldDispatchAfterCommit */ public function __construct( public Comment $comment, - ) { - } + ) {} } diff --git a/tests/TestCase.php b/tests/TestCase.php index 3679880..e1f144d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -8,7 +8,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase { - public function setUp(): void + protected function setUp(): void { parent::setUp(); $this->loadLaravelMigrations(['--database' => 'sqlite']); @@ -39,7 +39,7 @@ protected function setUpDatabase() { include_once __DIR__.'/../database/migrations/create_comments_table.php.stub'; - (new \CreateCommentsTable())->up(); + (new \CreateCommentsTable)->up(); $this->app['db']->connection()->getSchemaBuilder()->create('posts', function (Blueprint $table) { $table->increments('id');