You are here

public function MethodScopeSniff::__construct in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Scope/MethodScopeSniff.php \Drupal\Sniffs\Scope\MethodScopeSniff::__construct()
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Scope/MethodScopeSniff.php \Drupal\Sniffs\Scope\MethodScopeSniff::__construct()

Constructs a \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\MethodScopeSniff.

File

coder_sniffer/Drupal/Sniffs/Scope/MethodScopeSniff.php, line 35

Class

MethodScopeSniff
Verifies that class/interface/trait methods have scope modifiers.

Namespace

Drupal\Sniffs\Scope

Code

public function __construct() {
  parent::__construct(array(
    T_CLASS,
    T_INTERFACE,
    T_TRAIT,
  ), array(
    T_FUNCTION,
  ));
}