Skip to content

Commit 671f4bb

Browse files
Merge branch '4.4'
* 4.4: Remove unneeded phpdocs
2 parents 6262c12 + 255a834 commit 671f4bb

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
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, string $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, string $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
@@ -259,8 +259,6 @@ public function getOptions()
259259
*
260260
* This method implements a fluent interface.
261261
*
262-
* @param array $options The options
263-
*
264262
* @return $this
265263
*/
266264
public function setOptions(array $options)
@@ -277,8 +275,6 @@ public function setOptions(array $options)
277275
*
278276
* This method implements a fluent interface.
279277
*
280-
* @param array $options The options
281-
*
282278
* @return $this
283279
*/
284280
public function addOptions(array $options)

RouteCollection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ public function count()
6666
return \count($this->routes);
6767
}
6868

69-
/**
70-
* Adds a route.
71-
*/
7269
public function add(string $name, Route $route)
7370
{
7471
unset($this->routes[$name]);

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)