Zipper icon indicating copy to clipboard operation
Zipper copied to clipboard

composer and github have different files

Open Aleksandern opened this issue 10 years ago • 1 comments

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;
}

Aleksandern avatar Oct 27 '15 11:10 Aleksandern

0.6.x != dev-master. https://github.com/Chumper/Zipper/blob/313e364259398557bdcc2f68e6ff20d71aaea811/src/Chumper/Zipper/Zipper.php

impleri avatar Oct 27 '15 14:10 impleri