From 37927ee44b808ab7626cf8f190adbf20692c6acf Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Jul 2011 14:58:29 -0700 Subject: [PATCH] Refactoring Request::remove_from_uri method. --- system/request.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/request.php b/system/request.php index 37a5ee42..6cecf359 100644 --- a/system/request.php +++ b/system/request.php @@ -63,12 +63,7 @@ public static function uri() */ 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; } /**