original_string: public function addFile($file)
      {
          if (is_string($file)) {
              $file = array($file);
          }
  
          if (is_array($file)) {
              foreach ($file as $name) {
                  if (!isset($this->_files[$name]) && !empty($name)) {
                      $this->_files[$name] = $name;
                  }
              }
          }
  
          return $this;
      }
code: public function addFile($file)
      {
          if (is_string($file)) {
              $file = array($file);
          }
  
          if (is_array($file)) {
              foreach ($file as $name) {
                  if (!isset($this->_files[$name]) && !empty($name)) {
                      $this->_files[$name] = $name;
                  }
              }
          }
  
          return $this;
      }
code_tokens: public function addFile ( $ file ) { if ( is_string ( $ file ) ) { $ file = array ( $ file ) ; } if ( is_array ( $ file ) ) { foreach ( $ file as $ name ) { if ( ! isset ( $ this -> _files [ $ name ] ) && ! empty ( $ name ) ) { $ this -> _files [ $ name ] = $ name ; } } } return $ this ; }
docstring: Adds a file for validation
  
  @param string|array $file
docstring_tokens: Adds a file for validation