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

Breadcrumb

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

function AbstractScopeSniff::processTokenWithinScope

Processes a token that is found within the scope that this test is listening to.

Parameters

\PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.:

int $stackPtr The position in the stack where this: token was found.

int $currScope The position in the tokens array that: opened the scope that this test is listening for.

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.

1 call to AbstractScopeSniff::processTokenWithinScope()
AbstractScopeSniff::process in vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php
Processes the tokens that this test is listening for.
11 methods override AbstractScopeSniff::processTokenWithinScope()
AbstractVariableSniff::processTokenWithinScope in vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php
Processes the token in the specified PHP_CodeSniffer\Files\File.
CamelCapsFunctionNameSniff::processTokenWithinScope in vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
Processes the tokens within the scope.
ConstructorNameSniff::processTokenWithinScope in vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php
Processes this test when one of its tokens is encountered.
IncludeSystemSniff::processTokenWithinScope in vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
Processes the function tokens within the class.
MethodDeclarationSniff::processTokenWithinScope in vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php
Processes the function tokens within the class.

... See full list

File

vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php, line 170

Class

AbstractScopeSniff

Namespace

PHP_CodeSniffer\Sniffs

Code

protected abstract function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope);

API Navigation

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