public function getCssContent(string $fileName, bool $minify): string
    {
        $content = file_get_contents($fileName);

        if ($content === false) {
            throw new RuntimeException(sprintf('File could be read: %s', $fileName));
        }

        if ($minify === true) {
            $compressor = new CssMinifier();
            $content = $compressor->run($content);
        }

        return $content;
    }
public function getCssContent(string $fileName, bool $minify): string
    {
        $content = file_get_contents($fileName);

        if ($content === false) {
            throw new RuntimeException(sprintf('File could be read: %s', $fileName));
        }

        if ($minify === true) {
            $compressor = new CssMinifier();
            $content = $compressor->run($content);
        }

        return $content;
    }
public function getCssContent ( string $ fileName , bool $ minify ) : string { $ content = file_get_contents ( $ fileName ) ; if ( $ content === false ) { throw new RuntimeException ( sprintf ( 'File could be read: %s' , $ fileName ) ) ; } if ( $ minify === true ) { $ compressor = new CssMinifier ( ) ; $ content = $ compressor -> run ( $ content ) ; } return $ content ; }
Minimize CSS.

@param string $fileName Name of default CSS file
@param bool $minify Minify css if true

@throws RuntimeException

@return string CSS code
Minimize CSS .