Code Duplication    Length = 3-3 lines in 3 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', '');
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 2 locations

@@ 28-30 (lines=3) @@
25
        if ($noptimizeCSS) return false;
26
27
        $whitelistCSS = apply_filters( 'autoptimize_filter_css_whitelist', '' );
28
        if (!empty($whitelistCSS)) {
29
            $this->whitelist = array_filter(array_map('trim',explode(",",$whitelistCSS)));
30
        }
31
        
32
        if ($options['nogooglefont'] == true) {
33
            $removableCSS = "fonts.googleapis.com";
@@ 38-40 (lines=3) @@
35
            $removableCSS = "";
36
        }
37
        $removableCSS = apply_filters( 'autoptimize_filter_css_removables', $removableCSS);
38
        if (!empty($removableCSS)) {
39
            $this->cssremovables = array_filter(array_map('trim',explode(",",$removableCSS)));
40
        }
41
42
        $this->cssinlinesize = apply_filters('autoptimize_filter_css_inlinesize',256);
43