/**
  * Commas start a new line unless they are found within inline parentheses or SQL 'LIMIT' clause.
  * If the previous TOKEN_VALUE is 'LIMIT', undo new line.
  */
 public function writeNewLineBecauseOfComma()
 {
     $this->newline = true;
     if (true === $this->formatter->getClauseLimit()) {
         $this->newline = false;
         $this->formatter->setClauseLimit(false);
     }
 }
 /**
  * @param string $token
  * @param Parentheses $parentheses
  * @param Formatter $formatter
  */
 public static function tokenHasLimitClause($token, Parentheses $parentheses, Formatter $formatter)
 {
     if ('LIMIT' === $token[Tokenizer::TOKEN_VALUE] && false === $parentheses->getInlineParentheses()) {
         $formatter->setClauseLimit(true);
     }
 }