Inpsyde\MultilingualPress\Asset\DebugAwareAssetURL::get_minified_file PHP Method

get_minified_file() private method

Returns the given file with inserted ".min" infix, if not already minified file.
private get_minified_file ( string $file ) : string
$file string Normal file name (e.g., admin.css).
return string Minified file.
    private function get_minified_file($file)
    {
        // Check for already minified file.
        if (preg_match('~\\.min\\.[^.]+$~', $file)) {
            return $file;
        }
        return preg_replace('~\\.[^.]+$~', '.min$0', $file);
    }