Code Duplication    Length = 5-5 lines in 2 locations

_inc/lib/class-jetpack-tweetstorm-helper.php 2 locations

@@ 867-871 (lines=5) @@
864
865
		$block_def = self::get_block_definition( $block['name'] );
866
867
		if ( isset( $block_def['content'] ) && count( $block_def['content'] ) > 0 ) {
868
			$tags = $block_def['content'];
869
		} else {
870
			$tags = array( 'content' );
871
		}
872
873
		$tag_content = self::extract_tag_content_from_html( $tags, $block['block']['innerHTML'] );
874
@@ 1076-1080 (lines=5) @@
1073
		}
1074
1075
		// Find out which tags we need to extract content from.
1076
		if ( isset( $block_def['content'] ) && count( $block_def['content'] ) > 0 ) {
1077
			$tags = $block_def['content'];
1078
		} else {
1079
			$tags = array( 'content' );
1080
		}
1081
1082
		$tag_values = self::extract_tag_content_from_html( $tags, $block['innerHTML'] );
1083