@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * Run one of the mapped callbacks to a passed HTTP Method. |
| 103 | 103 | * @param array $args The arguments to be passed to the callback |
| 104 | 104 | * @param string $method The HTTP Method requested. |
| 105 | - * @return array The callback response. |
|
| 105 | + * @return string[] The callback response. |
|
| 106 | 106 | */ |
| 107 | 107 | public function run(array $args, $method='get'){ |
| 108 | 108 | $method = strtolower($method); |
@@ -226,7 +226,6 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | 228 | * Bind a middleware callback to invoked before the route definition |
| 229 | - * @param callable $before The callback to be invoked ($this is binded to the route object). |
|
| 230 | 229 | * @return Route |
| 231 | 230 | */ |
| 232 | 231 | public function & before($callback){ |
@@ -350,7 +349,7 @@ discard block |
||
| 350 | 349 | * Helper for reverse routing : obtain a complete URL for a named route with passed parameters |
| 351 | 350 | * @param string $name The name tag of the route. |
| 352 | 351 | * @param array $params The parameter map of the route dynamic values. |
| 353 | - * @return string |
|
| 352 | + * @return URL |
|
| 354 | 353 | */ |
| 355 | 354 | public static function URL($name, $params = []){ |
| 356 | 355 | return ($r = static::as($name)) ? $r-> getURL($params) : new URL(); |
@@ -380,7 +379,7 @@ discard block |
||
| 380 | 379 | * @param string $pattern The URL schema with the named parameters |
| 381 | 380 | * @param string $URL The URL to process, if omitted the current request URI will be used. |
| 382 | 381 | * @param boolean $cut If true don't limit the matching to the whole URL (used for group pattern extraction) |
| 383 | - * @return array The extracted variables |
|
| 382 | + * @return callable The extracted variables |
|
| 384 | 383 | */ |
| 385 | 384 | protected static function extractVariablesFromURL($pattern, $URL=null, $cut=false){ |
| 386 | 385 | $URL = $URL ?: Request::URI(); |
@@ -17,7 +17,6 @@ discard block |
||
| 17 | 17 | * This function can be used to get all options passing null, setting options passing an associative |
| 18 | 18 | * array or retrieve a single value passing a string |
| 19 | 19 | * |
| 20 | - * @param mixed $options The options passed to the relation layer. |
|
| 21 | 20 | * @return mixed All options array or a single value |
| 22 | 21 | */ |
| 23 | 22 | protected static function & relationOptions(){ |
@@ -31,7 +30,7 @@ discard block |
||
| 31 | 30 | * The save callback interface is |
| 32 | 31 | * function($table, array $options) |
| 33 | 32 | * |
| 34 | - * @param callable $callback The callback to use on model save |
|
| 33 | + * @param string $plurality |
|
| 35 | 34 | * @return callable Current save callback |
| 36 | 35 | */ |
| 37 | 36 | private static function relationAddRelationshipTo($link, $plurality, $extra=[]){ |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Construct a new view based on the passed template |
| 24 | - * @param mixed $template The template path or an array of them. |
|
| 24 | + * @param string $template The template path or an array of them. |
|
| 25 | 25 | */ |
| 26 | 26 | public function __construct($template){ |
| 27 | 27 | foreach ((array)$template as $templ){ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Load a Template Handler |
| 36 | - * @param class $handler The template handler class instance |
|
| 36 | + * @param View\Adapter $handler The template handler class instance |
|
| 37 | 37 | */ |
| 38 | 38 | public static function using(View\Adapter $handler){ |
| 39 | 39 | static::$handler = $handler; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Returns the handler instance |
| 76 | - * @return mixed |
|
| 76 | + * @return View\Adapter |
|
| 77 | 77 | */ |
| 78 | 78 | public static function & handler(){ |
| 79 | 79 | return static::$handler; |