Browse Source

Refactoring Request::remove_from_uri method.

Taylor Otwell 13 years ago
parent
commit
37927ee44b
1 changed files with 1 additions and 6 deletions
  1. 1 6
      system/request.php

+ 1 - 6
system/request.php

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