@@ -76,8 +76,8 @@ discard block |
||
| 76 | 76 | * @param $class |
| 77 | 77 | * @return mixed |
| 78 | 78 | */ |
| 79 | - private function callHandler($class){ |
|
| 80 | - $instance = call_user_func($this->router->getConfig()['di'],$class); |
|
| 79 | + private function callHandler($class) { |
|
| 80 | + $instance = call_user_func($this->router->getConfig()['di'], $class); |
|
| 81 | 81 | if (method_exists($instance, 'handle')) { |
| 82 | 82 | $reflectionMethod = new ReflectionMethod($instance, 'handle'); |
| 83 | 83 | $dependencies = []; |
@@ -93,8 +93,8 @@ discard block |
||
| 93 | 93 | * @param $class |
| 94 | 94 | * @return Route|RouteCollection|Router|mixed |
| 95 | 95 | */ |
| 96 | - private function getClass($class){ |
|
| 97 | - switch($class){ |
|
| 96 | + private function getClass($class) { |
|
| 97 | + switch ($class) { |
|
| 98 | 98 | case 'JetFire\Routing\Route': |
| 99 | 99 | return $this->router->route; |
| 100 | 100 | break; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | return $this->router->collection; |
| 106 | 106 | break; |
| 107 | 107 | default: |
| 108 | - return call_user_func_array($this->router->getConfig()['di'],[$class]); |
|
| 108 | + return call_user_func_array($this->router->getConfig()['di'], [$class]); |
|
| 109 | 109 | break; |
| 110 | 110 | } |
| 111 | 111 | } |