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

Breadcrumb

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

function NamespaceHelper::isFullyQualifiedPointer

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

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/NamespaceHelper.php, line 62

Class

NamespaceHelper
Terms "unqualified", "qualified" and "fully qualified" have the same meaning as described here: http://php.net/manual/en/language.namespaces.rules.php

Namespace

SlevomatCodingStandard\Helpers

Code

public static function isFullyQualifiedPointer(File $phpcsFile, int $pointer) : bool {
    return in_array($phpcsFile->getTokens()[$pointer]['code'], [
        T_NS_SEPARATOR,
        T_NAME_FULLY_QUALIFIED,
    ], true);
}

API Navigation

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