Code Duplication    Length = 5-5 lines in 2 locations

_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
@@ 1056-1060 (lines=5) @@
1053
		}
1054
1055
		// Find out which tags we need to extract content from.
1056
		if ( isset( $block_def['content'] ) && count( $block_def['content'] ) > 0 ) {
1057
			$tags = $block_def['content'];
1058
		} else {
1059
			$tags = array( 'content' );
1060
		}
1061
1062
		$tag_values = self::extract_tag_content_from_html( $tags, $block['innerHTML'] );
1063