private function getPHPCodeSnifferPackage($versionConstraint = null)
    {
        $packages = $this
            ->composer
            ->getRepositoryManager()
            ->getLocalRepository()
            ->findPackages(self::PACKAGE_NAME, $versionConstraint);

        return array_shift($packages);
    }
private function getPHPCodeSnifferPackage($versionConstraint = null)
    {
        $packages = $this
            ->composer
            ->getRepositoryManager()
            ->getLocalRepository()
            ->findPackages(self::PACKAGE_NAME, $versionConstraint);

        return array_shift($packages);
    }
private function getPHPCodeSnifferPackage ( $ versionConstraint = null ) { $ packages = $ this -> composer -> getRepositoryManager ( ) -> getLocalRepository ( ) -> findPackages ( self :: PACKAGE_NAME , $ versionConstraint ) ; return array_shift ( $ packages ) ; }
Searches for the installed PHP_CodeSniffer Composer package

@param null|string|\Composer\Semver\Constraint\ConstraintInterface $versionConstraint to match against

@return PackageInterface|null
Searches for the installed PHP_CodeSniffer Composer package