original_string: protected function getUniqueListProductClassField()
      {
          $types = $this->field->getTypes();
          $fields = $this->getListProductClassField(array('index' => 'field_id'));
  
          $unique = array();
  
          foreach ((array) $this->field->getList() as $field) {
              if (empty($fields[$field['field_id']])) {
                  $type = empty($types[$field['type']]) ? $this->text('Unknown') : $types[$field['type']];
                  $unique[$field['field_id']] = "{$field['title']} ($type)";
              }
          }
  
          return $unique;
      }
code: protected function getUniqueListProductClassField()
      {
          $types = $this->field->getTypes();
          $fields = $this->getListProductClassField(array('index' => 'field_id'));
  
          $unique = array();
  
          foreach ((array) $this->field->getList() as $field) {
              if (empty($fields[$field['field_id']])) {
                  $type = empty($types[$field['type']]) ? $this->text('Unknown') : $types[$field['type']];
                  $unique[$field['field_id']] = "{$field['title']} ($type)";
              }
          }
  
          return $unique;
      }
code_tokens: protected function getUniqueListProductClassField ( ) { $ types = $ this -> field -> getTypes ( ) ; $ fields = $ this -> getListProductClassField ( array ( 'index' => 'field_id' ) ) ; $ unique = array ( ) ; foreach ( ( array ) $ this -> field -> getList ( ) as $ field ) { if ( empty ( $ fields [ $ field [ 'field_id' ] ] ) ) { $ type = empty ( $ types [ $ field [ 'type' ] ] ) ? $ this -> text ( 'Unknown' ) : $ types [ $ field [ 'type' ] ] ; $ unique [ $ field [ 'field_id' ] ] = "{$field['title']} ($type)" ; } } return $ unique ; }
docstring: Returns an array of product class fields indexed by field ID which are unique for the product class
  @return array
docstring_tokens: Returns an array of product class fields indexed by field ID which are unique for the product class