Пример #1
0
 /**
  * @param string $tab
  * @param        $queryValue
  */
 public function writeInlineParenthesesBlock($tab, $queryValue)
 {
     $this->formatter->setFormattedSql(\rtrim($this->formatter->getFormattedSql(), ' '));
     if ($this->indentation->getInlineIndented()) {
         $indentTypes = $this->indentation->getIndentTypes();
         \array_shift($indentTypes);
         $this->indentation->setIndentTypes($indentTypes);
         $this->indentation->setIndentLvl($this->indentation->getIndentLvl() - 1);
         $this->formatter->appendToFormattedSql("\n" . str_repeat($tab, $this->indentation->getIndentLvl()));
     }
     $this->inlineParentheses = false;
     $this->formatter->appendToFormattedSql($queryValue . ' ');
 }