@@ -143,7 +143,6 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Shortcut to add a GET route. |
| 145 | 145 | * |
| 146 | - * @param null|string|array $method as request methods |
|
| 147 | 146 | * @param null|string|callable $action a callback handler for the route. |
| 148 | 147 | * |
| 149 | 148 | * @return class|array as new route(s), class if one added, else array. |
@@ -158,7 +157,6 @@ discard block |
||
| 158 | 157 | /** |
| 159 | 158 | * Shortcut to add a POST route. |
| 160 | 159 | * |
| 161 | - * @param null|string|array $method as request methods |
|
| 162 | 160 | * @param null|string|callable $action a callback handler for the route. |
| 163 | 161 | * |
| 164 | 162 | * @return class|array as new route(s), class if one added, else array. |
@@ -173,7 +171,6 @@ discard block |
||
| 173 | 171 | /** |
| 174 | 172 | * Shortcut to add a PUT route. |
| 175 | 173 | * |
| 176 | - * @param null|string|array $method as request methods |
|
| 177 | 174 | * @param null|string|callable $action a callback handler for the route. |
| 178 | 175 | * |
| 179 | 176 | * @return class|array as new route(s), class if one added, else array. |
@@ -188,7 +185,6 @@ discard block |
||
| 188 | 185 | /** |
| 189 | 186 | * Shortcut to add a DELETE route. |
| 190 | 187 | * |
| 191 | - * @param null|string|array $method as request methods |
|
| 192 | 188 | * @param null|string|callable $action a callback handler for the route. |
| 193 | 189 | * |
| 194 | 190 | * @return class|array as new route(s), class if one added, else array. |
@@ -207,7 +203,7 @@ discard block |
||
| 207 | 203 | * @param string $rule for this route |
| 208 | 204 | * @param null|string|callable $action a callback handler for the route. |
| 209 | 205 | * |
| 210 | - * @return class|array as new route(s), class if one added, else array. |
|
| 206 | + * @return Route as new route(s), class if one added, else array. |
|
| 211 | 207 | */ |
| 212 | 208 | public function addInternal($rule, $action) |
| 213 | 209 | { |
@@ -222,7 +218,7 @@ discard block |
||
| 222 | 218 | /** |
| 223 | 219 | * Get the route for the last route that was handled. |
| 224 | 220 | * |
| 225 | - * @return mixed |
|
| 221 | + * @return string |
|
| 226 | 222 | */ |
| 227 | 223 | public function getLastRoute() |
| 228 | 224 | { |