PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.2.22
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.2.22
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / mrclay / minify / lib / Minify / SourceSet.php

SourceSet.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.2.22, at vendor/mrclay/minify/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