Permalink
Browse files

Even further simplification of the URI class.

  • Loading branch information...
1 parent f5f9782 commit e4e8fde38aa950c28df13c212b324c2e564d08d9 @reinink reinink committed Sep 30, 2014
Showing with 2 additions and 21 deletions.
  1. +2 −21 src/Extension/URI.php
View
@@ -58,11 +58,11 @@ public function register(Engine $engine)
public function runUri($var1 = null, $var2 = null, $var3 = null, $var4 = null)
{
if (is_null($var1)) {
- return $this->getUri();
+ return $this->uri;
}
if (is_numeric($var1) and is_null($var2)) {
- return $this->getUriSegment($var1);
+ return $this->parts[$var1];
}
if (is_numeric($var1) and is_string($var2)) {
@@ -77,25 +77,6 @@ public function runUri($var1 = null, $var2 = null, $var3 = null, $var4 = null)
}
/**
- * Get the URI.
- * @return string
- */
- protected function getUri()
- {
- return $this->uri;
- }
-
- /**
- * Get a URI segment.
- * @param integer $key
- * @return string
- */
- protected function getUriSegment($key)
- {
- return $this->parts[$key];
- }
-
- /**
* Perform a URI segment match.
* @param integer $key
* @param string $string

0 comments on commit e4e8fde

Please sign in to comment.