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

Breadcrumb

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

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
*

... See full list

File

vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/Helpers.php, line 1023

Class

Helpers

Namespace

VariableAnalysis\Lib

Code

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;
}

API Navigation

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