Completed
Pull Request — master (#129)
by
unknown
03:11
created
library/Respect/Rest/Router.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      * @param callable $callback  Any callback for this route
320 320
      * @param array    $arguments Additional arguments for the callback
321 321
      *
322
-     * @return Respect\Rest\Routes\Callback The route instance
322
+     * @return Routes\Callback The route instance
323 323
      */
324 324
     public function callbackRoute(
325 325
         $method,
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      * @param string $class     Some class name
342 342
      * @param array  $arguments The class constructor arguments
343 343
      *
344
-     * @return Respect\Rest\Routes\ClassName The route instance
344
+     * @return Routes\ClassName The route instance
345 345
      */
346 346
     public function classRoute($method, $path, $class, array $arguments = array())
347 347
     {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      *                          catch. 'Exception' will catch them all.
388 388
      * @param string $callback  The function to run when an exception is cautght
389 389
      *
390
-     * @return Respect\Rest\Routes\Exception
390
+     * @return Routes\Exception
391 391
      */
392 392
     public function exceptionRoute($className, $callback = null)
393 393
     {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      *
403 403
      * @param string $callback The function to run when an error is cautght
404 404
      *
405
-     * @return Respect\Rest\Routes\Error
405
+     * @return Routes\Error
406 406
      */
407 407
     public function errorRoute($callback)
408 408
     {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
      * @param string $className The class name of the factored instance
421 421
      * @param string $factory   Any callable
422 422
      *
423
-     * @return Respect\Rest\Routes\Factory The route created
423
+     * @return Routes\Factory The route created
424 424
      */
425 425
     public function factoryRoute($method, $path, $className, $factory)
426 426
     {
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
      * @param string $path    The URI Path (/foo/bar...)
470 470
      * @param string $instance An instance of Routinable
471 471
      *
472
-     * @return Respect\Rest\Routes\Instance The route created
472
+     * @return Routes\Instance The route created
473 473
      */
474 474
     public function instanceRoute($method, $path, $instance)
475 475
     {
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
      *
496 496
      * @param Request $request A request
497 497
      *
498
-     * @return bool true if the request doesn't apply for routes
498
+     * @return boolean|null true if the request doesn't apply for routes
499 499
      */
500 500
     public function isRoutelessDispatch(Request $request = null)
501 501
     {
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
      * @param string $path        The URI Path (/foo/bar...)
585 585
      * @param string $staticValue Some static value to be printed
586 586
      *
587
-     * @return Respect\Rest\Routes\StaticValue The route created
587
+     * @return Routes\StaticValue The route created
588 588
      */
589 589
     public function staticRoute($method, $path, $staticValue)
590 590
     {
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     /**
632 632
      * Return routes matched by path
633 633
      *
634
-     * @return SplObjectStorage a list of routes matched by path
634
+     * @return \SplObjectStorage a list of routes matched by path
635 635
      */
636 636
     protected function getMatchedRoutesByPath()
637 637
     {
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
      *
727 727
      * @see Respect\Rest\Request::$params
728 728
      *
729
-     * @return bool true if the route matches the request with that params
729
+     * @return boolean|null true if the route matches the request with that params
730 730
      */
731 731
     protected function matchRoute(
732 732
         Request $request,
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
      *
746 746
      * @param \SplObjectStorage $matchedByPath A list of routes matched by path
747 747
      *
748
-     * @return bool true if route matches its routines
748
+     * @return Request|null true if route matches its routines
749 749
      */
750 750
     protected function routineMatch(\SplObjectStorage $matchedByPath)
751 751
     {
Please login to merge, or discard this patch.