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