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

Breadcrumb

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

function Plugin::getMinDepth

Returns the minimal search depth for Coding Standard packages.

Usually this is 0, unless PHP_CodeSniffer >= 3 is used.

Return value

int

1 call to Plugin::getMinDepth()
Plugin::getMaxDepth in vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php
Determines the maximum search depth when searching for Coding Standards.

File

vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php, line 630

Class

Plugin
PHP_CodeSniffer standard installation manager.

Namespace

PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer

Code

private function getMinDepth() {
    if ($this->isPHPCodeSnifferInstalled('>= 3.0.0') !== true) {
        return 1;
    }
    return 0;
}

API Navigation

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