Commit 37927ee4 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring Request::remove_from_uri method.

parent b1342a59
...@@ -63,12 +63,7 @@ class Request { ...@@ -63,12 +63,7 @@ class Request {
*/ */
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;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment