Code Duplication    Length = 10-10 lines in 2 locations

classes/autoptimizeStyles.php 2 locations

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