public function MethodScopeSniff::__construct in Coder 8.2
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Scope/MethodScopeSniff.php \Drupal\Sniffs\Scope\MethodScopeSniff::__construct()
- 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\ScopeCode
public function __construct() {
parent::__construct(array(
T_CLASS,
T_INTERFACE,
T_TRAIT,
), array(
T_FUNCTION,
));
}