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