You are here

public function ClassCreateInstanceSniff::register in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php \Drupal\Sniffs\Classes\ClassCreateInstanceSniff::register()
  2. 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\Classes

Code

public function register() {
  return [
    T_NEW,
  ];
}