Skip to content

Commit cc8d8fc

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: src/Parser/ConstExprParser.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ public function parse(TokenIterator $tokens, bool $trimStrings = false): Ast\Con
1414
$value = $tokens->currentTokenValue();
1515
$tokens->next();
1616
return new Ast\ConstExpr\ConstExprFloatNode($value);
17+
}
1718

18-
} elseif ($tokens->isCurrentTokenType(Lexer::TOKEN_INTEGER)) {
19+
if ($tokens->isCurrentTokenType(Lexer::TOKEN_INTEGER)) {
1920
$value = $tokens->currentTokenValue();
2021
$tokens->next();
2122
return new Ast\ConstExpr\ConstExprIntegerNode($value);
23+
}
2224

23-
} elseif ($tokens->isCurrentTokenType(Lexer::TOKEN_SINGLE_QUOTED_STRING)) {
25+
if ($tokens->isCurrentTokenType(Lexer::TOKEN_SINGLE_QUOTED_STRING)) {
2426
$value = $tokens->currentTokenValue();
2527
if ($trimStrings) {
2628
$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)