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', '', $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 ) {

classlesses/autoptimizeExtra.php 1 location

@@ 95-97 (lines=3) @@
92
    
93
    // get exclusions
94
    $AO_JSexclArrayIn = array();
95
    if (!empty($in)) {
96
        $AO_JSexclArrayIn = array_fill_keys(array_filter(array_map('trim',explode(",",$in))),"");
97
    }
98
    
99
    // get asyncs
100
    $_fromSetting = $autoptimize_extra_options['autoptimize_extra_text_field_3'];

classes/autoptimizeStyles.php 1 location

@@ 35-37 (lines=3) @@
32
        }
33
        
34
        $removableCSS = apply_filters( 'autoptimize_filter_css_removables','' );
35
        if (!empty($removableCSS)) {
36
            $this->cssremovables = array_filter(array_map('trim',explode(",",$removableCSS)));
37
        }
38
39
        $this->cssinlinesize = apply_filters('autoptimize_filter_css_inlinesize',256);
40