Skip to content

Commit

Permalink
Fix indentation of generated code with generated prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Feb 18, 2024
1 parent 4a08e7d commit c5657fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/Grammar/PP2Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Phplrt\Compiler\Grammar;

use Phplrt\Contracts\Exception\RuntimeExceptionInterface;
use Phplrt\Contracts\Lexer\LexerInterface;
use Phplrt\Lexer\Lexer;
use Phplrt\Lexer\PositionalLexerInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Printer/Value/PhpLanguageInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function getCode(Style $style): string
}

return $prefix . $style->lineDelimiter
. $this->code;
. $style->indentation . \trim($this->code);
}

private function isVoid(): bool
Expand Down

0 comments on commit c5657fa

Please sign in to comment.