protected function isSourceDirUnused(PackageInterface $package)
    {
        $usageData = $this->packageDataManager->getPackageUsage($package);

        return sizeof($usageData) <= 1;
    }
protected function isSourceDirUnused(PackageInterface $package)
    {
        $usageData = $this->packageDataManager->getPackageUsage($package);

        return sizeof($usageData) <= 1;
    }
protected function isSourceDirUnused ( PackageInterface $ package ) { $ usageData = $ this -> packageDataManager -> getPackageUsage ( $ package ) ; return sizeof ( $ usageData ) <= 1 ; }
Detect if other project use the dependency by using the "packages.json" file

@param PackageInterface $package

@return bool
Detect if other project use the dependency by using the packages . json file