Code Duplication    Length = 4-4 lines in 2 locations

classes/autoptimizeScripts.php 2 locations

@@ 329-332 (lines=4) @@
326
327
                if ( preg_match( '#<script[^>]*src=("|\')([^>]*)("|\')#Usmi', $tag, $source ) ) {
328
                    // non-inline script.
329
                    if ( $this->isremovable( $tag, $this->jsremovables ) ) {
330
                        $this->content = str_replace( $tag, '', $this->content );
331
                        continue;
332
                    }
333
334
                    $orig_tag = null;
335
                    $url      = current( explode( '?', $source[2], 2 ) );
@@ 400-403 (lines=4) @@
397
                    }
398
                } else {
399
                    // Inline script.
400
                    if ( $this->isremovable( $tag, $this->jsremovables ) ) {
401
                        $this->content = str_replace( $tag, '', $this->content );
402
                        continue;
403
                    }
404
405
                    // unhide comments, as javascript may be wrapped in comment-tags for old times' sake.
406
                    $tag = $this->restore_comments( $tag );