Skip to content

Commit 4f419cd

Browse files
committed
refactor: rename method name
For consistency.
1 parent 7646e3f commit 4f419cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function read(string $class, string $defaultController = 'Home', string $
6969
$classShortname = $reflection->getShortName();
7070

7171
$output = [];
72-
$classInUri = $this->convertClassnameToUri($classname);
72+
$classInUri = $this->convertClassNameToUri($classname);
7373

7474
foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
7575
$methodName = $method->getName();
@@ -166,7 +166,7 @@ private function getParameters(ReflectionMethod $method): array
166166
*
167167
* @return string URI path part from the folder(s) and controller
168168
*/
169-
private function convertClassnameToUri(string $classname): string
169+
private function convertClassNameToUri(string $classname): string
170170
{
171171
// remove the namespace
172172
$pattern = '/' . preg_quote($this->namespace, '/') . '/';

0 commit comments

Comments
 (0)