Skip to content

Commit

Permalink
refactor: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jan 25, 2023
1 parent 778c1d9 commit 950721e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ public function getRegisteredControllers(?string $verb = '*'): array

if ($verb === '*') {
foreach ($this->defaultHTTPMethods as $tmpVerb) {
foreach ($this->routes[$tmpVerb] as $routeKey => $route) {
foreach ($this->routes[$tmpVerb] as $route) {
$controller = $this->getControllerName($route['handler']);
if ($controller !== null) {
$controllers[] = $controller;
Expand Down

0 comments on commit 950721e

Please sign in to comment.