original_string: protected function _quoteParts($query)
      {
          foreach (['distinct', 'select', 'from', 'group'] as $part) {
              $contents = $query->clause($part);
  
              if (!is_array($contents)) {
                  continue;
              }
  
              $result = $this->_basicQuoter($contents);
              if (!empty($result)) {
                  $query->{$part}($result, true);
              }
          }
  
          $joins = $query->clause('join');
          if ($joins) {
              $joins = $this->_quoteJoins($joins);
              $query->join($joins, [], true);
          }
      }
code: protected function _quoteParts($query)
      {
          foreach (['distinct', 'select', 'from', 'group'] as $part) {
              $contents = $query->clause($part);
  
              if (!is_array($contents)) {
                  continue;
              }
  
              $result = $this->_basicQuoter($contents);
              if (!empty($result)) {
                  $query->{$part}($result, true);
              }
          }
  
          $joins = $query->clause('join');
          if ($joins) {
              $joins = $this->_quoteJoins($joins);
              $query->join($joins, [], true);
          }
      }
code_tokens: protected function _quoteParts ( $ query ) { foreach ( [ 'distinct' , 'select' , 'from' , 'group' ] as $ part ) { $ contents = $ query -> clause ( $ part ) ; if ( ! is_array ( $ contents ) ) { continue ; } $ result = $ this -> _basicQuoter ( $ contents ) ; if ( ! empty ( $ result ) ) { $ query -> { $ part } ( $ result , true ) ; } } $ joins = $ query -> clause ( 'join' ) ; if ( $ joins ) { $ joins = $ this -> _quoteJoins ( $ joins ) ; $ query -> join ( $ joins , [ ] , true ) ; } }
docstring: Quotes all identifiers in each of the clauses of a query
  
  @param \Cake\Database\Query $query The query to quote.
  @return void
docstring_tokens: Quotes all identifiers in each of the clauses of a query