WordPress/Sniffs/WP/I18nSniff.php
public function process_token( $stack_ptr ) {

		// Reset defaults.
		$this->text_domain_contains_default = false;
		$this->text_domain_is_default       = false;

		// Allow overruling the text_domain set in a ruleset via the command line.
		$cl_text_domain = trim( PHPCSHelper::get_config_data( 'text_domain' ) );
		if ( ! empty( $cl_text_domain ) ) {
			$this->text_domain = array_filter( array_map( 'trim', explode( ',', $cl_text_domain ) ) );
		}

		$this->text_domain = $this->merge_custom_array( $this->text_domain, array(), false );

		if ( ! empty( $this->text_domain ) ) {
			if ( \in_array( 'default', $this->text_domain, true ) ) {
				$this->text_domain_contains_default = true;
				if ( \count( $this->text_domain ) === 1 ) {
					$this->text_domain_is_default = true;
				}
			}
		}

		// Prevent exclusion of the i18n group.
		$this->exclude = array();

		parent::process_token( $stack_ptr );
	}
public function process_token( $stack_ptr ) {

		// Reset defaults.
		$this->text_domain_contains_default = false;
		$this->text_domain_is_default       = false;

		// Allow overruling the text_domain set in a ruleset via the command line.
		$cl_text_domain = trim( PHPCSHelper::get_config_data( 'text_domain' ) );
		if ( ! empty( $cl_text_domain ) ) {
			$this->text_domain = array_filter( array_map( 'trim', explode( ',', $cl_text_domain ) ) );
		}

		$this->text_domain = $this->merge_custom_array( $this->text_domain, array(), false );

		if ( ! empty( $this->text_domain ) ) {
			if ( \in_array( 'default', $this->text_domain, true ) ) {
				$this->text_domain_contains_default = true;
				if ( \count( $this->text_domain ) === 1 ) {
					$this->text_domain_is_default = true;
				}
			}
		}

		// Prevent exclusion of the i18n group.
		$this->exclude = array();

		parent::process_token( $stack_ptr );
	}
Processes this test, when one of its tokens is encountered.

@since 1.0.0 Defers to the abstractFunctionRestriction sniff for determining
whether something is a function call. The logic after that has
been split off to the `process_matched_token()` method.

@param int $stack_ptr The position of the current token in the stack.

@return void