private function record_potential_prefix_metric( $stackPtr, $construct_name ) {
		if ( preg_match( '`^([A-Z]*[a-z0-9]*+)`', ltrim( $construct_name, '\$_' ), $matches ) > 0
			&& isset( $matches[1] ) && '' !== $matches[1]
		) {
			$this->phpcsFile->recordMetric( $stackPtr, 'Prefix all globals: potential prefixes - start of non-prefixed construct', strtolower( $matches[1] ) );
		}
	}
private function record_potential_prefix_metric( $stackPtr, $construct_name ) {
		if ( preg_match( '`^([A-Z]*[a-z0-9]*+)`', ltrim( $construct_name, '\$_' ), $matches ) > 0
			&& isset( $matches[1] ) && '' !== $matches[1]
		) {
			$this->phpcsFile->recordMetric( $stackPtr, 'Prefix all globals: potential prefixes - start of non-prefixed construct', strtolower( $matches[1] ) );
		}
	}
private function record_potential_prefix_metric ( $ stackPtr , $ construct_name ) { if ( preg_match ( '`^([A-Z]*[a-z0-9]*+)`' , ltrim ( $ construct_name , '\$_' ) , $ matches ) > 0 && isset ( $ matches [ 1 ] ) && '' !== $ matches [ 1 ] ) { $ this -> phpcsFile -> recordMetric ( $ stackPtr , 'Prefix all globals: potential prefixes - start of non-prefixed construct' , strtolower ( $ matches [ 1 ] ) ) ; } }
Record the "potential prefix" metric.

@since 1.0.1

@param int    $stackPtr       The position of the token to record the metric against.
@param string $construct_name Name of the global construct to try and distill a potential prefix from.

@return void
Record the potential prefix metric .