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

Breadcrumb

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

function TokenHelper::findPreviousEffective

*

Parameters

int $startPointer Search starts at this token, inclusive: * @param int|null $endPointer Search ends at this token, exclusive

110 calls to TokenHelper::findPreviousEffective()
AbstractControlStructureSpacing::checkLinesBefore in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/ControlStructures/AbstractControlStructureSpacing.php
AbstractLineCall::getCall in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/AbstractLineCall.php
AbstractLineCall::isCall in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/AbstractLineCall.php
AbstractMethodSignature::getSignatureStartAndEndPointers in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/AbstractMethodSignature.php
*
ArrayHelper::isNotEmpty in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ArrayHelper.php
* Test if effective tokens between open & closing tokens

... See full list

File

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

Class

TokenHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function findPreviousEffective(File $phpcsFile, int $startPointer, ?int $endPointer = null) : ?int {
    return self::findPreviousExcluding($phpcsFile, self::$ineffectiveTokenCodes, $startPointer, $endPointer);
}

API Navigation

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