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

Breadcrumb

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

function ArrayIndentSniff::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

Overrides AbstractArraySniff::processSingleLineArray

File

vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/ArrayIndentSniff.php, line 39

Class

ArrayIndentSniff

Namespace

PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays

Code

public function processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd, $indices) {
}
RSS feed
Powered by Drupal