public function removePackageUsage(PackageInterface $package)
    {
        $usageData = $this->getPackageUsage($package);
        $newUsageData = array();
        $projectName = $this->composer->getPackage()->getName();

        foreach ($usageData as $usage) {
            if ($projectName !== $usage) {
                $newUsageData[] = $usage;
            }
        }

        $this->updatePackageUsageFile($package, $newUsageData);
    }
public function removePackageUsage(PackageInterface $package)
    {
        $usageData = $this->getPackageUsage($package);
        $newUsageData = array();
        $projectName = $this->composer->getPackage()->getName();

        foreach ($usageData as $usage) {
            if ($projectName !== $usage) {
                $newUsageData[] = $usage;
            }
        }

        $this->updatePackageUsageFile($package, $newUsageData);
    }
public function removePackageUsage ( PackageInterface $ package ) { $ usageData = $ this -> getPackageUsage ( $ package ) ; $ newUsageData = array ( ) ; $ projectName = $ this -> composer -> getPackage ( ) -> getName ( ) ; foreach ( $ usageData as $ usage ) { if ( $ projectName !== $ usage ) { $ newUsageData [ ] = $ usage ; } } $ this -> updatePackageUsageFile ( $ package , $ newUsageData ) ; }
Remove the row in the "packages.json" file

@param PackageInterface $package
Remove the row in the packages . json file