refactor: run rector

This commit is contained in:
kenjis 2022-10-07 15:24:54 +09:00
parent cfeb6f1e2e
commit 596b2e949d
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -1254,8 +1254,7 @@ class RouteCollection implements RouteCollectionInterface
// routes should always be the "source of truth".
// this works only because discovered routes are added just prior
// to attempting to route the request.
$fromExists = (dot_array_search('*.route.' . $from, $this->routes[$verb] ?? []) === null)
? false : true;
$fromExists = dot_array_search('*.route.' . $from, $this->routes[$verb] ?? []) !== null;
if ((isset($this->routes[$verb][$name]) || $fromExists) && ! $overwrite) {
return;
}