function AbstractArraySniff::processSingleLineArray
Processes a single-line array definition.
Parameters
\PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.:
int $stackPtr The position of the current token: in the stack passed in $tokens.
int $arrayStart The token that starts the array definition.:
int $arrayEnd The token that ends the array definition.:
array $indices An array of token positions for the array keys,: double arrows, and values.
Return value
void
1 call to AbstractArraySniff::processSingleLineArray()
- AbstractArraySniff::process in vendor/
squizlabs/ php_codesniffer/ src/ Sniffs/ AbstractArraySniff.php - Processes this sniff, when one of its tokens is encountered.
1 method overrides AbstractArraySniff::processSingleLineArray()
- ArrayIndentSniff::processSingleLineArray in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Generic/ Sniffs/ Arrays/ ArrayIndentSniff.php - Processes a single-line array definition.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Sniffs/ AbstractArraySniff.php, line 153
Class
Namespace
PHP_CodeSniffer\SniffsCode
protected abstract function processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd, $indices);