[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
+1 -3
View File
@@ -123,7 +123,7 @@ abstract class RouterEntry {
}
/**
* @return string
* @return string|array
*/
public function getMiddleware() {
return $this->middleware;
@@ -360,9 +360,7 @@ abstract class RouterEntry {
}
public function renderRoute(Request $request) {
if(is_object($this->getCallback()) && is_callable($this->getCallback())) {
// When the callback is a function
call_user_func_array($this->getCallback(), $this->getParameters());
} else {