original_string: protected function buildGroupBy()
      {
          if (count($this->groupBy) === 0) {
              return '';
          }
  
          $groups = [];
          foreach ($this->groupBy as $groupBy) {
              $groupBy = $this->quoteIdentifier($groupBy['tableName']) . '.' . $this->quoteIdentifier($groupBy['key']);
              $groups[] = $groupBy;
          }
          return 'GROUP BY ' . implode(', ', $groups);
      }
code: protected function buildGroupBy()
      {
          if (count($this->groupBy) === 0) {
              return '';
          }
  
          $groups = [];
          foreach ($this->groupBy as $groupBy) {
              $groupBy = $this->quoteIdentifier($groupBy['tableName']) . '.' . $this->quoteIdentifier($groupBy['key']);
              $groups[] = $groupBy;
          }
          return 'GROUP BY ' . implode(', ', $groups);
      }
code_tokens: protected function buildGroupBy ( ) { if ( count ( $ this -> groupBy ) === 0 ) { return '' ; } $ groups = [ ] ; foreach ( $ this -> groupBy as $ groupBy ) { $ groupBy = $ this -> quoteIdentifier ( $ groupBy [ 'tableName' ] ) . '.' . $ this -> quoteIdentifier ( $ groupBy [ 'key' ] ) ; $ groups [ ] = $ groupBy ; } return 'GROUP BY ' . implode ( ', ' , $ groups ) ; }
docstring: Build and return the group by string.
  
  @return string
docstring_tokens: Build and return the group by string .