src/Composer/Downloader/FileDownloader.php
public function getLocalChanges(PackageInterface $package, $targetDir)
    {
        $prevIO = $this->io;
        $prevProgress = $this->outputProgress;

        $this->io = new NullIO;
        $this->io->loadConfiguration($this->config);
        $this->outputProgress = false;
        $e = null;

        try {
            $this->download($package, $targetDir.'_compare', false);

            $comparer = new Comparer();
            $comparer->setSource($targetDir.'_compare');
            $comparer->setUpdate($targetDir);
            $comparer->doCompare();
            $output = $comparer->getChanged(true, true);
            $this->filesystem->removeDirectory($targetDir.'_compare');
        } catch (\Exception $e) {
        }

        $this->io = $prevIO;
        $this->outputProgress = $prevProgress;

        if ($e) {
            throw $e;
        }

        return trim($output);
    }
public function getLocalChanges(PackageInterface $package, $targetDir)
    {
        $prevIO = $this->io;
        $prevProgress = $this->outputProgress;

        $this->io = new NullIO;
        $this->io->loadConfiguration($this->config);
        $this->outputProgress = false;
        $e = null;

        try {
            $this->download($package, $targetDir.'_compare', false);

            $comparer = new Comparer();
            $comparer->setSource($targetDir.'_compare');
            $comparer->setUpdate($targetDir);
            $comparer->doCompare();
            $output = $comparer->getChanged(true, true);
            $this->filesystem->removeDirectory($targetDir.'_compare');
        } catch (\Exception $e) {
        }

        $this->io = $prevIO;
        $this->outputProgress = $prevProgress;

        if ($e) {
            throw $e;
        }

        return trim($output);
    }
public function getLocalChanges ( PackageInterface $ package , $ targetDir ) { $ prevIO = $ this -> io ; $ prevProgress = $ this -> outputProgress ; $ this -> io = new NullIO ; $ this -> io -> loadConfiguration ( $ this -> config ) ; $ this -> outputProgress = false ; $ e = null ; try { $ this -> download ( $ package , $ targetDir . '_compare' , false ) ; $ comparer = new Comparer ( ) ; $ comparer -> setSource ( $ targetDir . '_compare' ) ; $ comparer -> setUpdate ( $ targetDir ) ; $ comparer -> doCompare ( ) ; $ output = $ comparer -> getChanged ( true , true ) ; $ this -> filesystem -> removeDirectory ( $ targetDir . '_compare' ) ; } catch ( \ Exception $ e ) { } $ this -> io = $ prevIO ; $ this -> outputProgress = $ prevProgress ; if ( $ e ) { throw $ e ; } return trim ( $ output ) ; }
{@inheritDoc}
@throws \RuntimeException
{