@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $this->lexer->moveNext(); |
39 | 39 | |
40 | - if (!$this->lexer->token) { |
|
40 | + if ( ! $this->lexer->token) { |
|
41 | 41 | throw new SyntaxError( |
42 | 42 | 'Syntax error, unexpected end of stream' |
43 | 43 | ); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | return $this->visitSimpleType(); |
62 | - } elseif (!$this->root && Lexer::T_ARRAY_START === $this->lexer->token->type) { |
|
62 | + } elseif ( ! $this->root && Lexer::T_ARRAY_START === $this->lexer->token->type) { |
|
63 | 63 | return $this->visitArrayType(); |
64 | 64 | } |
65 | 65 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->match(Lexer::T_TYPE_START); |
88 | 88 | |
89 | 89 | $params = []; |
90 | - if (!$this->lexer->isNextToken(Lexer::T_TYPE_END)) { |
|
90 | + if ( ! $this->lexer->isNextToken(Lexer::T_TYPE_END)) { |
|
91 | 91 | while (true) { |
92 | 92 | $params[] = $this->visit(); |
93 | 93 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | |
117 | 117 | $params = []; |
118 | - if (!$this->lexer->isNextToken(Lexer::T_ARRAY_END)) { |
|
118 | + if ( ! $this->lexer->isNextToken(Lexer::T_ARRAY_END)) { |
|
119 | 119 | while (true) { |
120 | 120 | $params[] = $this->visit(); |
121 | 121 | if ($this->lexer->isNextToken(Lexer::T_ARRAY_END)) { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | private function match(int $token): void |
135 | 135 | { |
136 | - if (!$this->lexer->lookahead) { |
|
136 | + if ( ! $this->lexer->lookahead) { |
|
137 | 137 | throw new SyntaxError( |
138 | 138 | sprintf('Syntax error, unexpected end of stream, expected %s', $this->getConstant($token)) |
139 | 139 | ); |