function Helpers::isTokenInsideFunctionCallArgument
* Return true if the token is inside the arguments of a function call. * * For example, the variable `$foo` in `doSomething($foo)` is inside the * arguments to the call to `doSomething()`. * *
Parameters
File $phpcsFile: * @param int $stackPtr * * @return bool
2 calls to Helpers::isTokenInsideFunctionCallArgument()
- 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::processVariableAsStaticDeclaration in vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Sniffs/ CodeAnalysis/ VariableAnalysisSniff.php - * Process a variable as a static declaration within a function. * * Specifically, this looks for variable definitions of the form `static * $foo = 'hello';` or `static int $foo;` inside a function definition. * * This will not…
File
-
vendor/
sirbrillig/ phpcs-variable-analysis/ VariableAnalysis/ Lib/ Helpers.php, line 200
Class
Namespace
VariableAnalysis\LibCode
public static function isTokenInsideFunctionCallArgument(File $phpcsFile, $stackPtr) {
return is_int(self::getFunctionIndexForFunctionCallArgument($phpcsFile, $stackPtr));
}