public function process_parameters( $stackPtr, $group_name, $matched_content, $parameters ) {
		$function_name = strtolower( $matched_content );
		$target_param  = $this->target_functions[ $function_name ];

		// Was the target parameter passed ?
		if ( ! isset( $parameters[ $target_param ] ) ) {
			return;
		}

		$raw_content = $this->strip_quotes( $parameters[ $target_param ]['raw'] );

		if ( isset( $this->discouraged_constants[ $raw_content ] ) ) {
			$this->phpcsFile->addWarning(
				'Found declaration of constant "%s". Use %s instead.',
				$stackPtr,
				$this->string_to_errorcode( $raw_content . 'DeclarationFound' ),
				array(
					$raw_content,
					$this->discouraged_constants[ $raw_content ],
				)
			);
		}
	}
public function process_parameters( $stackPtr, $group_name, $matched_content, $parameters ) {
		$function_name = strtolower( $matched_content );
		$target_param  = $this->target_functions[ $function_name ];

		// Was the target parameter passed ?
		if ( ! isset( $parameters[ $target_param ] ) ) {
			return;
		}

		$raw_content = $this->strip_quotes( $parameters[ $target_param ]['raw'] );

		if ( isset( $this->discouraged_constants[ $raw_content ] ) ) {
			$this->phpcsFile->addWarning(
				'Found declaration of constant "%s". Use %s instead.',
				$stackPtr,
				$this->string_to_errorcode( $raw_content . 'DeclarationFound' ),
				array(
					$raw_content,
					$this->discouraged_constants[ $raw_content ],
				)
			);
		}
	}
public function process_parameters ( $ stackPtr , $ group_name , $ matched_content , $ parameters ) { $ function_name = strtolower ( $ matched_content ) ; $ target_param = $ this -> target_functions [ $ function_name ] ; // Was the target parameter passed ? if ( ! isset ( $ parameters [ $ target_param ] ) ) { return ; } $ raw_content = $ this -> strip_quotes ( $ parameters [ $ target_param ] [ 'raw' ] ) ; if ( isset ( $ this -> discouraged_constants [ $ raw_content ] ) ) { $ this -> phpcsFile -> addWarning ( 'Found declaration of constant "%s". Use %s instead.' , $ stackPtr , $ this -> string_to_errorcode ( $ raw_content . 'DeclarationFound' ) , array ( $ raw_content , $ this -> discouraged_constants [ $ raw_content ] , ) ) ; } }
Process the parameters of a matched `define` function call.

@since 0.14.0

@param int    $stackPtr        The position of the current token in the stack.
@param array  $group_name      The name of the group which was matched.
@param string $matched_content The token content (function name) which was matched.
@param array  $parameters      Array with information about the parameters.

@return void
Process the parameters of a matched define function call .