Skip to content

Commit 255a834

Browse files
fabpotnicolas-grekas
authored andcommitted
Remove unneeded phpdocs
1 parent f9935a8 commit 255a834

File tree

5 files changed

+11
-24
lines changed

5 files changed

+11
-24
lines changed

Loader/XmlFileLoader.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ public function load($file, $type = null)
6363
/**
6464
* Parses a node from a loaded XML file.
6565
*
66-
* @param RouteCollection $collection Collection to associate with the node
67-
* @param \DOMElement $node Element to parse
68-
* @param string $path Full path of the XML file being processed
69-
* @param string $file Loaded file name
66+
* @param \DOMElement $node Element to parse
67+
* @param string $path Full path of the XML file being processed
68+
* @param string $file Loaded file name
7069
*
7170
* @throws \InvalidArgumentException When the XML is invalid
7271
*/
@@ -99,9 +98,8 @@ public function supports($resource, $type = null)
9998
/**
10099
* Parses a route and adds it to the RouteCollection.
101100
*
102-
* @param RouteCollection $collection RouteCollection instance
103-
* @param \DOMElement $node Element to parse that represents a Route
104-
* @param string $path Full path of the XML file being processed
101+
* @param \DOMElement $node Element to parse that represents a Route
102+
* @param string $path Full path of the XML file being processed
105103
*
106104
* @throws \InvalidArgumentException When the XML is invalid
107105
*/
@@ -140,10 +138,9 @@ protected function parseRoute(RouteCollection $collection, \DOMElement $node, $p
140138
/**
141139
* Parses an import and adds the routes in the resource to the RouteCollection.
142140
*
143-
* @param RouteCollection $collection RouteCollection instance
144-
* @param \DOMElement $node Element to parse that represents a Route
145-
* @param string $path Full path of the XML file being processed
146-
* @param string $file Loaded file name
141+
* @param \DOMElement $node Element to parse that represents a Route
142+
* @param string $path Full path of the XML file being processed
143+
* @param string $file Loaded file name
147144
*
148145
* @throws \InvalidArgumentException When the XML is invalid
149146
*/

Matcher/UrlMatcher.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ public function addExpressionLanguageProvider(ExpressionFunctionProviderInterfac
120120
/**
121121
* Tries to match a URL with a set of routes.
122122
*
123-
* @param string $pathinfo The path info to be parsed
124-
* @param RouteCollection $routes The set of routes
123+
* @param string $pathinfo The path info to be parsed
125124
*
126125
* @return array An array of parameters
127126
*
@@ -208,7 +207,6 @@ protected function matchCollection($pathinfo, RouteCollection $routes)
208207
* in matchers that do not have access to the matched Route instance
209208
* (like the PHP and Apache matcher dumpers).
210209
*
211-
* @param Route $route The route we are matching against
212210
* @param string $name The name of the route
213211
* @param array $attributes An array of attributes from the matcher
214212
*
@@ -231,7 +229,6 @@ protected function getAttributes(Route $route, $name, array $attributes)
231229
*
232230
* @param string $pathinfo The path
233231
* @param string $name The route name
234-
* @param Route $route The route
235232
*
236233
* @return array The first element represents the status, the second contains additional information
237234
*/

Route.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ public function getOptions()
267267
*
268268
* This method implements a fluent interface.
269269
*
270-
* @param array $options The options
271-
*
272270
* @return $this
273271
*/
274272
public function setOptions(array $options)
@@ -285,8 +283,6 @@ public function setOptions(array $options)
285283
*
286284
* This method implements a fluent interface.
287285
*
288-
* @param array $options The options
289-
*
290286
* @return $this
291287
*/
292288
public function addOptions(array $options)

RouteCollection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public function count()
6969
/**
7070
* Adds a route.
7171
*
72-
* @param string $name The route name
73-
* @param Route $route A Route instance
72+
* @param string $name The route name
7473
*/
7574
public function add($name, Route $route)
7675
{

RouteCollectionBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ public function createBuilder()
115115
/**
116116
* Add a RouteCollectionBuilder.
117117
*
118-
* @param string $prefix
119-
* @param RouteCollectionBuilder $builder
118+
* @param string $prefix
120119
*/
121120
public function mount($prefix, self $builder)
122121
{
@@ -127,7 +126,6 @@ public function mount($prefix, self $builder)
127126
/**
128127
* Adds a Route object to the builder.
129128
*
130-
* @param Route $route
131129
* @param string|null $name
132130
*
133131
* @return $this

0 commit comments

Comments
 (0)