protected function removeNewLines($sql)
    {
        if (! $this->config->newLinesToSpaces()) {
            return $sql;
        }

        return preg_replace($this->wrapRegex($this->notInsideQuotes('\v', false)), ' ', $sql);
    }
protected function removeNewLines($sql)
    {
        if (! $this->config->newLinesToSpaces()) {
            return $sql;
        }

        return preg_replace($this->wrapRegex($this->notInsideQuotes('\v', false)), ' ', $sql);
    }
protected function removeNewLines ( $ sql ) { if ( ! $ this -> config -> newLinesToSpaces ( ) ) { return $ sql ; } return preg_replace ( $ this -> wrapRegex ( $ this -> notInsideQuotes ( '\v' , false ) ) , ' ' , $ sql ) ; }
Remove new lines from SQL to keep it in single line if possible.

@param string $sql

@return string
Remove new lines from SQL to keep it in single line if possible .