Skip to content

Commit

Permalink
refactor: use existing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 10, 2023
1 parent 6482c86 commit 9ede977
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function read(string $class, string $defaultController = 'Home', string $
}

// Skip the default controller.
if (class_basename($class) === $defaultController) {
if ($classShortname === $defaultController) {
continue;
}

Expand Down

0 comments on commit 9ede977

Please sign in to comment.