Skip to content

Commit

Permalink
Do not use ->write but use ->raw to avoid not needed code indentation
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 24, 2021
1 parent 283673f commit 3ae2a72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Node/TransNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function compile(Compiler $compiler)

// line breaks are not allowed cause we want a single line comment
$message = str_replace(["\n", "\r"], ' ', $message);
$compiler->write(static::$notesLabel . $message . "\n");
$compiler->raw(static::$notesLabel . $message . "\n");
}

if ($vars) {
$compiler
->write('echo strtr(' . $function . '(');
->raw('echo strtr(' . $function . '(');

if ($hasDomain) {
[$domain] = $this->compileString($this->getNode('domain'));
Expand Down Expand Up @@ -178,7 +178,7 @@ public function compile(Compiler $compiler)
$compiler->raw("));\n");
} else {
$compiler
->write('echo ' . $function . '(');
->raw('echo ' . $function . '(');

if ($hasDomain) {
[$domain] = $this->compileString($this->getNode('domain'));
Expand Down

0 comments on commit 3ae2a72

Please sign in to comment.