Skip to content

Commit 647d20b

Browse files
committed
refactor: apply early return pattern (fix)
Fix.
1 parent 0207700 commit 647d20b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Commands/Utilities/Routes/ControllerMethodReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ private function getRouteWithoutController(
167167
$routeWithoutController = rtrim(preg_replace($pattern, '', $uriByClass), '/');
168168
$routeWithoutController = $routeWithoutController ?: '/';
169169

170-
return [
170+
return [[
171171
'route' => $routeWithoutController,
172172
'handler' => '\\' . $classname . '::' . $methodName,
173-
];
173+
]];
174174
}
175175
}

0 commit comments

Comments
 (0)