Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1184-1186 (lines=3) @@
1181
	 * @return string The tweet URL. Empty string if there is none available.
1182
	 */
1183
	private static function extract_tweet_from_block( $block ) {
1184
		if ( 'core/embed' === $block['blockName'] && 'twitter' === $block['attrs']['providerNameSlug'] ) {
1185
			return $block['attrs']['url'];
1186
		}
1187
1188
		// @todo This fallback can be removed when WordPress 5.6 is the minimum supported version.
1189
		if ( 'core-embed/twitter' === $block['blockName'] ) {
@@ 1210-1212 (lines=3) @@
1207
		}
1208
1209
		// Twitter embeds are handled in ::extract_tweet_from_block().
1210
		if ( 'core/embed' === $block['blockName'] && 'twitter' === $block['attrs']['providerNameSlug'] ) {
1211
			return '';
1212
		}
1213
1214
		// @todo This fallback can be removed when WordPress 5.6 is the minimum supported version.
1215
		if ( 'core-embed/twitter' === $block['blockName'] ) {