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);
@@ 505-514 (lines=10) @@
502
        $this->content = $this->restore_comments($this->content);
503
        
504
        // restore (no)script
505
        if ( strpos( $this->content, '%%SCRIPT%%' ) !== false ) { 
506
            $this->content = preg_replace_callback(
507
                '#%%SCRIPT%%(.*?)%%SCRIPT%%#is',
508
                create_function(
509
                    '$matches',
510
                    'return base64_decode($matches[1]);'
511
                ),
512
                $this->content
513
            );
514
        }
515
516
        // restore noptimize
517
        $this->content = $this->restore_noptimize($this->content);