Completed
Branch master (9056d3)
by Anderson
01:57
created
src/Core/Route.php 1 patch
Doc Comments   +9 added lines, -14 removed lines patch added patch discarded remove patch
@@ -120,7 +120,6 @@  discard block
 block discarded – undo
120 120
      * Generic method to add a improved route
121 121
      *
122 122
      * @param  mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route
123
-     * @param  mixed $url String or array of strings that will trigger this route
124 123
      * @param  array $attr Associative array of route attributes
125 124
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
126 125
      *
@@ -274,7 +273,7 @@  discard block
 block discarded – undo
274 273
     /**
275 274
      * Adds a GET route, alias of Route::add('GET',$url,$attr,$hideOriginal)
276 275
      *
277
-     * @param  mixed $url String or array of strings that will trigger this route
276
+     * @param  string $url String or array of strings that will trigger this route
278 277
      * @param  array $attr Associative array of route attributes
279 278
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
280 279
      *
@@ -291,7 +290,7 @@  discard block
 block discarded – undo
291 290
     /**
292 291
      * Adds a POST route, alias of Route::add('POST',$url,$attr,$hideOriginal)
293 292
      *
294
-     * @param  mixed $url String or array of strings that will trigger this route
293
+     * @param  string $url String or array of strings that will trigger this route
295 294
      * @param  array $attr Associative array of route attributes
296 295
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
297 296
      *
@@ -342,7 +341,7 @@  discard block
 block discarded – undo
342 341
     /**
343 342
      * Adds a DELETE route, alias of Route::add('DELETE',$url,$attr,$hideOriginal)
344 343
      *
345
-     * @param  mixed $url String or array of strings that will trigger this route
344
+     * @param  string $url String or array of strings that will trigger this route
346 345
      * @param  array $attr Associative array of route attributes
347 346
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
348 347
      *
@@ -380,8 +379,8 @@  discard block
 block discarded – undo
380 379
     /**
381 380
      * Adds a list of routes with the verbs contained in $verbs, alias of Route::add($verbs,$url,$attr,$hideOriginal)
382 381
      *
383
-     * @param  mixed $verb String or array of string of valid HTTP Verbs that will be accepted in this route
384
-     * @param  mixed $url String or array of strings that will trigger this route
382
+     * @param  string[] $verbs String or array of string of valid HTTP Verbs that will be accepted in this route
383
+     * @param  string $url String or array of strings that will trigger this route
385 384
      * @param  array $attr Associative array of route attributes
386 385
      * @param  bool $hideOriginal (Optional) map the original $url as a route with a show_404() callback inside
387 386
      *
@@ -415,7 +414,6 @@  discard block
 block discarded – undo
415 414
      *
416 415
      * PLEASE NOTE: This is NOT a crud generator, just a bundle of predefined routes.
417 416
      *
418
-     * @param  string $url String or array of strings that will trigger this route
419 417
      * @param  string $controller Controller name (only controller name)
420 418
      * @param  array $attr Associative array of route attributes
421 419
      *
@@ -702,10 +700,6 @@  discard block
 block discarded – undo
702 700
     /**
703 701
      * Creates the 'default_controller' key in CodeIgniter's route array
704 702
      *
705
-     * @param  string $route controller/method name
706
-     * @param  string $alias (Optional) alias of the default controller
707
-     *
708
-     * Due a CodeIgniter limitations, this route MAY NOT be a directory.
709 703
      *
710 704
      * @return void
711 705
      *
@@ -763,7 +757,7 @@  discard block
 block discarded – undo
763 757
     /**
764 758
      * Get all the improved routes defined
765 759
      *
766
-     * @return array List of all defined routes
760
+     * @return Route List of all defined routes
767 761
      *
768 762
      * @access public
769 763
      * @static
@@ -830,7 +824,8 @@  discard block
 block discarded – undo
830 824
      *  This is the 'reverse' process of the improved routing, it'll take the current
831 825
      *  uri string and attempts to find a CodeIgniter route that matches with his pattern
832 826
      *
833
-     * @param  string $search The current uri string
827
+     * @param Middleware $path
828
+     * @param string $requestMethod
834 829
      */
835 830
     public static function getRouteByPath($path, $requestMethod = NULL)
836 831
     {
@@ -879,7 +874,7 @@  discard block
 block discarded – undo
879 874
     /**
880 875
      * Returns an array with the valid HTTP Verbs used in routes
881 876
      *
882
-     * @return array
877
+     * @return Route
883 878
      *
884 879
      * @access public
885 880
      * @static
Please login to merge, or discard this patch.