chore: fmt

This commit is contained in:
Ryan Chandler 2022-12-07 01:02:04 +00:00
parent 054b10667b
commit 3ae4555d81
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA
2 changed files with 5 additions and 13 deletions

View File

@ -479,9 +479,9 @@ impl Parser {
self.left_brace(state)?;
TokenKind::RightBrace
};
let body = self.block(state, &end_token)?;
if end_token == TokenKind::RightBrace {
self.right_brace(state)?;
} else {
@ -791,9 +791,7 @@ impl Parser {
self.right_brace(state)?;
then
} else {
vec![
self.statement(state)?
]
vec![self.statement(state)?]
};
let mut else_ifs: Vec<ElseIf> = Vec::new();
@ -838,9 +836,7 @@ impl Parser {
self.right_brace(state)?;
} else {
r#else = vec![
self.statement(state)?
];
r#else = vec![self.statement(state)?];
}
Statement::If {

View File

@ -62,11 +62,7 @@ fn third_party_4_nikic_php_parser() {
"nikic/PHP-Parser",
"https://github.com/nikic/PHP-Parser",
"4.x",
&[
"lib/PhpParser",
"grammar",
"test"
],
&["lib/PhpParser", "grammar", "test"],
&[],
);
}