Code Duplication    Length = 13-13 lines in 2 locations

View.php 2 locations

@@ 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);
@@ 252-264 (lines=13) @@
249
250
                    $toMinify = [];
251
252
                    foreach ($files as $file => $html) {
253
                        if ($this->thisFileNeedMinify($file, $html)) {
254
                            $toMinify[$file] = $html;
255
                        } else {
256
                            if (!empty($toMinify)) {
257
                                $this->processMinifyJs($position, $toMinify);
258
259
                                $toMinify = [];
260
                            }
261
262
                            $this->jsFiles[$position][$file] = $html;
263
                        }
264
                    }
265
266
                    if (!empty($toMinify)) {
267
                        $this->processMinifyJs($position, $toMinify);