src/class-wp-register.php
protected static function compress_files( $content ) {

		$var = array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    ' );

		$content = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $content );

		$content = str_replace( $var, '', $content );
		$content = str_replace( '{ ', '{', $content );
		$content = str_replace( ' }', '}', $content );
		$content = str_replace( '; ', ';', $content );

		return $content;
	}
protected static function compress_files( $content ) {

		$var = array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    ' );

		$content = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $content );

		$content = str_replace( $var, '', $content );
		$content = str_replace( '{ ', '{', $content );
		$content = str_replace( ' }', '}', $content );
		$content = str_replace( '; ', ';', $content );

		return $content;
	}
protected static function compress_files ( $ content ) { $ var = array ( "\r\n" , "\r" , "\n" , "\t" , '  ' , '    ' , '    ' ) ; $ content = preg_replace ( '!/\*[^*]*\*+([^/][^*]*\*+)*/!' , '' , $ content ) ; $ content = str_replace ( $ var , '' , $ content ) ; $ content = str_replace ( '{ ' , '{' , $ content ) ; $ content = str_replace ( ' }' , '}' , $ content ) ; $ content = str_replace ( '; ' , ';' , $ content ) ; return $ content ; }
File minifier.

@since 1.0.4

@author powerbuoy (https://github.com/powerbuoy)

@param string $content → file content.

@return array → unified parameters
File minifier .