Skip to content

Commit 3f17b03

Browse files
[DI] minor docblock fixes
1 parent bd805e5 commit 3f17b03

18 files changed

+1
-117
lines changed

Exception/MethodNotAllowedException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
*/
2121
class MethodNotAllowedException extends \RuntimeException implements ExceptionInterface
2222
{
23-
/**
24-
* @var array
25-
*/
2623
protected $allowedMethods = array();
2724

2825
public function __construct(array $allowedMethods, $message = null, $code = 0, \Exception $previous = null)

Generator/Dumper/GeneratorDumper.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@
2020
*/
2121
abstract class GeneratorDumper implements GeneratorDumperInterface
2222
{
23-
/**
24-
* @var RouteCollection
25-
*/
2623
private $routes;
2724

28-
/**
29-
* @param RouteCollection $routes The RouteCollection to dump
30-
*/
3125
public function __construct(RouteCollection $routes)
3226
{
3327
$this->routes = $routes;

Generator/UrlGenerator.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,14 @@
2727
*/
2828
class UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInterface
2929
{
30-
/**
31-
* @var RouteCollection
32-
*/
3330
protected $routes;
34-
35-
/**
36-
* @var RequestContext
37-
*/
3831
protected $context;
3932

4033
/**
4134
* @var bool|null
4235
*/
4336
protected $strictRequirements = true;
4437

45-
/**
46-
* @var LoggerInterface|null
47-
*/
4838
protected $logger;
4939

5040
/**
@@ -75,11 +65,6 @@ class UrlGenerator implements UrlGeneratorInterface, ConfigurableRequirementsInt
7565
'%7C' => '|',
7666
);
7767

78-
/**
79-
* @param RouteCollection $routes A RouteCollection instance
80-
* @param RequestContext $context The context
81-
* @param LoggerInterface|null $logger A logger instance
82-
*/
8368
public function __construct(RouteCollection $routes, RequestContext $context, LoggerInterface $logger = null)
8469
{
8570
$this->routes = $routes;

Loader/AnnotationClassLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757
*/
5858
abstract class AnnotationClassLoader implements LoaderInterface
5959
{
60-
/**
61-
* @var Reader
62-
*/
6360
protected $reader;
6461

6562
/**
@@ -72,9 +69,6 @@ abstract class AnnotationClassLoader implements LoaderInterface
7269
*/
7370
protected $defaultRouteIndex = 0;
7471

75-
/**
76-
* @param Reader $reader
77-
*/
7872
public function __construct(Reader $reader)
7973
{
8074
$this->reader = $reader;

Loader/AnnotationFileLoader.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class AnnotationFileLoader extends FileLoader
2727
protected $loader;
2828

2929
/**
30-
* @param FileLocatorInterface $locator A FileLocator instance
31-
* @param AnnotationClassLoader $loader An AnnotationClassLoader instance
32-
*
3330
* @throws \RuntimeException
3431
*/
3532
public function __construct(FileLocatorInterface $locator, AnnotationClassLoader $loader)

Matcher/Dumper/ApacheMatcherDumper.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ class ApacheMatcherDumper extends MatcherDumper
3535
* * script_name: The script name (app.php by default)
3636
* * base_uri: The base URI ("" by default)
3737
*
38-
* @param array $options An array of options
39-
*
4038
* @return string A string to be used as Apache rewrite rules
4139
*
4240
* @throws \LogicException When the route regex is invalid
@@ -191,8 +189,6 @@ private function dumpRoute($name, $route, array $options, $hostRegexUnique)
191189
/**
192190
* Returns methods allowed for a route.
193191
*
194-
* @param Route $route The route
195-
*
196192
* @return array The methods
197193
*/
198194
private function getRouteMethods(Route $route)
@@ -256,8 +252,6 @@ private static function escape($string, $char, $with)
256252
/**
257253
* Normalizes an array of values.
258254
*
259-
* @param array $values
260-
*
261255
* @return string[]
262256
*/
263257
private function normalizeValues(array $values)

Matcher/Dumper/DumperCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ protected function getParent()
105105

106106
/**
107107
* Sets the parent collection.
108-
*
109-
* @param DumperCollection $parent The parent collection
110108
*/
111109
protected function setParent(DumperCollection $parent)
112110
{

Matcher/Dumper/DumperPrefixCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function setPrefix($prefix)
4848
/**
4949
* Adds a route in the tree.
5050
*
51-
* @param DumperRoute $route The route
52-
*
5351
* @return self
5452
*
5553
* @throws \LogicException

Matcher/Dumper/MatcherDumper.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@
2020
*/
2121
abstract class MatcherDumper implements MatcherDumperInterface
2222
{
23-
/**
24-
* @var RouteCollection
25-
*/
2623
private $routes;
2724

28-
/**
29-
* @param RouteCollection $routes The RouteCollection to dump
30-
*/
3125
public function __construct(RouteCollection $routes)
3226
{
3327
$this->routes = $routes;

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ private function groupRoutesByHostRegex(RouteCollection $routes)
372372
* Routes order is preserved such that traversing the tree will traverse the
373373
* routes in the origin order.
374374
*
375-
* @param DumperCollection $collection A collection of routes
376-
*
377375
* @return DumperPrefixCollection
378376
*/
379377
private function buildPrefixTree(DumperCollection $collection)

0 commit comments

Comments
 (0)