Skip to content

Commit

Permalink
[config] fix missing indent size (#3145)
Browse files Browse the repository at this point in the history
* [config] fix missing indent size

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
TomasVotruba and actions-user committed Dec 3, 2022
1 parent f30593c commit 0f0d93e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PhpParser/Printer/BetterStandardPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ protected function setIndentLevel(int $level): void
*/
protected function indent(): void
{
$multiplier = $this->tabOrSpaceIndentCharacter === ' ' ? 4 : 1;
$indentSize = $this->rectorConfigProvider->getIndentSize();

$this->indentLevel += $multiplier;
$this->nl .= str_repeat($this->tabOrSpaceIndentCharacter, $multiplier);
$this->indentLevel += $indentSize;
$this->nl .= str_repeat($this->tabOrSpaceIndentCharacter, $indentSize);
}

/**
Expand Down

0 comments on commit 0f0d93e

Please sign in to comment.