| @@ 154-166 (lines=13) @@ | ||
| 151 | ||
| 152 | $toMinify = []; |
|
| 153 | ||
| 154 | foreach ($cssFiles as $file => $html) { |
|
| 155 | if ($this->thisFileNeedMinify($file, $html)) { |
|
| 156 | $toMinify[$file] = $html; |
|
| 157 | } else { |
|
| 158 | if (!empty($toMinify)) { |
|
| 159 | $this->processMinifyCss($toMinify); |
|
| 160 | ||
| 161 | $toMinify = []; |
|
| 162 | } |
|
| 163 | ||
| 164 | $this->cssFiles[$file] = $html; |
|
| 165 | } |
|
| 166 | } |
|
| 167 | ||
| 168 | if (!empty($toMinify)) { |
|
| 169 | $this->processMinifyCss($toMinify); |
|
| @@ 265-277 (lines=13) @@ | ||
| 262 | ||
| 263 | $toMinify = []; |
|
| 264 | ||
| 265 | foreach ($files as $file => $html) { |
|
| 266 | if ($this->thisFileNeedMinify($file, $html)) { |
|
| 267 | $toMinify[$file] = $html; |
|
| 268 | } else { |
|
| 269 | if (!empty($toMinify)) { |
|
| 270 | $this->processMinifyJs($position, $toMinify); |
|
| 271 | ||
| 272 | $toMinify = []; |
|
| 273 | } |
|
| 274 | ||
| 275 | $this->jsFiles[$position][$file] = $html; |
|
| 276 | } |
|
| 277 | } |
|
| 278 | ||
| 279 | if (!empty($toMinify)) { |
|
| 280 | $this->processMinifyJs($position, $toMinify); |
|