Skip to content

Commit 2c1cc00

Browse files
Philippe Segatorinicolas-grekas
Philippe Segatori
authored andcommitted
Remove superfluous phpdoc tags
1 parent b6ab32e commit 2c1cc00

13 files changed

+36
-61
lines changed

Exception/SyntaxErrorException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class SyntaxErrorException extends ParseException
2525
{
2626
/**
2727
* @param string $expectedValue
28-
* @param Token $foundToken
2928
*
3029
* @return self
3130
*/

Node/AttributeNode.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ class AttributeNode extends AbstractNode
3030
private $value;
3131

3232
/**
33-
* @param NodeInterface $selector
34-
* @param string $namespace
35-
* @param string $attribute
36-
* @param string $operator
37-
* @param string $value
33+
* @param string $namespace
34+
* @param string $attribute
35+
* @param string $operator
36+
* @param string $value
3837
*/
3938
public function __construct(NodeInterface $selector, $namespace, $attribute, $operator, $value)
4039
{

Node/ClassNode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class ClassNode extends AbstractNode
2727
private $name;
2828

2929
/**
30-
* @param NodeInterface $selector
31-
* @param string $name
30+
* @param string $name
3231
*/
3332
public function __construct(NodeInterface $selector, $name)
3433
{

Node/CombinedSelectorNode.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class CombinedSelectorNode extends AbstractNode
2828
private $subSelector;
2929

3030
/**
31-
* @param NodeInterface $selector
32-
* @param string $combinator
33-
* @param NodeInterface $subSelector
31+
* @param string $combinator
3432
*/
3533
public function __construct(NodeInterface $selector, $combinator, NodeInterface $subSelector)
3634
{

Node/FunctionNode.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ class FunctionNode extends AbstractNode
3030
private $arguments;
3131

3232
/**
33-
* @param NodeInterface $selector
34-
* @param string $name
35-
* @param Token[] $arguments
33+
* @param string $name
34+
* @param Token[] $arguments
3635
*/
3736
public function __construct(NodeInterface $selector, $name, array $arguments = [])
3837
{

Node/HashNode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class HashNode extends AbstractNode
2727
private $id;
2828

2929
/**
30-
* @param NodeInterface $selector
31-
* @param string $id
30+
* @param string $id
3231
*/
3332
public function __construct(NodeInterface $selector, $id)
3433
{

Node/PseudoNode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class PseudoNode extends AbstractNode
2727
private $identifier;
2828

2929
/**
30-
* @param NodeInterface $selector
31-
* @param string $identifier
30+
* @param string $identifier
3231
*/
3332
public function __construct(NodeInterface $selector, $identifier)
3433
{

Node/SelectorNode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class SelectorNode extends AbstractNode
2727
private $pseudoElement;
2828

2929
/**
30-
* @param NodeInterface $tree
31-
* @param string|null $pseudoElement
30+
* @param string|null $pseudoElement
3231
*/
3332
public function __construct(NodeInterface $tree, $pseudoElement = null)
3433
{

Parser/Parser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ private function parserSelectorNode(TokenStream $stream)
158158
/**
159159
* Parses next simple node (hash, class, pseudo, negation).
160160
*
161-
* @param TokenStream $stream
162-
* @param bool $insideNegation
161+
* @param bool $insideNegation
163162
*
164163
* @return array
165164
*

XPath/Extension/AttributeMatchingExtension.php

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ public function getAttributeMatchingTranslators()
4444
}
4545

4646
/**
47-
* @param XPathExpr $xpath
48-
* @param string $attribute
49-
* @param string $value
47+
* @param string $attribute
48+
* @param string $value
5049
*
5150
* @return XPathExpr
5251
*/
@@ -56,9 +55,8 @@ public function translateExists(XPathExpr $xpath, $attribute, $value)
5655
}
5756

5857
/**
59-
* @param XPathExpr $xpath
60-
* @param string $attribute
61-
* @param string $value
58+
* @param string $attribute
59+
* @param string $value
6260
*
6361
* @return XPathExpr
6462
*/
@@ -68,9 +66,8 @@ public function translateEquals(XPathExpr $xpath, $attribute, $value)
6866
}
6967

7068
/**
71-
* @param XPathExpr $xpath
72-
* @param string $attribute
73-
* @param string $value
69+
* @param string $attribute
70+
* @param string $value
7471
*
7572
* @return XPathExpr
7673
*/
@@ -84,9 +81,8 @@ public function translateIncludes(XPathExpr $xpath, $attribute, $value)
8481
}
8582

8683
/**
87-
* @param XPathExpr $xpath
88-
* @param string $attribute
89-
* @param string $value
84+
* @param string $attribute
85+
* @param string $value
9086
*
9187
* @return XPathExpr
9288
*/
@@ -101,9 +97,8 @@ public function translateDashMatch(XPathExpr $xpath, $attribute, $value)
10197
}
10298

10399
/**
104-
* @param XPathExpr $xpath
105-
* @param string $attribute
106-
* @param string $value
100+
* @param string $attribute
101+
* @param string $value
107102
*
108103
* @return XPathExpr
109104
*/
@@ -117,9 +112,8 @@ public function translatePrefixMatch(XPathExpr $xpath, $attribute, $value)
117112
}
118113

119114
/**
120-
* @param XPathExpr $xpath
121-
* @param string $attribute
122-
* @param string $value
115+
* @param string $attribute
116+
* @param string $value
123117
*
124118
* @return XPathExpr
125119
*/
@@ -134,9 +128,8 @@ public function translateSuffixMatch(XPathExpr $xpath, $attribute, $value)
134128
}
135129

136130
/**
137-
* @param XPathExpr $xpath
138-
* @param string $attribute
139-
* @param string $value
131+
* @param string $attribute
132+
* @param string $value
140133
*
141134
* @return XPathExpr
142135
*/
@@ -150,9 +143,8 @@ public function translateSubstringMatch(XPathExpr $xpath, $attribute, $value)
150143
}
151144

152145
/**
153-
* @param XPathExpr $xpath
154-
* @param string $attribute
155-
* @param string $value
146+
* @param string $attribute
147+
* @param string $value
156148
*
157149
* @return XPathExpr
158150
*/

XPath/Extension/FunctionExtension.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ public function getFunctionTranslators()
4646
}
4747

4848
/**
49-
* @param XPathExpr $xpath
50-
* @param FunctionNode $function
51-
* @param bool $last
52-
* @param bool $addNameTest
49+
* @param bool $last
50+
* @param bool $addNameTest
5351
*
5452
* @return XPathExpr
5553
*

XPath/Translator.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ public function nodeToXPath(NodeInterface $node)
180180
}
181181

182182
/**
183-
* @param string $combiner
184-
* @param NodeInterface $xpath
185-
* @param NodeInterface $combinedXpath
183+
* @param string $combiner
186184
*
187185
* @return XPathExpr
188186
*
@@ -212,8 +210,7 @@ public function addFunction(XPathExpr $xpath, FunctionNode $function)
212210
}
213211

214212
/**
215-
* @param XPathExpr $xpath
216-
* @param string $pseudoClass
213+
* @param string $pseudoClass
217214
*
218215
* @return XPathExpr
219216
*
@@ -229,10 +226,9 @@ public function addPseudoClass(XPathExpr $xpath, $pseudoClass)
229226
}
230227

231228
/**
232-
* @param XPathExpr $xpath
233-
* @param string $operator
234-
* @param string $attribute
235-
* @param string $value
229+
* @param string $operator
230+
* @param string $attribute
231+
* @param string $value
236232
*
237233
* @return XPathExpr
238234
*

XPath/TranslatorInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public function cssToXPath($cssExpr, $prefix = 'descendant-or-self::');
3838
/**
3939
* Translates a parsed selector node to an XPath expression.
4040
*
41-
* @param SelectorNode $selector
42-
* @param string $prefix
41+
* @param string $prefix
4342
*
4443
* @return string
4544
*/

0 commit comments

Comments
 (0)