Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed May 10, 2023
1 parent 3ee14c5 commit 5b4cb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwigComponent/src/Twig/TwigPreLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function preLexComponents(string $input, bool $insideOfBlock = false): st

$isTwigHtmlOpening = $this->consume('<twig:');
$isTraditionalBlockOpening = false;
if ($isTwigHtmlOpening || (0 !== count($this->currentComponents) && $isTraditionalBlockOpening = $this->consume('{% block'))) {
if ($isTwigHtmlOpening || (0 !== \count($this->currentComponents) && $isTraditionalBlockOpening = $this->consume('{% block'))) {
$componentName = $isTraditionalBlockOpening ? 'block' : $this->consumeComponentName();

if ('block' === $componentName) {
Expand Down

0 comments on commit 5b4cb88

Please sign in to comment.