@@ -114,10 +114,10 @@ |
||
| 114 | 114 | return \FastRoute\cachedDispatcher( |
| 115 | 115 | function(RouteCollector $r) use ($routes){ |
| 116 | 116 | foreach($routes as $route){ |
| 117 | - $r->addRoute($route['method'],$route['pattern'],$route['handler']); |
|
| 117 | + $r->addRoute($route['method'],$route['pattern'],$route['handler']); |
|
| 118 | 118 | } |
| 119 | 119 | }, |
| 120 | - $this->options |
|
| 120 | + $this->options |
|
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | try{ |
| 54 | 54 | $this->resolveController( $this->controller); |
| 55 | 55 | $this->resolveMethod( $this->method ); |
| 56 | - }catch(\Exception $e){ |
|
| 56 | + } catch(\Exception $e){ |
|
| 57 | 57 | $this->resolved = new $this->controller(...$arguments); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @param $name |
| 57 | 57 | */ |
| 58 | 58 | public function addName($name = ''){ |
| 59 | - $this->name[$name] = $name; |
|
| 59 | + $this->name[$name] = $name; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |