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

Breadcrumb

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

function FunctionHelper::getName

10 calls to FunctionHelper::getName()
ClassStructureSniff::getGroupForToken in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/ClassStructureSniff.php
DisallowEmptyFunctionSniff::process in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/DisallowEmptyFunctionSniff.php
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
FunctionHelper::getAllFunctionNames in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php
*
FunctionHelper::getFullyQualifiedName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php
FunctionHelper::getValidParametersAnnotations in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php
*

... See full list

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/FunctionHelper.php, line 102

Class

FunctionHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getName(File $phpcsFile, int $functionPointer) : string {
    $tokens = $phpcsFile->getTokens();
    return $tokens[TokenHelper::findNext($phpcsFile, T_STRING, $functionPointer + 1, $tokens[$functionPointer]['parenthesis_opener'])]['content'];
}
RSS feed
Powered by Drupal