function AbstractVariableSniff::processVariableInString
Called to process variables found in double quoted strings or heredocs.
Note that there may be more than one variable in the string, which will result only in one call for the string or one call per line for heredocs.
Parameters
\PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this: token was found.
int $stackPtr The position where the double quoted: string was found.
Return value
void|int Optionally returns a stack pointer. The sniff will not be called again on the current file until the returned stack pointer is reached. Return `$phpcsFile->numTokens` to skip the rest of the file.
2 calls to AbstractVariableSniff::processVariableInString()
- AbstractVariableSniff::processTokenOutsideScope in vendor/
squizlabs/ php_codesniffer/ src/ Sniffs/ AbstractVariableSniff.php - Processes the token outside the scope in the file.
- AbstractVariableSniff::processTokenWithinScope in vendor/
squizlabs/ php_codesniffer/ src/ Sniffs/ AbstractVariableSniff.php - Processes the token in the specified PHP_CodeSniffer\Files\File.
11 methods override AbstractVariableSniff::processVariableInString()
- MemberVarScopeSniff::processVariableInString in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Squiz/ Sniffs/ Scope/ MemberVarScopeSniff.php - Processes variables in double quoted strings.
- MemberVarSpacingSniff::processVariableInString in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Squiz/ Sniffs/ WhiteSpace/ MemberVarSpacingSniff.php - Processes variables in double quoted strings.
- PropertyDeclarationSniff::processVariableInString in vendor/
drupal/ coder/ coder_sniffer/ Drupal/ Sniffs/ Classes/ PropertyDeclarationSniff.php - Processes variables in double quoted strings.
- PropertyDeclarationSniff::processVariableInString in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ PSR2/ Sniffs/ Classes/ PropertyDeclarationSniff.php - Processes variables in double quoted strings.
- StrictSchemaDisabledSniff::processVariableInString in vendor/
drupal/ coder/ coder_sniffer/ DrupalPractice/ Sniffs/ Objects/ StrictSchemaDisabledSniff.php - Called to process variables found in double quoted strings or heredocs.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Sniffs/ AbstractVariableSniff.php, line 227
Class
Namespace
PHP_CodeSniffer\SniffsCode
protected abstract function processVariableInString(File $phpcsFile, $stackPtr);