Skip to content

Commit a3edbea

Browse files
freekmurzegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3746fb4 commit a3edbea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/TestCase.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,19 @@ public function assertRouteRegistered(
5454
?bool $preventsScopedBindings = false,
5555
?array $defaults = [],
5656
?bool $withTrashed = false,
57-
): self
58-
{
59-
if (!is_array($middleware)) {
57+
): self {
58+
if (! is_array($middleware)) {
6059
$middleware = Arr::wrap($middleware);
6160
}
6261

63-
if (!is_array($withoutMiddleware)) {
62+
if (! is_array($withoutMiddleware)) {
6463
$withoutMiddleware = Arr::wrap($withoutMiddleware);
6564
}
6665

6766
$routeRegistered = collect($this->getRouteCollection()->getRoutes())
6867
->contains(function (Route $route) use ($name, $middleware, $withoutMiddleware, $controllerMethod, $controller, $uri, $httpMethods, $domain, $wheres, $isFallback, $enforcesScopedBindings, $preventsScopedBindings, $defaults, $withTrashed) {
6968
foreach (Arr::wrap($httpMethods) as $httpMethod) {
70-
if (!in_array(strtoupper($httpMethod), $route->methods)) {
69+
if (! in_array(strtoupper($httpMethod), $route->methods)) {
7170
return false;
7271
}
7372
}

0 commit comments

Comments
 (0)