You are here

abstract public function FunctionDefinition::processFunction in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php \Drupal\Sniffs\Semantics\FunctionDefinition::processFunction()
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php \Drupal\Sniffs\Semantics\FunctionDefinition::processFunction()

Process this function definition.

Parameters

\PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.:

int $stackPtr The position of the function name in the stack.: name in the stack.

int $functionPtr The position of the function keyword in the stack.: keyword in the stack.

Return value

void

1 call to FunctionDefinition::processFunction()
FunctionDefinition::process in coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php
Processes this test, when one of its tokens is encountered.
9 methods override FunctionDefinition::processFunction()
AccessAdminPagesSniff::processFunction in coder_sniffer/DrupalPractice/Sniffs/General/AccessAdminPagesSniff.php
Process this function definition.
AccessHookMenuSniff::processFunction in coder_sniffer/DrupalPractice/Sniffs/FunctionDefinitions/AccessHookMenuSniff.php
Process this function definition.
EmptyInstallSniff::processFunction in coder_sniffer/Drupal/Sniffs/Semantics/EmptyInstallSniff.php
Process this function definition.
FormAlterDocSniff::processFunction in coder_sniffer/DrupalPractice/Sniffs/FunctionDefinitions/FormAlterDocSniff.php
Process this function definition.
HookInitCssSniff::processFunction in coder_sniffer/DrupalPractice/Sniffs/FunctionDefinitions/HookInitCssSniff.php
Process this function definition.

... See full list

File

coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php, line 76

Class

FunctionDefinition
Helper class to sniff for function definitions.

Namespace

Drupal\Sniffs\Semantics

Code

public abstract function processFunction(File $phpcsFile, $stackPtr, $functionPtr);