Code Duplication    Length = 10-10 lines in 2 locations

classes/autoptimizeStyles.php 2 locations

@@ 95-104 (lines=10) @@
92
        $this->content = $this->hide_noptimize($this->content);
93
        
94
        // exclude (no)script, as those may contain CSS which should be left as is
95
        if ( strpos( $this->content, '<script' ) !== false ) { 
96
            $this->content = preg_replace_callback(
97
                '#<(?:no)?script.*?<\/(?:no)?script>#is',
98
                create_function(
99
                    '$matches',
100
                    'return "%%SCRIPT%%".base64_encode($matches[0])."%%SCRIPT%%";'
101
                ),
102
                $this->content
103
            );
104
        }
105
106
        // Save IE hacks
107
        $this->content = $this->hide_iehacks($this->content);
@@ 477-486 (lines=10) @@
474
        $this->content = $this->restore_comments($this->content);
475
        
476
        // restore (no)script
477
        if ( strpos( $this->content, '%%SCRIPT%%' ) !== false ) { 
478
            $this->content = preg_replace_callback(
479
                '#%%SCRIPT%%(.*?)%%SCRIPT%%#is',
480
                create_function(
481
                    '$matches',
482
                    'return base64_decode($matches[1]);'
483
                ),
484
                $this->content
485
            );
486
        }
487
488
        // restore noptimize
489
        $this->content = $this->restore_noptimize($this->content);