From aee26e3fb4e1fa61998b279ac412929494f156b2 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 22 Feb 2023 01:27:45 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/BootHelpers.php | 3 ++- tests/Http/Middleware/MiddlewareDeclarationTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BootHelpers.php b/src/BootHelpers.php index 1a099d2..68e5f70 100644 --- a/src/BootHelpers.php +++ b/src/BootHelpers.php @@ -9,9 +9,9 @@ use Illuminate\Contracts\Http\Kernel as KernelContract; use Illuminate\Contracts\Validation\Factory; use Illuminate\Routing\Router; -use Laragear\Meta\Http\Middleware\MiddlewareDeclaration; use function is_callable; use function is_string; +use Laragear\Meta\Http\Middleware\MiddlewareDeclaration; trait BootHelpers { @@ -67,6 +67,7 @@ static function (Factory $validator, Application $app) use ($message, $callback, * Returns a middleware declaration. * * @template TValue + * * @param TValue|class-string|string $class * @return \Laragear\Meta\Http\Middleware\MiddlewareDeclaration */ diff --git a/tests/Http/Middleware/MiddlewareDeclarationTest.php b/tests/Http/Middleware/MiddlewareDeclarationTest.php index 93d962b..403d4a2 100644 --- a/tests/Http/Middleware/MiddlewareDeclarationTest.php +++ b/tests/Http/Middleware/MiddlewareDeclarationTest.php @@ -20,7 +20,8 @@ protected function setUp(): void { parent::setUp(); - $this->declaration = (new class($this->app) extends ServiceProvider { + $this->declaration = (new class($this->app) extends ServiceProvider + { use BootHelpers; public function getDeclaration()