function Plugin::getPHPCodingStandardPackages
Iterates through Composers' local repository looking for valid Coding Standard packages.
Return value
array Composer packages containing coding standard(s)
1 call to Plugin::getPHPCodingStandardPackages()
- Plugin::updateInstalledPaths in vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php - Check all installed packages (including the root package) against the installed paths from PHP_CodeSniffer and add the missing ones.
File
-
vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php, line 517
Class
- Plugin
- PHP_CodeSniffer standard installation manager.
Namespace
PHPCSStandards\Composer\Plugin\Installers\PHPCodeSnifferCode
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;
});
return $codingStandardPackages;
}