Code Duplication    Length = 3-3 lines in 2 locations

classes/autoptimizeStyles.php 2 locations

@@ 189-191 (lines=3) @@
186
                        } else {
187
                            // Link is dynamic (.php etc).
188
                            $new_tag = $this->optionally_defer_excluded( $tag, 'none' );
189
                            if ( $new_tag !== '' && $new_tag !== $tag ) {
190
                                $this->content = str_replace( $tag, $new_tag, $this->content );
191
                            }
192
                            $tag = '';
193
                        }
194
                    } else {
@@ 237-239 (lines=3) @@
234
                        $new_tag = $this->optionally_defer_excluded( $new_tag, $url );
235
236
                        // And replace!
237
                        if ( $new_tag !== '' && $new_tag !== $tag ) {
238
                            $this->content = str_replace( $tag, $new_tag, $this->content );
239
                        }
240
                    }
241
                }
242
            }