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\PHPCodeSnifferCode
private function getMinDepth() {
if ($this->isPHPCodeSnifferInstalled('>= 3.0.0') !== true) {
return 1;
}
return 0;
}