public function ClassCreateInstanceSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php \Drupal\Sniffs\Classes\ClassCreateInstanceSniff::register()
- 8.2 coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php \Drupal\Sniffs\Classes\ClassCreateInstanceSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ Classes/ ClassCreateInstanceSniff.php, line 34
Class
- ClassCreateInstanceSniff
- Class create instance Test.
Namespace
Drupal\Sniffs\ClassesCode
public function register() {
return [
T_NEW,
];
}