Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1987d37

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

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

‎src/Parser/ConstExprParser.php‎

Lines changed: 6 additions & 2 deletions
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(), "'");

‎src/Parser/TypeParser.php‎

Lines changed: 3 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /