Code Duplication    Length = 13-13 lines in 2 locations

View.php 2 locations

@@ 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);
@@ 262-274 (lines=13) @@
259
260
                    $toMinify = [];
261
262
                    foreach ($files as $file => $html) {
263
                        if ($this->thisFileNeedMinify($file, $html)) {
264
                            $toMinify[$file] = $html;
265
                        } else {
266
                            if (!empty($toMinify)) {
267
                                $this->processMinifyJs($position, $toMinify);
268
269
                                $toMinify = [];
270
                            }
271
272
                            $this->jsFiles[$position][$file] = $html;
273
                        }
274
                    }
275
276
                    if (!empty($toMinify)) {
277
                        $this->processMinifyJs($position, $toMinify);