src/Helper/NewLine.php
public function addNewLineBreak($tab)
    {
        $addedNewline = false;

        if (true === $this->newline) {
            $this->formatter->appendToFormattedSql("\n".str_repeat($tab, $this->indentation->getIndentLvl()));
            $this->newline = false;
            $addedNewline = true;
        }

        return $addedNewline;
    }
public function addNewLineBreak($tab)
    {
        $addedNewline = false;

        if (true === $this->newline) {
            $this->formatter->appendToFormattedSql("\n".str_repeat($tab, $this->indentation->getIndentLvl()));
            $this->newline = false;
            $addedNewline = true;
        }

        return $addedNewline;
    }
public function addNewLineBreak ( $ tab ) { $ addedNewline = false ; if ( true === $ this -> newline ) { $ this -> formatter -> appendToFormattedSql ( "\n" . str_repeat ( $ tab , $ this -> indentation -> getIndentLvl ( ) ) ) ; $ this -> newline = false ; $ addedNewline = true ; } return $ addedNewline ; }
Adds a new line break if needed.

@param string $tab

@return bool
Adds a new line break if needed .