src/WPConfigTransformer.php
protected function format_value( $value, $raw ) {
		if ( $raw && '' === trim( $value ) ) {
			throw new Exception( 'Raw value for empty string not supported.' );
		}

		return ( $raw ) ? $value : var_export( $value, true );
	}
protected function format_value( $value, $raw ) {
		if ( $raw && '' === trim( $value ) ) {
			throw new Exception( 'Raw value for empty string not supported.' );
		}

		return ( $raw ) ? $value : var_export( $value, true );
	}
protected function format_value ( $ value , $ raw ) { if ( $ raw && '' === trim ( $ value ) ) { throw new Exception ( 'Raw value for empty string not supported.' ) ; } return ( $ raw ) ? $ value : var_export ( $ value , true ) ; }
Applies formatting to a config value.

@throws Exception When a raw value is requested for an empty string.

@param string $value Config value.
@param bool   $raw   Display value in raw format without quotes.

@return mixed
Applies formatting to a config value .