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

@@ 67-71 (lines=5) @@
64
        $this->inject_min_late = apply_filters('autoptimize_filter_css_inject_min_late',true);
65
66
        // Remove everything that's not the header
67
        if ( apply_filters('autoptimize_filter_css_justhead',$options['justhead']) == true ) {
68
            $content = explode('</head>',$this->content,2);
69
            $this->content = $content[0].'</head>';
70
            $this->restofcontent = $content[1];
71
        }
72
73
        // include inline?
74
        if( apply_filters('autoptimize_css_include_inline',$options['include_inline']) == true ) {