mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: run rector
This commit is contained in:
parent
cfeb6f1e2e
commit
596b2e949d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user