private function getPHPCodingStandardPackages()
    {
        $codingStandardPackages = array_filter(
            $this->composer->getRepositoryManager()->getLocalRepository()->getPackages(),
            function (PackageInterface $package) {
                if ($package instanceof AliasPackage) {
                    return false;
                }
                return $package->getType() === Plugin::PACKAGE_TYPE;
            }
        );

        if (! $this->composer->getPackage() instanceof RootpackageInterface
            && $this->composer->getPackage()->getType() === self::PACKAGE_TYPE
        ) {
            $codingStandardPackages[] = $this->composer->getPackage();
        }

        return $codingStandardPackages;
    }
private function getPHPCodingStandardPackages()
    {
        $codingStandardPackages = array_filter(
            $this->composer->getRepositoryManager()->getLocalRepository()->getPackages(),
            function (PackageInterface $package) {
                if ($package instanceof AliasPackage) {
                    return false;
                }
                return $package->getType() === Plugin::PACKAGE_TYPE;
            }
        );

        if (! $this->composer->getPackage() instanceof RootpackageInterface
            && $this->composer->getPackage()->getType() === self::PACKAGE_TYPE
        ) {
            $codingStandardPackages[] = $this->composer->getPackage();
        }

        return $codingStandardPackages;
    }
private function getPHPCodingStandardPackages ( ) { $ codingStandardPackages = array_filter ( $ this -> composer -> getRepositoryManager ( ) -> getLocalRepository ( ) -> getPackages ( ) , function ( PackageInterface $ package ) { if ( $ package instanceof AliasPackage ) { return false ; } return $ package -> getType ( ) === Plugin :: PACKAGE_TYPE ; } ) ; if ( ! $ this -> composer -> getPackage ( ) instanceof RootpackageInterface && $ this -> composer -> getPackage ( ) -> getType ( ) === self :: PACKAGE_TYPE ) { $ codingStandardPackages [ ] = $ this -> composer -> getPackage ( ) ; } return $ codingStandardPackages ; }
Iterates through Composers' local repository looking for valid Coding
Standard packages.

If the package is the RootPackage (the one the plugin is installed into),
the package is ignored for now since it needs a different install path logic.

@return array Composer packages containing coding standard(s)
Iterates through Composers local repository looking for valid Coding Standard packages .