original_string: protected function add_format($format) {
          if (in_array($format, $this->supportedformats)) {
              return;
          }
          $this->supportedformats = portfolio_most_specific_formats(array($format), $this->supportedformats);
      }
code: protected function add_format($format) {
          if (in_array($format, $this->supportedformats)) {
              return;
          }
          $this->supportedformats = portfolio_most_specific_formats(array($format), $this->supportedformats);
      }
code_tokens: protected function add_format ( $ format ) { if ( in_array ( $ format , $ this -> supportedformats ) ) { return ; } $ this -> supportedformats = portfolio_most_specific_formats ( array ( $ format ) , $ this -> supportedformats ) ; }
docstring: Adds a new format to the list of supported formats.
  This functions also handles removing conflicting and less specific
  formats at the same time.
  
  @param string $format one of PORTFOLIO_FORMAT_XX
  @return void
docstring_tokens: Adds a new format to the list of supported formats . This functions also handles removing conflicting and less specific formats at the same time .