| @@ 144-156 (lines=13) @@ | ||
| 141 | ||
| 142 | $toMinify = []; |
|
| 143 | ||
| 144 | foreach ($cssFiles as $file => $html) { |
|
| 145 | if ($this->thisFileNeedMinify($file, $html)) { |
|
| 146 | $toMinify[$file] = $html; |
|
| 147 | } else { |
|
| 148 | if (!empty($toMinify)) { |
|
| 149 | $this->processMinifyCss($toMinify); |
|
| 150 | ||
| 151 | $toMinify = []; |
|
| 152 | } |
|
| 153 | ||
| 154 | $this->cssFiles[$file] = $html; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | ||
| 158 | if (!empty($toMinify)) { |
|
| 159 | $this->processMinifyCss($toMinify); |
|
| @@ 251-263 (lines=13) @@ | ||
| 248 | ||
| 249 | $toMinify = []; |
|
| 250 | ||
| 251 | foreach ($files as $file => $html) { |
|
| 252 | if ($this->thisFileNeedMinify($file, $html)) { |
|
| 253 | $toMinify[$file] = $html; |
|
| 254 | } else { |
|
| 255 | if (!empty($toMinify)) { |
|
| 256 | $this->processMinifyJs($position, $toMinify); |
|
| 257 | ||
| 258 | $toMinify = []; |
|
| 259 | } |
|
| 260 | ||
| 261 | $this->jsFiles[$position][$file] = $html; |
|
| 262 | } |
|
| 263 | } |
|
| 264 | ||
| 265 | if (!empty($toMinify)) { |
|
| 266 | $this->processMinifyJs($position, $toMinify); |
|