function Config::getConfigData
Get a single config value.
Parameters
string $key The name of the config value.:
Return value
string|null
See also
setConfigData()
getAllConfigData()
14 calls to Config::getConfigData()
- Config::getExecutablePath in vendor/
squizlabs/ php_codesniffer/ src/ Config.php - Get the path to an executable utility.
- Config::processLongArgument in vendor/
squizlabs/ php_codesniffer/ src/ Config.php - Processes a long (--example) command-line argument.
- Config::restoreDefaults in vendor/
squizlabs/ php_codesniffer/ src/ Config.php - Restore default values for all possible command line arguments.
- DeprecatedSniff::process in vendor/
drupal/ coder/ coder_sniffer/ Drupal/ Sniffs/ Commenting/ DeprecatedSniff.php - Processes this test, when one of its tokens is encountered.
- DisallowAlternativePHPTagsSniff::register in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Generic/ Sniffs/ PHP/ DisallowAlternativePHPTagsSniff.php - Returns an array of tokens this test wants to listen for.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Config.php, line 1443
Class
- Config
- Stores the configuration used to run PHPCS and PHPCBF.
Namespace
PHP_CodeSnifferCode
public static function getConfigData($key) {
$phpCodeSnifferConfig = self::getAllConfigData();
if ($phpCodeSnifferConfig === null) {
return null;
}
if (isset($phpCodeSnifferConfig[$key]) === false) {
return null;
}
return $phpCodeSnifferConfig[$key];
}