Code Duplication    Length = 5-5 lines in 2 locations

classes/autoptimizeScripts.php 1 location

@@ 40-44 (lines=5) @@
37
        }
38
39
        // only header?
40
        if( apply_filters('autoptimize_filter_js_justhead', $options['justhead']) == true ) {
41
            $content = explode('</head>',$this->content,2);
42
            $this->content = $content[0].'</head>';
43
            $this->restofcontent = $content[1];
44
        }
45
        
46
        // include inline?
47
        if( apply_filters('autoptimize_js_include_inline', $options['include_inline']) == true ) {

classes/autoptimizeStyles.php 1 location

@@ 50-54 (lines=5) @@
47
        $this->inject_min_late = apply_filters('autoptimize_filter_css_inject_min_late',true);
48
49
        // Remove everything that's not the header
50
        if ( apply_filters('autoptimize_filter_css_justhead',$options['justhead']) == true ) {
51
            $content = explode('</head>',$this->content,2);
52
            $this->content = $content[0].'</head>';
53
            $this->restofcontent = $content[1];
54
        }
55
56
        // include inline?
57
        if( apply_filters('autoptimize_css_include_inline',$options['include_inline']) == true ) {