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 - *
- Helpers::isTokenInsideAssignmentLHS in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php - *
- ScopeManager::getScopesForScopeEnd in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ ScopeManager.php - * Find scopes closed by a scope close index. * *
- ScopeManager::recordScopeStartAndEnd in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ ScopeManager.php - * Add a scope's start and end index to our record for the file. * *
- VariableAnalysisSniff::getOrCreateVariableInfo in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Returns variable data for a variable at an index. * * The variable will also be added to the list of variables stored in its * scope so that its use or non-use can be reported when those scopes end by * `processScopeClose()`. * *
- VariableAnalysisSniff::isVariableUndefined in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Return true if a variable is defined within a scope. * *
- VariableAnalysisSniff::markAllVariablesRead in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Mark all variables within a scope as being used. * * This will prevent any of the variables in that scope from being reported * as unused. * *
- VariableAnalysisSniff::markVariableAssignment in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Record that a variable has been defined and assigned a value. * * If a variable has been defined within a scope, it will not be marked as * undefined when that variable is later used. If it is not used, it will be * marked as unused when…
- VariableAnalysisSniff::markVariableAssignmentWithoutInitialization in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Record that a variable has been assigned a value. * * Does not record that a variable has been defined, which is the usual state * of affairs. For that, use `markVariableAssignment()`. * * This is useful for assignments to references. * *
- VariableAnalysisSniff::markVariableDeclaration in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Record that a variable has been defined within a scope. * *
- VariableAnalysisSniff::markVariableReadAndWarnIfUndefined in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Record a variable use and report a warning if the variable is undefined. * *
- VariableAnalysisSniff::process in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Scan and process a token. * * This is the main processing function of the sniff. Will run on every token * for which `register()` returns true. * *
- VariableAnalysisSniff::processClosingForLoopsAt in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Scan variables that were postponed because they exist in the increment expression of a for loop. * *
- VariableAnalysisSniff::processCompact in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Called to process variables named in a call to compact(). * *
- VariableAnalysisSniff::processScopeClose in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Called to process the end of a scope. * * Note that although triggered by the closing curly brace of the scope, * $stackPtr is the scope conditional, not the closing curly brace. * *
- VariableAnalysisSniff::processScopeCloseForVariable in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Warn about an unused variable if it has not been used within a scope. * *
- VariableAnalysisSniff::processVariable in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Process a normal variable in the code. * * Most importantly, this function determines if the variable use is a "read" * (using the variable for something) or a "write" (an assignment) or, * sometimes, both at once. * …
- VariableAnalysisSniff::processVariableAsAssignment in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Process a variable that is being assigned. * * This will record that the variable has been defined within a scope so that * later we can determine if it it unused and we can guarantee that any * future uses of the variable are not using an…
- VariableAnalysisSniff::processVariableAsForeachLoopVar in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - *
- VariableAnalysisSniff::processVariableAsFunctionParameter in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Process a parameter definition if it is inside a function definition. * * This does not include variables imported by a "use" statement. * *
- VariableAnalysisSniff::processVariableAsUseImportDefinition in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Process a variable definition if it is inside a function's "use" import. * *
- VariableAnalysisSniff::processVariableInString in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Called to process variables found in double quoted strings. * * Note that there may be more than one variable in the string, which will * result only in one call for the string. * *
- VariableAnalysisSniff::processVaribleInsideElse in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - *
- VariableAnalysisSniff::searchForAndProcessClosingScopesAt in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Find scopes closed by a token and process their variables. * * Calls `processScopeClose()` for each closed scope. * *
- VariableAnalysisSniff::warnAboutUnusedVariable in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Register warnings for a variable that is defined but not used. * *