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

Breadcrumb

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

function AbstractScopeSniff::processTokenOutsideScope

Processes a token that is found outside 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.

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::processTokenOutsideScope()
AbstractScopeSniff::process in vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php
Processes the tokens that this test is listening for.
11 methods override AbstractScopeSniff::processTokenOutsideScope()
AbstractVariableSniff::processTokenOutsideScope in vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php
Processes the token outside the scope in the file.
CamelCapsFunctionNameSniff::processTokenOutsideScope in vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
Processes the tokens outside the scope.
ConstructorNameSniff::processTokenOutsideScope in vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php
Processes a token that is found within the scope that this test is listening to.
IncludeSystemSniff::processTokenOutsideScope in vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
Processes a token within the scope that this test is listening to.
MethodDeclarationSniff::processTokenOutsideScope in vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php
Processes a token that is found within the scope that this test is listening to.

... See full list

File

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

Class

AbstractScopeSniff

Namespace

PHP_CodeSniffer\Sniffs

Code

protected abstract function processTokenOutsideScope(File $phpcsFile, $stackPtr);

API Navigation

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