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

Breadcrumb

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

function TokenHelper::findNextExcluding

*

Parameters

int|string|array<int|string, int|string> $types: * @param int $startPointer Search starts at this token, inclusive * @param int|null $endPointer Search ends at this token, exclusive

23 calls to TokenHelper::findNextExcluding()
AbstractRequireOneLineDocComment::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Commenting/AbstractRequireOneLineDocComment.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
AttributeHelper::getAttributes in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/AttributeHelper.php
*
CatchHelper::findCaughtTypesInCatch in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/CatchHelper.php
*
DisallowEmptyFunctionSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
DisallowMultiPropertyDefinitionSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/DisallowMultiPropertyDefinitionSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

... See full list

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/TokenHelper.php, line 217

Class

TokenHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function findNextExcluding(File $phpcsFile, $types, int $startPointer, ?int $endPointer = null) : ?int {
    
    /** @var int|false $token */
    $token = $phpcsFile->findNext($types, $startPointer, $endPointer, true);
    return $token === false ? null : $token;
}
RSS feed
Powered by Drupal