Code Duplication    Length = 3-3 lines in 2 locations

classes/autoptimizeScripts.php 1 location

@@ 35-37 (lines=3) @@
32
33
        // is there JS we should simply remove
34
        $removableJS = apply_filters( 'autoptimize_filter_js_removables', '', $this->content );
35
        if (!empty($removableJS)) {
36
            $this->jsremovables = array_filter(array_map('trim',explode(",",$removableJS)));
37
        }
38
39
        // only header?
40
        if( apply_filters('autoptimize_filter_js_justhead', $options['justhead']) == true ) {

classes/autoptimizeStyles.php 1 location

@@ 57-59 (lines=3) @@
54
            $removableCSS = "";
55
        }
56
        $removableCSS = apply_filters( 'autoptimize_filter_css_removables', $removableCSS);
57
        if (!empty($removableCSS)) {
58
            $this->cssremovables = array_filter(array_map('trim',explode(",",$removableCSS)));
59
        }
60
61
        $this->cssinlinesize = apply_filters('autoptimize_filter_css_inlinesize',256);
62