Code Duplication    Length = 7-7 lines in 2 locations

htdocs/xoops_lib/Xoops/Core/Assets.php 2 locations

@@ 223-229 (lines=7) @@
220
            }
221
        }
222
223
        if (!is_array($filters)) {
224
            if (empty($filters)) {
225
                $filters = array();
226
            } else {
227
                $filters = explode(',', str_replace(' ', '', $filters));
228
            }
229
        }
230
231
        if (isset($this->default_output[$type])) {
232
            $output = $this->default_output[$type];
@@ 378-384 (lines=7) @@
375
                }
376
            }
377
378
            if (!is_array($filters)) {
379
                if (empty($filters)) {
380
                    $filters = array();
381
                } else {
382
                    $filters = explode(',', str_replace(' ', '', $filters));
383
                }
384
            }
385
            foreach ($filters as $filter) {
386
                if (is_object($filter) && $filter instanceof $this->filterInterface) {
387
                    $filterArray[] = $filter;