Skip to content

Commit

Permalink
refactor: rename variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 1, 2023
1 parent 1fa47d1 commit f1ec2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1427,8 +1427,8 @@ protected function create(string $verb, string $from, $to, ?array $options = nul
// 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 = isset($this->routes[$verb][$routeKey]);
if ((isset($this->routesNames[$verb][$name]) || $fromExists) && ! $overwrite) {
$routeKeyExists = isset($this->routes[$verb][$routeKey]);
if ((isset($this->routesNames[$verb][$name]) || $routeKeyExists) && ! $overwrite) {
return;
}

Expand Down

0 comments on commit f1ec2db

Please sign in to comment.