Skip to content

Commit d255e42

Browse files
@throws annotations should go after @return
1 parent b6e5e90 commit d255e42

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Parser/Parser.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public function parse($source)
5656
*
5757
* @param Token[] $tokens
5858
*
59-
* @throws SyntaxErrorException
60-
*
6159
* @return array
60+
*
61+
* @throws SyntaxErrorException
6262
*/
6363
public static function parseSeries(array $tokens)
6464
{
@@ -131,9 +131,9 @@ private function parseSelectorList(TokenStream $stream)
131131
*
132132
* @param TokenStream $stream
133133
*
134-
* @throws SyntaxErrorException
135-
*
136134
* @return Node\SelectorNode
135+
*
136+
* @throws SyntaxErrorException
137137
*/
138138
private function parserSelectorNode(TokenStream $stream)
139139
{
@@ -171,9 +171,9 @@ private function parserSelectorNode(TokenStream $stream)
171171
* @param TokenStream $stream
172172
* @param bool $insideNegation
173173
*
174-
* @throws SyntaxErrorException
175-
*
176174
* @return array
175+
*
176+
* @throws SyntaxErrorException
177177
*/
178178
private function parseSimpleSelector(TokenStream $stream, $insideNegation = false)
179179
{
@@ -328,9 +328,9 @@ private function parseElementNode(TokenStream $stream)
328328
* @param Node\NodeInterface $selector
329329
* @param TokenStream $stream
330330
*
331-
* @throws SyntaxErrorException
332-
*
333331
* @return Node\AttributeNode
332+
*
333+
* @throws SyntaxErrorException
334334
*/
335335
private function parseAttributeNode(Node\NodeInterface $selector, TokenStream $stream)
336336
{

Parser/TokenStream.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ public function freeze()
8383
/**
8484
* Returns next token.
8585
*
86-
* @throws InternalErrorException If there is no more token
87-
*
8886
* @return Token
87+
*
88+
* @throws InternalErrorException If there is no more token
8989
*/
9090
public function getNext()
9191
{
@@ -131,9 +131,9 @@ public function getUsed()
131131
/**
132132
* Returns nex identifier token.
133133
*
134-
* @throws SyntaxErrorException If next token is not an identifier
135-
*
136134
* @return string The identifier token value
135+
*
136+
* @throws SyntaxErrorException If next token is not an identifier
137137
*/
138138
public function getNextIdentifier()
139139
{
@@ -149,9 +149,9 @@ public function getNextIdentifier()
149149
/**
150150
* Returns nex identifier or star delimiter token.
151151
*
152-
* @throws SyntaxErrorException If next token is not an identifier or a star delimiter
153-
*
154152
* @return null|string The identifier token value or null if star found
153+
*
154+
* @throws SyntaxErrorException If next token is not an identifier or a star delimiter
155155
*/
156156
public function getNextIdentifierOrStar()
157157
{

XPath/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ public function addPseudoClass(XPathExpr $xpath, $pseudoClass)
266266
* @param string $attribute
267267
* @param string $value
268268
*
269-
* @throws ExpressionErrorException
270-
*
271269
* @return XPathExpr
270+
*
271+
* @throws ExpressionErrorException
272272
*/
273273
public function addAttributeMatching(XPathExpr $xpath, $operator, $attribute, $value)
274274
{

0 commit comments

Comments
 (0)