function Plugin::isPHPCodeSnifferInstalled
Simple check if PHP_CodeSniffer is installed.
Parameters
null|string|\Composer\Semver\Constraint\ConstraintInterface $versionConstraint to match against:
Return value
bool Whether PHP_CodeSniffer is installed
3 calls to Plugin::isPHPCodeSnifferInstalled()
- Plugin::getMinDepth in vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php - Returns the minimal search depth for Coding Standard packages.
- Plugin::loadInstalledPaths in vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php - Load all paths from PHP_CodeSniffer into an array.
- Plugin::onDependenciesChangedEvent in vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php - Entry point for post install and post update events.
File
-
vendor/
dealerdirect/ phpcodesniffer-composer-installer/ src/ Plugin.php, line 567
Class
- Plugin
- PHP_CodeSniffer standard installation manager.
Namespace
PHPCSStandards\Composer\Plugin\Installers\PHPCodeSnifferCode
private function isPHPCodeSnifferInstalled($versionConstraint = null) {
return $this->getPHPCodeSnifferPackage($versionConstraint) !== null;
}