mirror of
https://github.com/flarum/framework.git
synced 2025-01-31 23:43:59 +08:00
Clean up code
This commit is contained in:
parent
eaa74ce9d9
commit
312d964f91
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
|
@ -91,7 +90,7 @@ class RouteCollection
|
|||
{
|
||||
$parts = $this->reverse[$name][0];
|
||||
array_walk($parts, [$this, 'fixPathPart'], $parameters);
|
||||
$path = '/' . ltrim(implode('', $parts), '/');
|
||||
return $path;
|
||||
|
||||
return '/' . ltrim(implode('', $parts), '/');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user