From 6b60bf22b0a60687e5c75a7df29b6904cec032a0 Mon Sep 17 00:00:00 2001 From: Jefersson Nathan Date: Sat, 9 May 2015 17:35:42 -0300 Subject: [PATCH] Remove old internal variable docummentor --- src/PHPRouter/RouteCollection.php | 104 +++++++++++++++++++------------------- src/PHPRouter/Router.php | 3 -- 2 files changed, 52 insertions(+), 55 deletions(-) diff --git a/src/PHPRouter/RouteCollection.php b/src/PHPRouter/RouteCollection.php index 2da1dea..4535437 100755 --- a/src/PHPRouter/RouteCollection.php +++ b/src/PHPRouter/RouteCollection.php @@ -1,52 +1,52 @@ - - * - * @package PHPRouter - */ -class RouteCollection extends \SplObjectStorage -{ - /** - * Attach a Route to the collection. - * - * @param Route $attachObject - */ - public function attachRoute(Route $attachObject) - { - parent::attach($attachObject, null); - } - - /** - * Fetch all routers stored on this collection of router - * and return it. - * - * @return Route[] - */ - public function all() - { - $temp = []; - foreach ($this as $router) { - $temp[] = $router; - } - - return $temp; - } -} + + * + * @package PHPRouter + */ +class RouteCollection extends \SplObjectStorage +{ + /** + * Attach a Route to the collection. + * + * @param Route $attachObject + */ + public function attachRoute(Route $attachObject) + { + parent::attach($attachObject, null); + } + + /** + * Fetch all routers stored on this collection of router + * and return it. + * + * @return Route[] + */ + public function all() + { + $temp = []; + foreach ($this as $router) { + $temp[] = $router; + } + + return $temp; + } +} diff --git a/src/PHPRouter/Router.php b/src/PHPRouter/Router.php index 5bcd850..8f95b62 100755 --- a/src/PHPRouter/Router.php +++ b/src/PHPRouter/Router.php @@ -134,7 +134,6 @@ class Router return false; } - /** * Reverse route a named route * @@ -143,8 +142,6 @@ class Router * * @throws Exception * - * @internal param string $route_name The name of the route to reverse route. - * * @return string The url to the route */ public function generate($routeName, array $params = array()) -- 2.11.0