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

Breadcrumb

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

function UseStatementHelper::getUseStatementPointer

1 call to UseStatementHelper::getUseStatementPointer()
LineLengthSniff::checkLineLength in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Files/LineLengthSniff.php

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/UseStatementHelper.php, line 205

Class

UseStatementHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getUseStatementPointer(File $phpcsFile, int $pointer) : ?int {
    $pointers = self::getUseStatementPointers($phpcsFile, 0);
    foreach (array_reverse($pointers) as $pointerBeforeUseStatements) {
        if ($pointerBeforeUseStatements < $pointer) {
            return $pointerBeforeUseStatements;
        }
    }
    return null;
}

API Navigation

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