@@ -110,7 +110,6 @@ discard block |
||
110 | 110 | * Generic method to add a improved route |
111 | 111 | * |
112 | 112 | * @param mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route |
113 | - * @param mixed $url String or array of strings that will trigger this route |
|
114 | 113 | * @param array $attr Associative array of route attributes |
115 | 114 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
116 | 115 | * |
@@ -267,7 +266,7 @@ discard block |
||
267 | 266 | /** |
268 | 267 | * Adds a GET route, alias of Route::add('GET',$url,$attr,$hideOriginal) |
269 | 268 | * |
270 | - * @param mixed $url String or array of strings that will trigger this route |
|
269 | + * @param string $url String or array of strings that will trigger this route |
|
271 | 270 | * @param array $attr Associative array of route attributes |
272 | 271 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
273 | 272 | * |
@@ -284,7 +283,7 @@ discard block |
||
284 | 283 | /** |
285 | 284 | * Adds a POST route, alias of Route::add('POST',$url,$attr,$hideOriginal) |
286 | 285 | * |
287 | - * @param mixed $url String or array of strings that will trigger this route |
|
286 | + * @param string $url String or array of strings that will trigger this route |
|
288 | 287 | * @param array $attr Associative array of route attributes |
289 | 288 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
290 | 289 | * |
@@ -335,7 +334,7 @@ discard block |
||
335 | 334 | /** |
336 | 335 | * Adds a DELETE route, alias of Route::add('DELETE',$url,$attr,$hideOriginal) |
337 | 336 | * |
338 | - * @param mixed $url String or array of strings that will trigger this route |
|
337 | + * @param string $url String or array of strings that will trigger this route |
|
339 | 338 | * @param array $attr Associative array of route attributes |
340 | 339 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
341 | 340 | * |
@@ -373,8 +372,8 @@ discard block |
||
373 | 372 | /** |
374 | 373 | * Adds a list of routes with the verbs contained in $verbs, alias of Route::add($verbs,$url,$attr,$hideOriginal) |
375 | 374 | * |
376 | - * @param mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route |
|
377 | - * @param mixed $url String or array of strings that will trigger this route |
|
375 | + * @param string[] $verbs String or array of string of valid HTTP Verbs that will be accepted in this route |
|
376 | + * @param string $url String or array of strings that will trigger this route |
|
378 | 377 | * @param array $attr Associative array of route attributes |
379 | 378 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
380 | 379 | * |
@@ -408,7 +407,6 @@ discard block |
||
408 | 407 | * |
409 | 408 | * PLEASE NOTE: This is NOT a crud generator, just a bundle of predefined routes. |
410 | 409 | * |
411 | - * @param string $url String or array of strings that will trigger this route |
|
412 | 410 | * @param string $controller Controller name (only controller name) |
413 | 411 | * @param array $attr Associative array of route attributes |
414 | 412 | * |
@@ -716,10 +714,6 @@ discard block |
||
716 | 714 | /** |
717 | 715 | * Creates the 'default_controller' key in CodeIgniter's route array |
718 | 716 | * |
719 | - * @param string $route controller/method name |
|
720 | - * @param string $alias (Optional) alias of the default controller |
|
721 | - * |
|
722 | - * Due a CodeIgniter limitations, this route MAY NOT be a directory. |
|
723 | 717 | * |
724 | 718 | * @return void |
725 | 719 | * |
@@ -775,7 +769,7 @@ discard block |
||
775 | 769 | /** |
776 | 770 | * Get all hidden routes |
777 | 771 | * |
778 | - * @return array |
|
772 | + * @return Route |
|
779 | 773 | * |
780 | 774 | * @access public |
781 | 775 | * @static |
@@ -791,7 +785,7 @@ discard block |
||
791 | 785 | * This middleware actually works as uri filter since they will not check the route, |
792 | 786 | * just check if the current uri string matches the prefix of the route group. |
793 | 787 | * |
794 | - * @return array |
|
788 | + * @return Route |
|
795 | 789 | * |
796 | 790 | * @access public |
797 | 791 | * @static |
@@ -869,8 +863,9 @@ discard block |
||
869 | 863 | * This is the 'reverse' process of the improved routing, it'll take the current |
870 | 864 | * uri string and attempts to find a CodeIgniter route that matches with his pattern |
871 | 865 | * |
872 | - * @param string $search |
|
873 | 866 | * |
867 | + * @param Middleware $path |
|
868 | + * @param string $requestMethod |
|
874 | 869 | * @return mixed |
875 | 870 | */ |
876 | 871 | public static function getRouteByPath($path, $requestMethod = NULL) |
@@ -947,7 +942,7 @@ discard block |
||
947 | 942 | /** |
948 | 943 | * Returns an array with the valid HTTP Verbs used in routes |
949 | 944 | * |
950 | - * @return array |
|
945 | + * @return Route |
|
951 | 946 | * |
952 | 947 | * @access public |
953 | 948 | * @static |
@@ -961,7 +956,6 @@ discard block |
||
961 | 956 | * Set the 404 error controller ($route['404_override']) |
962 | 957 | * |
963 | 958 | * @param string $controller |
964 | - * @param string $namespace (Optional) |
|
965 | 959 | * |
966 | 960 | * @return void |
967 | 961 | * |
@@ -980,9 +974,9 @@ discard block |
||
980 | 974 | /** |
981 | 975 | * Get the 404 route |
982 | 976 | * |
983 | - * @return array $_404page |
|
977 | + * @return Route $_404page |
|
984 | 978 | * |
985 | - * @return object | null |
|
979 | + * @return Route | null |
|
986 | 980 | * |
987 | 981 | * @access public |
988 | 982 | * @static |