Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 862-866 (lines=5) @@
859
860
		$block_def = self::get_block_definition( $block['name'] );
861
862
		if ( isset( $block_def['content'] ) && count( $block_def['content'] ) > 0 ) {
863
			$tags = $block_def['content'];
864
		} else {
865
			$tags = array( 'content' );
866
		}
867
868
		$tag_content = self::extract_tag_content_from_html( $tags, $block['block']['innerHTML'] );
869
@@ 1071-1075 (lines=5) @@
1068
		}
1069
1070
		// Find out which tags we need to extract content from.
1071
		if ( isset( $block_def['content'] ) && count( $block_def['content'] ) > 0 ) {
1072
			$tags = $block_def['content'];
1073
		} else {
1074
			$tags = array( 'content' );
1075
		}
1076
1077
		$tag_values = self::extract_tag_content_from_html( $tags, $block['innerHTML'] );
1078