diff --git a/src/Blade/Components/Script.php b/src/Blade/Components/Script.php index a29567b..bca9246 100644 --- a/src/Blade/Components/Script.php +++ b/src/Blade/Components/Script.php @@ -4,6 +4,7 @@ use Illuminate\Contracts\View\View; use Illuminate\View\Component; + use function config; use function url; use function view; diff --git a/src/Http/Middleware/InjectScript.php b/src/Http/Middleware/InjectScript.php index 71d10b4..0823a06 100644 --- a/src/Http/Middleware/InjectScript.php +++ b/src/Http/Middleware/InjectScript.php @@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Blade; use Laragear\Poke\Blade\Components\Script; use Symfony\Component\HttpFoundation\Response; + use function csrf_field; use function strpos; use function substr_replace; diff --git a/tests/Http/Controllers/PokeControllerTest.php b/tests/Http/Controllers/PokeControllerTest.php index e381476..8c2470c 100644 --- a/tests/Http/Controllers/PokeControllerTest.php +++ b/tests/Http/Controllers/PokeControllerTest.php @@ -2,10 +2,11 @@ namespace Tests\Http\Controllers; -use function now; use Symfony\Component\HttpFoundation\Cookie; use Tests\TestCase; +use function now; + class PokeControllerTest extends TestCase { public function test_sets_xsrf_token(): void diff --git a/tests/Http/Middleware/DefinesWebRoutes.php b/tests/Http/Middleware/DefinesWebRoutes.php index 7b64a1f..2c3730c 100644 --- a/tests/Http/Middleware/DefinesWebRoutes.php +++ b/tests/Http/Middleware/DefinesWebRoutes.php @@ -4,6 +4,7 @@ use Illuminate\Routing\Route; use Illuminate\Support\Facades\Blade; + use function redirect; use function response; diff --git a/tests/Http/Middleware/InjectScriptAutoModeTest.php b/tests/Http/Middleware/InjectScriptAutoModeTest.php index 4eff3f9..50ab16f 100644 --- a/tests/Http/Middleware/InjectScriptAutoModeTest.php +++ b/tests/Http/Middleware/InjectScriptAutoModeTest.php @@ -2,9 +2,10 @@ namespace Tests\Http\Middleware; -use function substr_count; use Tests\TestCase; +use function substr_count; + class InjectScriptAutoModeTest extends TestCase { use DefinesWebRoutes; diff --git a/tests/Http/Middleware/InjectScriptMiddlewareModeTest.php b/tests/Http/Middleware/InjectScriptMiddlewareModeTest.php index 74c7280..0cc840b 100644 --- a/tests/Http/Middleware/InjectScriptMiddlewareModeTest.php +++ b/tests/Http/Middleware/InjectScriptMiddlewareModeTest.php @@ -2,9 +2,10 @@ namespace Tests\Http\Middleware; -use function substr_count; use Tests\TestCase; +use function substr_count; + class InjectScriptMiddlewareModeTest extends TestCase { use DefinesWebRoutes;