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

Breadcrumb

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

function UnusedUsesSniff::firstPointerBefore

*

Parameters

list<int> $pointersBeforeUseStatements:

1 call to UnusedUsesSniff::firstPointerBefore()
UnusedUsesSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php, line 283

Class

UnusedUsesSniff

Namespace

SlevomatCodingStandard\Sniffs\Namespaces

Code

private function firstPointerBefore(int $pointer, array $pointersBeforeUseStatements, int $startPointer) : int {
    foreach ($pointersBeforeUseStatements as $pointerBeforeUseStatements) {
        if ($pointerBeforeUseStatements < $pointer) {
            return $pointerBeforeUseStatements;
        }
    }
    return $startPointer;
}

API Navigation

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