original_string: protected function _quoteJoins($joins)
      {
          $result = [];
          foreach ($joins as $value) {
              $alias = null;
              if (!empty($value['alias'])) {
                  $alias = $this->_driver->quoteIdentifier($value['alias']);
                  $value['alias'] = $alias;
              }
  
              if (is_string($value['table'])) {
                  $value['table'] = $this->_driver->quoteIdentifier($value['table']);
              }
  
              $result[$alias] = $value;
          }
  
          return $result;
      }
code: protected function _quoteJoins($joins)
      {
          $result = [];
          foreach ($joins as $value) {
              $alias = null;
              if (!empty($value['alias'])) {
                  $alias = $this->_driver->quoteIdentifier($value['alias']);
                  $value['alias'] = $alias;
              }
  
              if (is_string($value['table'])) {
                  $value['table'] = $this->_driver->quoteIdentifier($value['table']);
              }
  
              $result[$alias] = $value;
          }
  
          return $result;
      }
code_tokens: protected function _quoteJoins ( $ joins ) { $ result = [ ] ; foreach ( $ joins as $ value ) { $ alias = null ; if ( ! empty ( $ value [ 'alias' ] ) ) { $ alias = $ this -> _driver -> quoteIdentifier ( $ value [ 'alias' ] ) ; $ value [ 'alias' ] = $ alias ; } if ( is_string ( $ value [ 'table' ] ) ) { $ value [ 'table' ] = $ this -> _driver -> quoteIdentifier ( $ value [ 'table' ] ) ; } $ result [ $ alias ] = $ value ; } return $ result ; }
docstring: Quotes both the table and alias for an array of joins as stored in a Query
  object
  
  @param array $joins The joins to quote.
  @return array
docstring_tokens: Quotes both the table and alias for an array of joins as stored in a Query object