Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 9, 2024
1 parent 12d1d2d commit b332eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
/.idea/
*.cache
.history
.history
.phpactor.json
2 changes: 1 addition & 1 deletion src/Http/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static function match(string $method, string $path): Route|null
return null;
}

$parts = array_values(array_filter(explode('/', $path), fn($segment) => $segment !== ''));
$parts = array_values(array_filter(explode('/', $path), fn ($segment) => $segment !== ''));
$length = count($parts) - 1;
$filteredParams = array_filter(self::$params, fn ($i) => $i <= $length);

Expand Down

0 comments on commit b332eec

Please sign in to comment.