Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Plugin.php

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\PHPCodeSniffer

Code

private function isPHPCodeSnifferInstalled($versionConstraint = null) {
    return $this->getPHPCodeSnifferPackage($versionConstraint) !== null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal