Completed
Push — master ( c4e0ca...e2a338 )
by Stefano
04:46
created
classes/Route.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * Run one of the mapped callbacks to a passed HTTP Method.
84 84
      * @param  array  $args The arguments to be passed to the callback
85 85
      * @param  string $method The HTTP Method requested.
86
-     * @return array The callback response.
86
+     * @return string[] The callback response.
87 87
      */
88 88
     public function run(array $args, $method='get'){
89 89
       $method = strtolower($method);
@@ -204,7 +204,6 @@  discard block
 block discarded – undo
204 204
 
205 205
     /**
206 206
      * Bind a middleware callback to invoked before the route definition
207
-     * @param  callable $before The callback to be invoked ($this is binded to the route object).
208 207
      * @return Route
209 208
      */
210 209
     public function & before($callback){
@@ -308,7 +307,7 @@  discard block
 block discarded – undo
308 307
      * @param  string  $pattern The URL schema with the named parameters
309 308
      * @param  string  $URL The URL to process, if omitted the current request URI will be used.
310 309
      * @param  boolean $cut If true don't limit the matching to the whole URL (used for group pattern extraction)
311
-     * @return array The extracted variables
310
+     * @return callable The extracted variables
312 311
      */
313 312
     protected static function extractVariablesFromURL($pattern, $URL=null, $cut=false){
314 313
       $URL     = $URL ?: Request::URI();
@@ -331,7 +330,6 @@  discard block
 block discarded – undo
331 330
 
332 331
     /**
333 332
      * Add a route to the internal route repository.
334
-     * @param Route $r
335 333
      * @return Route
336 334
      */
337 335
     public static function add($route){
Please login to merge, or discard this patch.