src/Plugin.php
protected function mustInstallPatchesForPackage(PackageInterface $package)
    {
        $result = false;
        $patches = $this->getPatchCollection()->getPatchesFor($package);
        if ($patches->isEmpty()) {
            if ($this->io->isVerbose()) {
                $this->io->write('<info>No patches found for '.$package->getName().'.</info>');
            }
        } else {
            $result = true;
        }

        return $result;
    }
protected function mustInstallPatchesForPackage(PackageInterface $package)
    {
        $result = false;
        $patches = $this->getPatchCollection()->getPatchesFor($package);
        if ($patches->isEmpty()) {
            if ($this->io->isVerbose()) {
                $this->io->write('<info>No patches found for '.$package->getName().'.</info>');
            }
        } else {
            $result = true;
        }

        return $result;
    }
protected function mustInstallPatchesForPackage ( PackageInterface $ package ) { $ result = false ; $ patches = $ this -> getPatchCollection ( ) -> getPatchesFor ( $ package ) ; if ( $ patches -> isEmpty ( ) ) { if ( $ this -> io -> isVerbose ( ) ) { $ this -> io -> write ( '<info>No patches found for ' . $ package -> getName ( ) . '.</info>' ) ; } } else { $ result = true ; } return $ result ; }
Should we apply patches to the package?

@param \Composer\Package\PackageInterface $package the package to be patched

@return bool
Should we apply patches to the package?