Completed
Push — master ( 9056d3...546896 )
by Anderson
01:59
created
src/Core/Route.php 1 patch
Doc Comments   +13 added lines, -19 removed lines patch added patch discarded remove patch
@@ -119,7 +119,6 @@  discard block
 block discarded – undo
119 119
      * Generic method to add a improved route
120 120
      *
121 121
      * @param  mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route
122
-     * @param  mixed $url String or array of strings that will trigger this route
123 122
      * @param  array $attr Associative array of route attributes
124 123
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
125 124
      *
@@ -273,7 +272,7 @@  discard block
 block discarded – undo
273 272
     /**
274 273
      * Adds a GET route, alias of Route::add('GET',$url,$attr,$hideOriginal)
275 274
      *
276
-     * @param  mixed $url String or array of strings that will trigger this route
275
+     * @param  string $url String or array of strings that will trigger this route
277 276
      * @param  array $attr Associative array of route attributes
278 277
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
279 278
      *
@@ -290,7 +289,7 @@  discard block
 block discarded – undo
290 289
     /**
291 290
      * Adds a POST route, alias of Route::add('POST',$url,$attr,$hideOriginal)
292 291
      *
293
-     * @param  mixed $url String or array of strings that will trigger this route
292
+     * @param  string $url String or array of strings that will trigger this route
294 293
      * @param  array $attr Associative array of route attributes
295 294
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
296 295
      *
@@ -341,7 +340,7 @@  discard block
 block discarded – undo
341 340
     /**
342 341
      * Adds a DELETE route, alias of Route::add('DELETE',$url,$attr,$hideOriginal)
343 342
      *
344
-     * @param  mixed $url String or array of strings that will trigger this route
343
+     * @param  string $url String or array of strings that will trigger this route
345 344
      * @param  array $attr Associative array of route attributes
346 345
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
347 346
      *
@@ -379,8 +378,8 @@  discard block
 block discarded – undo
379 378
     /**
380 379
      * Adds a list of routes with the verbs contained in $verbs, alias of Route::add($verbs,$url,$attr,$hideOriginal)
381 380
      *
382
-     * @param  mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route
383
-     * @param  mixed $url String or array of strings that will trigger this route
381
+     * @param  string[] $verbs String or array of string of valid HTTP Verbs that will be accepted in this route
382
+     * @param  string $url String or array of strings that will trigger this route
384 383
      * @param  array $attr Associative array of route attributes
385 384
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
386 385
      *
@@ -414,7 +413,6 @@  discard block
 block discarded – undo
414 413
      *
415 414
      * PLEASE NOTE: This is NOT a crud generator, just a bundle of predefined routes.
416 415
      *
417
-     * @param  string $url String or array of strings that will trigger this route
418 416
      * @param  string $controller Controller name (only controller name)
419 417
      * @param  array $attr Associative array of route attributes
420 418
      *
@@ -709,10 +707,6 @@  discard block
 block discarded – undo
709 707
     /**
710 708
      * Creates the 'default_controller' key in CodeIgniter's route array
711 709
      *
712
-     * @param  string $route controller/method name
713
-     * @param  string $alias (Optional) alias of the default controller
714
-     *
715
-     * Due a CodeIgniter limitations, this route MAY NOT be a directory.
716 710
      *
717 711
      * @return void
718 712
      *
@@ -770,7 +764,7 @@  discard block
 block discarded – undo
770 764
     /**
771 765
      * Get all the improved routes defined
772 766
      *
773
-     * @return array List of all defined routes
767
+     * @return Route List of all defined routes
774 768
      *
775 769
      * @access public
776 770
      * @static
@@ -783,7 +777,7 @@  discard block
 block discarded – undo
783 777
     /**
784 778
      * Get all hidden routes
785 779
      *
786
-     * @return array
780
+     * @return Route
787 781
      *
788 782
      * @access public
789 783
      * @static
@@ -799,7 +793,7 @@  discard block
 block discarded – undo
799 793
      * This middleware actually works as uri filter since they will not check the route,
800 794
      * just check if the current uri string matches the prefix of the route group.
801 795
      *
802
-     * @return array
796
+     * @return Route
803 797
      *
804 798
      * @access public
805 799
      * @static
@@ -837,8 +831,9 @@  discard block
 block discarded – undo
837 831
      *  This is the 'reverse' process of the improved routing, it'll take the current
838 832
      *  uri string and attempts to find a CodeIgniter route that matches with his pattern
839 833
      *
840
-     * @param  string $search The current uri string
841 834
      *
835
+     * @param Middleware $path
836
+     * @param string $requestMethod
842 837
      * @return mixed
843 838
      */
844 839
     public static function getRouteByPath($path, $requestMethod = NULL)
@@ -888,7 +883,7 @@  discard block
 block discarded – undo
888 883
     /**
889 884
      * Returns an array with the valid HTTP Verbs used in routes
890 885
      *
891
-     * @return array
886
+     * @return Route
892 887
      *
893 888
      * @access public
894 889
      * @static
@@ -903,7 +898,6 @@  discard block
 block discarded – undo
903 898
      * Set the 404 error controller ($route['404_override'])
904 899
      *
905 900
      * @param  string  $controller
906
-     * @param  string  $namespace (Optional)
907 901
      *
908 902
      * @return void
909 903
      *
@@ -922,9 +916,9 @@  discard block
 block discarded – undo
922 916
     /**
923 917
      * Get the 404 route
924 918
      *
925
-     * @return array $_404page
919
+     * @return Route $_404page
926 920
      *
927
-     * @return object | null
921
+     * @return Route | null
928 922
      *
929 923
      * @access public
930 924
      * @static
Please login to merge, or discard this patch.