@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var string |
17 | 17 | */ |
18 | - protected $openLiteralRegExp = "\{%[ \t\n\r \v]*literal[ \t\n\r \v]*%\}"; |
|
18 | + protected $openLiteralRegExp = "\{%[ \t\n\r \v]*literal[ \t\n\r \v]*%\}"; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var string |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $read = $queue->pop(); |
137 | 137 | |
138 | 138 | $_type = Validator::getValue($read); |
139 | - $_data = $read[1] ?? $read; |
|
139 | + $_data = $read[1] ?? $read; |
|
140 | 140 | |
141 | 141 | if ($_type === \T_OPEN_TAG || $_type === \T_OPEN_TAG_WITH_ECHO || $_type === \T_CLOSE_TAG) |
142 | 142 | { |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } |
290 | 290 | else if ($this->last($last, $data, '.') || $dot) |
291 | 291 | { |
292 | - $dot = !$dot; |
|
292 | + $dot = !$dot; |
|
293 | 293 | $last->token .= $data; |
294 | 294 | |
295 | 295 | continue; |
@@ -240,8 +240,7 @@ discard block |
||
240 | 240 | $isOpen = true; |
241 | 241 | $type = $open[$lastChar . $data]; |
242 | 242 | $print = $this->prints[$type]; |
243 | - } |
|
244 | - else if (isset($close[$index])) |
|
243 | + } else if (isset($close[$index])) |
|
245 | 244 | { |
246 | 245 | if ($dot) |
247 | 246 | { |
@@ -278,16 +277,14 @@ discard block |
||
278 | 277 | $type = null; |
279 | 278 | $last = null; |
280 | 279 | $code = ''; |
281 | - } |
|
282 | - else if ($type) |
|
280 | + } else if ($type) |
|
283 | 281 | { |
284 | 282 | if ($end[$type] !== $data) |
285 | 283 | { |
286 | 284 | if ($this->last($last, $data, '(')) |
287 | 285 | { |
288 | 286 | $last->type = \T_FUNCTION; |
289 | - } |
|
290 | - else if ($this->last($last, $data, '.') || $dot) |
|
287 | + } else if ($this->last($last, $data, '.') || $dot) |
|
291 | 288 | { |
292 | 289 | $dot = !$dot; |
293 | 290 | $last->token .= $data; |
@@ -296,8 +293,7 @@ discard block |
||
296 | 293 | } |
297 | 294 | |
298 | 295 | $mixed[] = $last = new Token($data, $_type); |
299 | - } |
|
300 | - else |
|
296 | + } else |
|
301 | 297 | { |
302 | 298 | $_next = $queue->next(); |
303 | 299 |