protected function cleanupPackages(Storage $storage)
    {
        $this->outputLine();
        $this->outputLine('Cleanup packages ...');
        $this->outputLine('--------------------');
        $count = $this->importer->cleanupPackages($storage, function (NodeInterface $package) {
            $this->outputLine(sprintf('%s deleted', $package->getLabel()));
        });
        if ($count > 0) {
            $this->outputLine(sprintf('  Deleted %d package(s)', $count));
        }
    }
protected function cleanupPackages(Storage $storage)
    {
        $this->outputLine();
        $this->outputLine('Cleanup packages ...');
        $this->outputLine('--------------------');
        $count = $this->importer->cleanupPackages($storage, function (NodeInterface $package) {
            $this->outputLine(sprintf('%s deleted', $package->getLabel()));
        });
        if ($count > 0) {
            $this->outputLine(sprintf('  Deleted %d package(s)', $count));
        }
    }
protected function cleanupPackages ( Storage $ storage ) { $ this -> outputLine ( ) ; $ this -> outputLine ( 'Cleanup packages ...' ) ; $ this -> outputLine ( '--------------------' ) ; $ count = $ this -> importer -> cleanupPackages ( $ storage , function ( NodeInterface $ package ) { $ this -> outputLine ( sprintf ( '%s deleted' , $ package -> getLabel ( ) ) ) ; } ) ; if ( $ count > 0 ) { $ this -> outputLine ( sprintf ( '  Deleted %d package(s)' , $ count ) ) ; } }
Remove packages that don't exist on Packagist

@param Storage $storage
Remove packages that don t exist on Packagist