Skip to content

Commit 1b4e1c9

Browse files
ibnsultangithub-actions[bot]
authored andcommitted
chore: fix styling
1 parent 6eeb39e commit 1b4e1c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Router.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public static function findRoute(
772772
// Extract parameter values
773773
$params = [];
774774
foreach ($matches as $index => $value) {
775-
$paramName = $paramNames[$index] ?? "var" . ($index + 1);
775+
$paramName = $paramNames[$index] ?? 'var' . ($index + 1);
776776
$params[$paramName] = trim($value, '/');
777777
}
778778

@@ -788,7 +788,9 @@ public static function findRoute(
788788

789789
$handledRoutes[] = $routeData;
790790

791-
if ($returnFirst) break;
791+
if ($returnFirst) {
792+
break;
793+
}
792794
}
793795
}
794796

0 commit comments

Comments
 (0)