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 ) {

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

classlesses/autoptimizeExtra.php 1 location

@@ 105-107 (lines=3) @@
102
    
103
    // get exclusions
104
    $AO_JSexclArrayIn = array();
105
    if (!empty($in)) {
106
        $AO_JSexclArrayIn = array_fill_keys(array_filter(array_map('trim',explode(",",$in))),"");
107
    }
108
    
109
    // get asyncs
110
    $_fromSetting = $autoptimize_extra_options['autoptimize_extra_text_field_3'];