/home/sharedstore/public_html/prestashop.sharedstore.ma/vendor/mrclay/minify/lib/Minify
NameSizeModeActions
Cache/-0755rm
Controller/-0755rm
CSS/-0755rm
HTML/-0755rm
JS/-0755rm
Logger/-0755rm
Source/-0755rm
App.php97650644editdlrm
Build.php26700644editdlrm
CacheInterface.php11530644editdlrm
ClosureCompiler.php61700644editdlrm
CommentPreserver.php26170644editdlrm
Config.php10630644editdlrm
ControllerInterface.php4110644editdlrm
CSS.php32590644editdlrm
CSSmin.php27330644editdlrm
DebugDetector.php7840644editdlrm
Env.php32110644editdlrm
HTML.php82560644editdlrm
ImportProcessor.php74680644editdlrm
LessCssSource.php28900644editdlrm
Lines.php63780644editdlrm
NailgunClosureCompiler.php28010644editdlrm
Packer.php8040644editdlrm
ScssCssSource.php41420644editdlrm
ServeConfiguration.php14510644editdlrm
Source.php54510644editdlrm
SourceInterface.php14280644editdlrm
SourceSet.php5900644editdlrm
YUICompressor.php46330644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/vendor/mrclay/minify/lib/Minify/CSSmin.php (2733B)
*/ class Minify_CSSmin { /** * Minify a CSS string * * @param string $css * * @param array $options available options: * * 'removeCharsets': (default true) remove all @charset at-rules * * 'prependRelativePath': (default null) if given, this string will be * prepended to all relative URIs in import/url declarations * * 'currentDir': (default null) if given, this is assumed to be the * directory of the current CSS file. Using this, minify will rewrite * all relative URIs in import/url declarations to correctly point to * the desired files. For this to work, the files *must* exist and be * visible by the PHP process. * * 'symlinks': (default = array()) If the CSS file is stored in * a symlink-ed directory, provide an array of link paths to * target paths, where the link paths are within the document root. Because * paths need to be normalized for this to work, use "//" to substitute * the doc root in the link paths (the array keys). E.g.: * * array('//symlink' => '/real/target/path') // unix * array('//static' => 'D:\\staticStorage') // Windows * * * 'docRoot': (default = $_SERVER['DOCUMENT_ROOT']) * see Minify_CSS_UriRewriter::rewrite * * @return string */ public static function minify($css, $options = array()) { $options = array_merge(array( 'compress' => true, 'removeCharsets' => true, 'currentDir' => null, 'docRoot' => $_SERVER['DOCUMENT_ROOT'], 'prependRelativePath' => null, 'symlinks' => array(), ), $options); if ($options['removeCharsets']) { $css = preg_replace('/@charset[^;]+;\\s*/', '', $css); } if ($options['compress']) { $obj = new CSSmin(); $css = $obj->run($css); } if (! $options['currentDir'] && ! $options['prependRelativePath']) { return $css; } if ($options['currentDir']) { return Minify_CSS_UriRewriter::rewrite( $css, $options['currentDir'], $options['docRoot'], $options['symlinks'] ); } return Minify_CSS_UriRewriter::prepend( $css, $options['prependRelativePath'] ); } }