@@ -92,6 +92,7 @@ |
||
92 | 92 | * Returns all elements if you pass `null` as $key |
93 | 93 | * |
94 | 94 | * @param string $key The name of the input value |
95 | + * @param boolean $default |
|
95 | 96 | * |
96 | 97 | * @return Object The returned value or $default. |
97 | 98 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * Run one of the mapped callbacks to a passed HTTP Method. |
84 | 84 | * @param array $args The arguments to be passed to the callback |
85 | 85 | * @param string $method The HTTP Method requested. |
86 | - * @return array The callback response. |
|
86 | + * @return string[] The callback response. |
|
87 | 87 | */ |
88 | 88 | public function run(array $args, $method='get'){ |
89 | 89 | $method = strtolower($method); |
@@ -207,7 +207,6 @@ discard block |
||
207 | 207 | |
208 | 208 | /** |
209 | 209 | * Bind a middleware callback to invoked before the route definition |
210 | - * @param callable $before The callback to be invoked ($this is binded to the route object). |
|
211 | 210 | * @return Route |
212 | 211 | */ |
213 | 212 | public function & before($callback){ |
@@ -311,7 +310,7 @@ discard block |
||
311 | 310 | * @param string $pattern The URL schema with the named parameters |
312 | 311 | * @param string $URL The URL to process, if omitted the current request URI will be used. |
313 | 312 | * @param boolean $cut If true don't limit the matching to the whole URL (used for group pattern extraction) |
314 | - * @return array The extracted variables |
|
313 | + * @return callable The extracted variables |
|
315 | 314 | */ |
316 | 315 | protected static function extractVariablesFromURL($pattern, $URL=null, $cut=false){ |
317 | 316 | $URL = $URL ?: Request::URI(); |