src/Helper/NewLine.php
public function writeNewLineBecauseOfTopLevelReservedWord($addedNewline, $tab)
    {
        if (false === $addedNewline) {
            $this->formatter->appendToFormattedSql("\n");
        } else {
            $this->formatter->setFormattedSql(\rtrim($this->formatter->getFormattedSql(), $tab));
        }
        $this->formatter->appendToFormattedSql(\str_repeat($tab, $this->indentation->getIndentLvl()));

        $this->newline = true;
    }
public function writeNewLineBecauseOfTopLevelReservedWord($addedNewline, $tab)
    {
        if (false === $addedNewline) {
            $this->formatter->appendToFormattedSql("\n");
        } else {
            $this->formatter->setFormattedSql(\rtrim($this->formatter->getFormattedSql(), $tab));
        }
        $this->formatter->appendToFormattedSql(\str_repeat($tab, $this->indentation->getIndentLvl()));

        $this->newline = true;
    }
public function writeNewLineBecauseOfTopLevelReservedWord ( $ addedNewline , $ tab ) { if ( false === $ addedNewline ) { $ this -> formatter -> appendToFormattedSql ( "\n" ) ; } else { $ this -> formatter -> setFormattedSql ( \ rtrim ( $ this -> formatter -> getFormattedSql ( ) , $ tab ) ) ; } $ this -> formatter -> appendToFormattedSql ( \ str_repeat ( $ tab , $ this -> indentation -> getIndentLvl ( ) ) ) ; $ this -> newline = true ; }
Add a newline before the top level reserved word if necessary and indent.

@param bool   $addedNewline
@param string $tab
Add a newline before the top level reserved word if necessary and indent .