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

Breadcrumb

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

function OpeningFunctionBraceKernighanRitchieSniff::register

Registers the tokens that this sniff wants to listen for.

Return value

array<int|string>

Overrides Sniff::register

File

vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php, line 39

Class

OpeningFunctionBraceKernighanRitchieSniff

Namespace

PHP_CodeSniffer\Standards\Generic\Sniffs\Functions

Code

public function register() {
    return [
        T_FUNCTION,
        T_CLOSURE,
    ];
}
RSS feed
Powered by Drupal