Skip to content

Commit b60140a

Browse files
committed
refactor: rename variable name
1 parent a9b9342 commit b60140a

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
@@ -1456,8 +1456,8 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
14561456
// routes should always be the "source of truth".
14571457
// this works only because discovered routes are added just prior
14581458
// to attempting to route the request.
1459-
$fromExists = isset($this->routes[$verb][$routeKey]);
1460-
if ((isset($this->routesNames[$verb][$name]) || $fromExists) && ! $overwrite) {
1459+
$routeKeyExists = isset($this->routes[$verb][$routeKey]);
1460+
if ((isset($this->routesNames[$verb][$name]) || $routeKeyExists) && ! $overwrite) {
14611461
return;
14621462
}
14631463

0 commit comments

Comments
 (0)