Skip to content

Commit

Permalink
🎨 Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bramus committed Oct 19, 2020
1 parent b29f5f1 commit 15630e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Bramus/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private function handle($routes, $quitAfterRun = false)
// We have a following parameter: take the substring from the current param position until the next one's position (thank you PREG_OFFSET_CAPTURE)
if (isset($matches[$index + 1]) && isset($matches[$index + 1][0]) && is_array($matches[$index + 1][0])) {
if ($matches[$index + 1][0][1] > -1) {
return trim(substr($match[0][0], 0, $matches[$index + 1][0][1] - $match[0][1]), '/');
return trim(substr($match[0][0], 0, $matches[$index + 1][0][1] - $match[0][1]), '/');
}
} // We have no following parameters: return the whole lot

Expand All @@ -377,7 +377,6 @@ private function handle($routes, $quitAfterRun = false)

private function invoke($fn, $params = array())
{

if (is_callable($fn)) {
call_user_func_array($fn, $params);
}
Expand Down

0 comments on commit 15630e2

Please sign in to comment.