From a3edbea15e157fbcd86eb332d38715d9250a0900 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Mon, 9 Dec 2024 14:10:00 +0000 Subject: [PATCH] Fix styling --- tests/TestCase.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 444a3a1..9f20baf 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -54,20 +54,19 @@ public function assertRouteRegistered( ?bool $preventsScopedBindings = false, ?array $defaults = [], ?bool $withTrashed = false, - ): self - { - if (!is_array($middleware)) { + ): self { + if (! is_array($middleware)) { $middleware = Arr::wrap($middleware); } - if (!is_array($withoutMiddleware)) { + if (! is_array($withoutMiddleware)) { $withoutMiddleware = Arr::wrap($withoutMiddleware); } $routeRegistered = collect($this->getRouteCollection()->getRoutes()) ->contains(function (Route $route) use ($name, $middleware, $withoutMiddleware, $controllerMethod, $controller, $uri, $httpMethods, $domain, $wheres, $isFallback, $enforcesScopedBindings, $preventsScopedBindings, $defaults, $withTrashed) { foreach (Arr::wrap($httpMethods) as $httpMethod) { - if (!in_array(strtoupper($httpMethod), $route->methods)) { + if (! in_array(strtoupper($httpMethod), $route->methods)) { return false; } }