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

Breadcrumb

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

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

AbstractArraySniff

Namespace

PHP_CodeSniffer\Sniffs

Code

protected abstract function processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd, $indices);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal