Skip to content

Commit

Permalink
style: make multiple lines into a single line
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 12, 2022
1 parent f6cce24 commit 3eeae7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions system/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,7 @@ protected function checkRoutes(string $uri): bool
} elseif (strpos($val, '$') !== false && strpos($key, '(') !== false) {
$val = preg_replace('#^' . $key . '$#u', $val, $uri);
} elseif (strpos($val, '/') !== false) {
[
$controller,
$method,
] = explode('::', $val);
[$controller, $method] = explode('::', $val);

// Only replace slashes in the controller, not in the method.
$controller = str_replace('/', '\\', $controller);
Expand Down

0 comments on commit 3eeae7d

Please sign in to comment.