1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 12:10:51 +02:00

Clean up code

This commit is contained in:
Franz Liedke
2015-09-04 12:05:12 +02:00
parent eaa74ce9d9
commit 312d964f91

View File

@@ -1,5 +1,4 @@
<?php <?php
/* /*
* This file is part of Flarum. * This file is part of Flarum.
* *
@@ -91,7 +90,7 @@ class RouteCollection
{ {
$parts = $this->reverse[$name][0]; $parts = $this->reverse[$name][0];
array_walk($parts, [$this, 'fixPathPart'], $parameters); array_walk($parts, [$this, 'fixPathPart'], $parameters);
$path = '/' . ltrim(implode('', $parts), '/');
return $path; return '/' . ltrim(implode('', $parts), '/');
} }
} }