Skip to content

Commit

Permalink
#73 clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoujols committed Mar 28, 2024
1 parent 0692576 commit 1d7175b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EduFramework/Commands/CreateApiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private function generateRoute(string $name, string $uri, string $className): vo
}

$indexName = "api_";
if(array_key_exists( $indexName . $name, $router)) {
if(array_key_exists($indexName . $name, $router)) {
throw new RouteAlreadyExistsException();
}

Expand Down

0 comments on commit 1d7175b

Please sign in to comment.