pull/534/head
Austin Collier 1 year ago
parent aaf6a44a2c
commit 4c60454fa0

@ -58,7 +58,7 @@
"test-coverage": "rm clover.xml && XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html=coverage --coverage-clover=clover.xml && vendor/bin/coverage-check clover.xml 100",
"lint": "phpstan --no-progress -cphpstan.neon",
"beautify": "phpcbf --standard=phpcs.xml",
"phpcs": "phpcs --standard=phpcs.xml"
"phpcs": "phpcs --standard=phpcs.xml -n"
},
"suggest": {
"latte/latte": "Latte template engine",

@ -192,7 +192,7 @@ class Route
// catches potential optional parameter
$url = str_replace('(/', '/', $url);
// trim any trailing slashes
if($url !== '/') {
if ($url !== '/') {
$url = rtrim($url, '/');
}
return $url;

Loading…
Cancel
Save