Code Duplication    Length = 6-7 lines in 2 locations

wp-admin/includes/class-wp-press-this.php 2 locations

@@ 605-610 (lines=6) @@
602
					continue;
603
				}
604
605
				if ( preg_match( '/src=(\'|")([^\'"]+)\\1/i', $value, $new_matches ) ) {
606
					$src = $this->_limit_img( $new_matches[2] );
607
					if ( ! empty( $src ) && ! in_array( $src, $data['_images'] ) ) {
608
						$data['_images'][] = $src;
609
					}
610
				}
611
			}
612
		}
613
@@ 623-629 (lines=7) @@
620
			$items = $this->_limit_array( $matches[0] );
621
622
			foreach ( $items as $value ) {
623
				if ( preg_match( '/src=(\'|")([^\'"]+)\\1/', $value, $new_matches ) ) {
624
					$src = $this->_limit_embed( $new_matches[2] );
625
626
					if ( ! empty( $src ) && ! in_array( $src, $data['_embeds'] ) ) {
627
						$data['_embeds'][] = $src;
628
					}
629
				}
630
			}
631
		}
632