function Helpers::debug
*
Return value
void
29 calls to Helpers::debug()
- Helpers::findVariableScope in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - *
- Helpers::findVariableScopeExceptArrowFunctions in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - * Return the token index of the scope start for a token * * For a variable within a function body, or a variable within a function * definition argument list, this will return the function keyword's index. * * For a variable within a…
- Helpers::getLastNonEmptyTokenIndexInFile in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - *
- Helpers::getListAssignments in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - * Return a list of indices for variables assigned within a list assignment. * * The index provided can be either the opening square brace of a short list * assignment like the first character of `[$a] = $b;` or the `list` token of * an…
- Helpers::getVariablesDefinedByArrowFunction in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - *
File
-
vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php, line 1023
Class
Namespace
VariableAnalysis\LibCode
public static function debug() {
$messages = func_get_args();
if (!defined('PHP_CODESNIFFER_VERBOSITY')) {
return;
}
if (PHP_CODESNIFFER_VERBOSITY <= 3) {
return;
}
$output = PHP_EOL . 'VariableAnalysisSniff: DEBUG:';
foreach ($messages as $message) {
if (is_string($message) || is_numeric($message)) {
$output .= ' "' . $message . '"';
continue;
}
$output .= PHP_EOL . var_export($message, true) . PHP_EOL;
}
$output .= PHP_EOL;
echo $output;
}