@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Get route (early) middleware pre-response. |
72 | - * @return mixed |
|
72 | + * @return string |
|
73 | 73 | */ |
74 | 74 | public function getPreResponse(){ |
75 | 75 | return $this->preResponse; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Set handler pre-response. |
80 | - * @param $string |
|
80 | + * @param string $string |
|
81 | 81 | * @return $this |
82 | 82 | */ |
83 | 83 | public function withPreResponse($string){ |
@@ -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 | /** |
@@ -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 |