Skip to content

Commit 1987d37

Browse files
committed
apply cs-fix
1 parent 184ac58 commit 1987d37

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: src/Parser/ConstExprParser.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ public function parse(TokenIterator $tokens, bool $trimStrings = false): Ast\Con
1515
$tokens->next();
1616
return new Ast\ConstExpr\ConstExprFloatNode($value);
1717

18-
} elseif ($tokens->isCurrentTokenType(Lexer::TOKEN_INTEGER)) {
18+
}
19+
20+
if ($tokens->isCurrentTokenType(Lexer::TOKEN_INTEGER)) {
1921
$value = $tokens->currentTokenValue();
2022
$tokens->next();
2123
return new Ast\ConstExpr\ConstExprIntegerNode($value);
2224

23-
} elseif ($tokens->isCurrentTokenType(Lexer::TOKEN_SINGLE_QUOTED_STRING)) {
25+
}
26+
27+
if ($tokens->isCurrentTokenType(Lexer::TOKEN_SINGLE_QUOTED_STRING)) {
2428
$value = $tokens->currentTokenValue();
2529
if ($trimStrings) {
2630
$value = trim($tokens->currentTokenValue(), "'");

Diff for: src/Parser/TypeParser.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ private function parseAtomic(TokenIterator $tokens): Ast\Type\TypeNode
4747
}
4848

4949
return $type;
50-
} elseif ($tokens->tryConsumeTokenType(Lexer::TOKEN_THIS_VARIABLE)) {
50+
}
51+
52+
if ($tokens->tryConsumeTokenType(Lexer::TOKEN_THIS_VARIABLE)) {
5153
$type = new Ast\Type\ThisTypeNode();
5254

5355
if ($tokens->isCurrentTokenType(Lexer::TOKEN_OPEN_SQUARE_BRACKET)) {

0 commit comments

Comments
 (0)