Refactoring Request::remove_from_uri method.

This commit is contained in:
Taylor Otwell 2011-07-06 14:58:29 -07:00
parent b1342a5928
commit 37927ee44b
1 changed files with 1 additions and 6 deletions

View File

@ -63,12 +63,7 @@ public static function uri()
*/ */
private static function remove_from_uri($uri, $value) private static function remove_from_uri($uri, $value)
{ {
if (strpos($uri, $value) === 0) return (strpos($uri, $value) === 0) ? substr($uri, strlen($value)) : $uri;
{
$uri = (string) substr($uri, strlen($value));
}
return $uri;
} }
/** /**