Code Duplication    Length = 3-3 lines in 2 locations

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

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