Skip to content

Commit 596b2e9

Browse files
committed
refactor: run rector
1 parent cfeb6f1 commit 596b2e9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/Router/RouteCollection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,7 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
12541254
// routes should always be the "source of truth".
12551255
// this works only because discovered routes are added just prior
12561256
// to attempting to route the request.
1257-
$fromExists = (dot_array_search('*.route.' . $from, $this->routes[$verb] ?? []) === null)
1258-
? false : true;
1257+
$fromExists = dot_array_search('*.route.' . $from, $this->routes[$verb] ?? []) !== null;
12591258
if ((isset($this->routes[$verb][$name]) || $fromExists) && ! $overwrite) {
12601259
return;
12611260
}

0 commit comments

Comments
 (0)