WordPress/Sniffs/WP/CapitalPDangitSniff.php
public function register() {
		// Union the arrays - keeps the array keys.
		$this->text_and_comment_tokens = ( $this->text_string_tokens + $this->comment_text_tokens );

		$targets = ( $this->text_and_comment_tokens + Tokens::$ooScopeTokens );

		// Also sniff for array tokens to make skipping anything within those more efficient.
		$targets[ \T_ARRAY ]            = \T_ARRAY;
		$targets[ \T_OPEN_SHORT_ARRAY ] = \T_OPEN_SHORT_ARRAY;

		return $targets;
	}
public function register() {
		// Union the arrays - keeps the array keys.
		$this->text_and_comment_tokens = ( $this->text_string_tokens + $this->comment_text_tokens );

		$targets = ( $this->text_and_comment_tokens + Tokens::$ooScopeTokens );

		// Also sniff for array tokens to make skipping anything within those more efficient.
		$targets[ \T_ARRAY ]            = \T_ARRAY;
		$targets[ \T_OPEN_SHORT_ARRAY ] = \T_OPEN_SHORT_ARRAY;

		return $targets;
	}
Returns an array of tokens this test wants to listen for.

@since 0.12.0

@return array