Skip to content

Commit 5fbfc82

Browse files
keradusGromNaN
authored andcommitted
chore: PHP CS Fixer fixes
1 parent 8e71385 commit 5fbfc82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ private function lexInlineStructure(int &$cursor, string $closingTag, bool $cons
12131213
$value .= $this->currentLine[$cursor];
12141214
++$cursor;
12151215

1216-
if ($consumeUntilEol && isset($this->currentLine[$cursor]) && ($whitespaces = strspn($this->currentLine, ' ', $cursor) + $cursor) < strlen($this->currentLine) && '#' !== $this->currentLine[$whitespaces]) {
1217-
throw new ParseException(sprintf('Unexpected token "%s".', trim(substr($this->currentLine, $cursor))));
1216+
if ($consumeUntilEol && isset($this->currentLine[$cursor]) && ($whitespaces = strspn($this->currentLine, ' ', $cursor) + $cursor) < \strlen($this->currentLine) && '#' !== $this->currentLine[$whitespaces]) {
1217+
throw new ParseException(\sprintf('Unexpected token "%s".', trim(substr($this->currentLine, $cursor))));
12181218
}
12191219

12201220
return $value;

0 commit comments

Comments
 (0)