PluginProbe
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript / trunk
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript vtrunk
trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.4 1.5 1.5.1 1.6 2.0 2.0.1
wp-super-minify / includes / min / lib / Minify / SourceSet.php

SourceSet.php in WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript trunk, at includes/min/lib/Minify/SourceSet.php

32 lines 590 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Minify_SourceSet
4 * @package Minify
5 */
6
7 /**
8 * @package Minify
9 */
10 class Minify_SourceSet
11 {
12
13 /**
14 * Get unique string for a set of sources
15 *
16 * @param Minify_SourceInterface[] $sources Minify_Source instances
17 *
18 * @return string
19 */
20 public static function getDigest($sources)
21 {
22 $info = array();
23 foreach ($sources as $source) {
24 $info[] = array(
25 $source->getId(), $source->getMinifier(), $source->getMinifierOptions()
26 );
27 }
28
29 return md5(serialize($info));
30 }
31 }
32