Code Duplication    Length = 4-4 lines in 2 locations

classes/autoptimizeScripts.php 2 locations

@@ 112-115 (lines=4) @@
109
110
                if (preg_match('#<script[^>]*src=("|\')([^>]*)("|\')#Usmi',$tag,$source)) {
111
                    // non-inline script
112
                    if ($this->isremovable($tag,$this->jsremovables)) {
113
                        $this->content = str_replace($tag,'',$this->content);
114
                        continue;
115
                    }
116
                    $explUrl = explode('?',$source[2],2);
117
                    $url = $explUrl[0];
118
                    $path = $this->getpath($url);
@@ 171-174 (lines=4) @@
168
                    }
169
                } else {
170
                    // Inline script
171
                    if ($this->isremovable($tag,$this->jsremovables)) {
172
                        $this->content = str_replace($tag,'',$this->content);
173
                        continue;
174
                    }
175
                    
176
                    // unhide comments, as javascript may be wrapped in comment-tags for old times' sake
177
                    $tag = $this->restore_comments($tag);