Zipper
Zipper copied to clipboard
composer and github have different files
composer and github have different files
for example: github - Zipper.php
public function add($pathToAdd, $fileName = null)
{
if (is_array($pathToAdd)) {
foreach ($pathToAdd as $dir) {
$this->add($dir);
}
} else if ($this->file->isFile($pathToAdd)) {
if ($fileName)
$this->addFile($pathToAdd, $fileName);
else
$this->addFile($pathToAdd);
} else
$this->addDir($pathToAdd);
return $this;
}
composer ("chumper/zipper": "0.6.x") - github - Zipper.php
public function add($pathToAdd)
{
if (is_array($pathToAdd)) {
foreach ($pathToAdd as $dir) {
$this->add($dir);
}
} else if ($this->file->isFile($pathToAdd)) {
$this->addFile($pathToAdd);
} else
$this->addDir($pathToAdd);
return $this;
}
0.6.x != dev-master. https://github.com/Chumper/Zipper/blob/313e364259398557bdcc2f68e6ff20d71aaea811/src/Chumper/Zipper/Zipper.php