From 312d964f91461f3912d0acf83362c901c3c81e8d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 4 Sep 2015 12:05:12 +0200 Subject: [PATCH] Clean up code --- framework/core/src/Http/RouteCollection.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/core/src/Http/RouteCollection.php b/framework/core/src/Http/RouteCollection.php index 795f72ef8..5c74900f8 100644 --- a/framework/core/src/Http/RouteCollection.php +++ b/framework/core/src/Http/RouteCollection.php @@ -1,5 +1,4 @@ reverse[$name][0]; array_walk($parts, [$this, 'fixPathPart'], $parameters); - $path = '/' . ltrim(implode('', $parts), '/'); - return $path; + + return '/' . ltrim(implode('', $parts), '/'); } }