original_string: public static function copyPackage($package_file, $tmp)
      {
          $package_file = realpath($package_file);
  
          if (file_exists($package_file)) {
              $filename = basename($package_file);
              Folder::create($tmp);
              copy(realpath($package_file), $tmp . DS . $filename);
              return $tmp . DS . $filename;
          }
  
          return null;
      }
code: public static function copyPackage($package_file, $tmp)
      {
          $package_file = realpath($package_file);
  
          if (file_exists($package_file)) {
              $filename = basename($package_file);
              Folder::create($tmp);
              copy(realpath($package_file), $tmp . DS . $filename);
              return $tmp . DS . $filename;
          }
  
          return null;
      }
code_tokens: public static function copyPackage ( $ package_file , $ tmp ) { $ package_file = realpath ( $ package_file ) ; if ( file_exists ( $ package_file ) ) { $ filename = basename ( $ package_file ) ; Folder :: create ( $ tmp ) ; copy ( realpath ( $ package_file ) , $ tmp . DS . $ filename ) ; return $ tmp . DS . $ filename ; } return null ; }
docstring: Copy the local zip package to tmp
  
  @param string $package_file
  @param string $tmp
  @return null|string
docstring_tokens: Copy the local zip package to tmp