Skip to content

Commit f1ec2db

Browse files
committed
refactor: rename variable name
1 parent 1fa47d1 commit f1ec2db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Router/RouteCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,8 +1427,8 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
14271427
// routes should always be the "source of truth".
14281428
// this works only because discovered routes are added just prior
14291429
// to attempting to route the request.
1430-
$fromExists = isset($this->routes[$verb][$routeKey]);
1431-
if ((isset($this->routesNames[$verb][$name]) || $fromExists) && ! $overwrite) {
1430+
$routeKeyExists = isset($this->routes[$verb][$routeKey]);
1431+
if ((isset($this->routesNames[$verb][$name]) || $routeKeyExists) && ! $overwrite) {
14321432
return;
14331433
}
14341434

0 commit comments

Comments
 (0)