Skip to content

Commit 25d7c45

Browse files
committed
refactor: rename variable name
1 parent 44baf95 commit 25d7c45

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
@@ -1428,8 +1428,8 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
14281428
// routes should always be the "source of truth".
14291429
// this works only because discovered routes are added just prior
14301430
// to attempting to route the request.
1431-
$fromExists = isset($this->routes[$verb][$routeKey]);
1432-
if ((isset($this->routesNames[$verb][$name]) || $fromExists) && ! $overwrite) {
1431+
$routeKeyExists = isset($this->routes[$verb][$routeKey]);
1432+
if ((isset($this->routesNames[$verb][$name]) || $routeKeyExists) && ! $overwrite) {
14331433
return;
14341434
}
14351435

0 commit comments

Comments
 (0)