[OPTIMISATIONS] Optimised code and removed unused references

This commit is contained in:
Simon Sessingø
2016-04-09 05:58:18 +02:00
parent b34738a51a
commit 2f2c3ca3ca
6 changed files with 13 additions and 6 deletions
@@ -79,10 +79,12 @@ class RouterController extends RouterEntry {
/**
* @param string $url
* @return static
*/
public function setUrl($url) {
$url = rtrim($url, '/') . '/';
$this->url = $url;
return $this;
}
/**
@@ -94,9 +96,11 @@ class RouterController extends RouterEntry {
/**
* @param string $controller
* @return static
*/
public function setController($controller) {
$this->controller = $controller;
return $this;
}
/**
@@ -108,9 +112,11 @@ class RouterController extends RouterEntry {
/**
* @param string $method
* @return static
*/
public function setMethod($method) {
$this->method = $method;
return $this;
}
}