refactoring the uri class.

This commit is contained in:
Taylor Otwell
2011-10-24 23:39:27 -05:00
parent bd6695844e
commit bf50b67475

View File

@@ -34,14 +34,9 @@ class URI {
*/ */
public function get() public function get()
{ {
if (is_null($this->uri)) if ( ! is_null($this->uri)) return $this->uri;
{
$uri = parse_url($this->server['REQUEST_URI'], PHP_URL_PATH);
$this->uri = $this->format($this->clean($uri)); return $this->uri = $this->format($this->clean(parse_url($this->server['REQUEST_URI'], PHP_URL_PATH)));
}
return $this->uri;
} }
/** /**