Skip to content

Commit

Permalink
Improve CS
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Sep 7, 2018
1 parent d0b3a83 commit f3fb276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bridges/TexyLatte/TexyModeMacro.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public function nodeOpened(MacroNode $node)
throw new Latte\CompileException("Modifiers are not allowed in {{$node->name}}.");
}

/** @var string|null|false $word */
/** @var string|false|null $word */
$word = $node->tokenizer->fetchWord();
if ($word === false) {
throw new Latte\CompileException("Missing mode name in {{$node->name}}.");
}

/** @var string|null|false $word */
/** @var string|false|null $word */
$word = $node->tokenizer->fetchWord();
if ($word !== false) {
throw new Latte\CompileException("Multiple arguments are not supported in {{$node->name}}.");
Expand Down

0 comments on commit f3fb276

Please sign in to comment.