@@ -118,7 +118,6 @@ discard block |
||
118 | 118 | * Generic method to add a improved route |
119 | 119 | * |
120 | 120 | * @param mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route |
121 | - * @param mixed $url String or array of strings that will trigger this route |
|
122 | 121 | * @param array $attr Associative array of route attributes |
123 | 122 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
124 | 123 | * |
@@ -277,7 +276,7 @@ discard block |
||
277 | 276 | /** |
278 | 277 | * Adds a GET route, alias of Route::add('GET',$url,$attr,$hideOriginal) |
279 | 278 | * |
280 | - * @param mixed $url String or array of strings that will trigger this route |
|
279 | + * @param string $url String or array of strings that will trigger this route |
|
281 | 280 | * @param array $attr Associative array of route attributes |
282 | 281 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
283 | 282 | * |
@@ -295,7 +294,7 @@ discard block |
||
295 | 294 | /** |
296 | 295 | * Adds a POST route, alias of Route::add('POST',$url,$attr,$hideOriginal) |
297 | 296 | * |
298 | - * @param mixed $url String or array of strings that will trigger this route |
|
297 | + * @param string $url String or array of strings that will trigger this route |
|
299 | 298 | * @param array $attr Associative array of route attributes |
300 | 299 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
301 | 300 | * |
@@ -349,7 +348,7 @@ discard block |
||
349 | 348 | /** |
350 | 349 | * Adds a DELETE route, alias of Route::add('DELETE',$url,$attr,$hideOriginal) |
351 | 350 | * |
352 | - * @param mixed $url String or array of strings that will trigger this route |
|
351 | + * @param string $url String or array of strings that will trigger this route |
|
353 | 352 | * @param array $attr Associative array of route attributes |
354 | 353 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
355 | 354 | * |
@@ -389,8 +388,8 @@ discard block |
||
389 | 388 | /** |
390 | 389 | * Adds a list of routes with the verbs contained in $verbs, alias of Route::add($verbs,$url,$attr,$hideOriginal) |
391 | 390 | * |
392 | - * @param mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route |
|
393 | - * @param mixed $url String or array of strings that will trigger this route |
|
391 | + * @param string[] $verbs String or array of string of valid HTTP Verbs that will be accepted in this route |
|
392 | + * @param string $url String or array of strings that will trigger this route |
|
394 | 393 | * @param array $attr Associative array of route attributes |
395 | 394 | * @param bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside |
396 | 395 | * |
@@ -800,10 +799,6 @@ discard block |
||
800 | 799 | /** |
801 | 800 | * Creates the 'default_controller' key in CodeIgniter's route array |
802 | 801 | * |
803 | - * @param string $route controller/method name |
|
804 | - * @param string $alias (Optional) alias of the default controller |
|
805 | - * |
|
806 | - * Due a CodeIgniter limitations, this route MAY NOT be a directory. |
|
807 | 802 | * |
808 | 803 | * @return void |
809 | 804 | * |
@@ -861,7 +856,7 @@ discard block |
||
861 | 856 | /** |
862 | 857 | * Get all hidden routes |
863 | 858 | * |
864 | - * @return array |
|
859 | + * @return Route |
|
865 | 860 | * |
866 | 861 | * @access public |
867 | 862 | * @static |
@@ -941,8 +936,9 @@ discard block |
||
941 | 936 | * This is the 'reverse' process of the improved routing, it'll take the current |
942 | 937 | * uri string and attempts to find a CodeIgniter route that matches with his pattern |
943 | 938 | * |
944 | - * @param string $search |
|
945 | 939 | * |
940 | + * @param Middleware $path |
|
941 | + * @param string $requestMethod |
|
946 | 942 | * @return mixed |
947 | 943 | */ |
948 | 944 | public static function getRouteByPath($path, $requestMethod = NULL) |
@@ -1067,7 +1063,7 @@ discard block |
||
1067 | 1063 | /** |
1068 | 1064 | * Returns an array with the valid HTTP Verbs used in routes |
1069 | 1065 | * |
1070 | - * @return array |
|
1066 | + * @return Route |
|
1071 | 1067 | * |
1072 | 1068 | * @access public |
1073 | 1069 | * @static |
@@ -1082,7 +1078,6 @@ discard block |
||
1082 | 1078 | * Set the 404 error controller ($route['404_override']) |
1083 | 1079 | * |
1084 | 1080 | * @param string $controller |
1085 | - * @param string $namespace (Optional) |
|
1086 | 1081 | * |
1087 | 1082 | * @return void |
1088 | 1083 | * |
@@ -1102,9 +1097,9 @@ discard block |
||
1102 | 1097 | /** |
1103 | 1098 | * Get the 404 route |
1104 | 1099 | * |
1105 | - * @return array $_404page |
|
1100 | + * @return Route $_404page |
|
1106 | 1101 | * |
1107 | - * @return object | null |
|
1102 | + * @return Route | null |
|
1108 | 1103 | * |
1109 | 1104 | * @access public |
1110 | 1105 | * @static |