public static function css_files(array $files) {
        if (empty($files)) {
            return '';
        }

        $compressed = array();
        foreach ($files as $file) {
            $content = file_get_contents($file);
            if ($content === false) {
                $compressed[] = "\n\n/* Cannot read CSS file ".basename(dirname(dirname($file))).'/'.basename(dirname($file)).'/'.basename($file)."*/\n\n";
                continue;
            }
            $compressed[] = self::css($content);
        }

        return implode("\n", $compressed);
    }
public static function css_files(array $files) {
        if (empty($files)) {
            return '';
        }

        $compressed = array();
        foreach ($files as $file) {
            $content = file_get_contents($file);
            if ($content === false) {
                $compressed[] = "\n\n/* Cannot read CSS file ".basename(dirname(dirname($file))).'/'.basename(dirname($file)).'/'.basename($file)."*/\n\n";
                continue;
            }
            $compressed[] = self::css($content);
        }

        return implode("\n", $compressed);
    }
public static function css_files ( array $ files ) { if ( empty ( $ files ) ) { return '' ; } $ compressed = array ( ) ; foreach ( $ files as $ file ) { $ content = file_get_contents ( $ file ) ; if ( $ content === false ) { $ compressed [ ] = "\n\n/* Cannot read CSS file " . basename ( dirname ( dirname ( $ file ) ) ) . '/' . basename ( dirname ( $ file ) ) . '/' . basename ( $ file ) . "*/\n\n" ; continue ; } $ compressed [ ] = self :: css ( $ content ) ; } return implode ( "\n" , $ compressed ) ; }
Minify CSS files.

@param array $files
@return string minified CSS code
Minify CSS files .