public function OpenTagNewlineSniff::register in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/WhiteSpace/OpenTagNewlineSniff.php \Drupal\Sniffs\WhiteSpace\OpenTagNewlineSniff::register()
- 8.2 coder_sniffer/Drupal/Sniffs/WhiteSpace/OpenTagNewlineSniff.php \Drupal\Sniffs\WhiteSpace\OpenTagNewlineSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
Drupal/ Sniffs/ WhiteSpace/ OpenTagNewlineSniff.php, line 31
Class
- OpenTagNewlineSniff
- Checks that there is exactly one newline after the PHP open tag.
Namespace
Drupal\Sniffs\WhiteSpaceCode
public function register() {
return [
T_OPEN_TAG,
];
}