original_string: public function formatValues($value)
      {
          $options = $this->getOptions();
          if (is_array($value)) {
              if ($options) {
                  foreach ($value as &$val) {
                      if (isset($options[$val])) {
                          $val = $options[$val];
                      }
                   }
              }
              return implode($this->_('; '), $value);
          }
          if (isset($options[$value])) {
              return $options[$value];
          }
          return $value;
      }
code: public function formatValues($value)
      {
          $options = $this->getOptions();
          if (is_array($value)) {
              if ($options) {
                  foreach ($value as &$val) {
                      if (isset($options[$val])) {
                          $val = $options[$val];
                      }
                   }
              }
              return implode($this->_('; '), $value);
          }
          if (isset($options[$value])) {
              return $options[$value];
          }
          return $value;
      }
code_tokens: public function formatValues ( $ value ) { $ options = $ this -> getOptions ( ) ; if ( is_array ( $ value ) ) { if ( $ options ) { foreach ( $ value as & $ val ) { if ( isset ( $ options [ $ val ] ) ) { $ val = $ options [ $ val ] ; } } } return implode ( $ this -> _ ( '; ' ) , $ value ) ; } if ( isset ( $ options [ $ value ] ) ) { return $ options [ $ value ] ; } return $ value ; }
docstring: This formatFunction is needed because the options are not set before the concatenated row
  
  @param string $value
  @return string
docstring_tokens: This formatFunction is needed because the options are not set before the concatenated row