Commit bf50b674 authored by Taylor Otwell's avatar Taylor Otwell

refactoring the uri class.

parent bd669584
...@@ -34,14 +34,9 @@ class URI { ...@@ -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; return $this->uri = $this->format($this->clean(parse_url($this->server['REQUEST_URI'], PHP_URL_PATH)));
} }
/** /**
......
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