You are here

public function ScopeClosingBraceSniff::register in Coder 8.3

Same name and namespace in other branches
  1. 8.2 coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php \Drupal\Sniffs\WhiteSpace\ScopeClosingBraceSniff::register()
  2. 8.3.x coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php \Drupal\Sniffs\WhiteSpace\ScopeClosingBraceSniff::register()

Returns an array of tokens this test wants to listen for.

Return value

array<int|string>

File

coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php, line 42

Class

ScopeClosingBraceSniff
Copied from \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff to allow empty methods and classes.

Namespace

Drupal\Sniffs\WhiteSpace

Code

public function register() {
  return Tokens::$scopeOpeners;
}