original_string: public function file($source, $destination)
      {
          settype($source, 'array');
  
          $this->set($destination, true);
  
          $added = 0;
  
          foreach ($source as $file) {
              $added += (int) $this->zip->addFile($file, basename($file));
          }
  
          $this->zip->close();
          return count($source) == $added;
      }
code: public function file($source, $destination)
      {
          settype($source, 'array');
  
          $this->set($destination, true);
  
          $added = 0;
  
          foreach ($source as $file) {
              $added += (int) $this->zip->addFile($file, basename($file));
          }
  
          $this->zip->close();
          return count($source) == $added;
      }
code_tokens: public function file ( $ source , $ destination ) { settype ( $ source , 'array' ) ; $ this -> set ( $ destination , true ) ; $ added = 0 ; foreach ( $ source as $ file ) { $ added += ( int ) $ this -> zip -> addFile ( $ file , basename ( $ file ) ) ; } $ this -> zip -> close ( ) ; return count ( $ source ) == $ added ; }
docstring: Create a ZIP archive
  @param array|string $source
  @param string $destination
  @return bool
docstring_tokens: Create a ZIP archive