original_string: public function addFormats(array $formats)
      {
          foreach ($formats as $name => $format) {
              $this->formats[$name] = $format;
          }
      }
code: public function addFormats(array $formats)
      {
          foreach ($formats as $name => $format) {
              $this->formats[$name] = $format;
          }
      }
code_tokens: public function addFormats ( array $ formats ) { foreach ( $ formats as $ name => $ format ) { $ this -> formats [ $ name ] = $ format ; } }
docstring: Add datetime formats
  @param array $formats
docstring_tokens: Add datetime formats