Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1199-1201 (lines=3) @@
1196
	 * @return string The tweet URL. Empty string if there is none available.
1197
	 */
1198
	private static function extract_tweet_from_block( $block ) {
1199
		if ( 'core/embed' === $block['blockName'] && 'twitter' === $block['attrs']['providerNameSlug'] ) {
1200
			return $block['attrs']['url'];
1201
		}
1202
1203
		// @todo This fallback can be removed when WordPress 5.6 is the minimum supported version.
1204
		if ( 'core-embed/twitter' === $block['blockName'] ) {
@@ 1225-1227 (lines=3) @@
1222
		}
1223
1224
		// Twitter embeds are handled in ::extract_tweet_from_block().
1225
		if ( 'core/embed' === $block['blockName'] && 'twitter' === $block['attrs']['providerNameSlug'] ) {
1226
			return '';
1227
		}
1228
1229
		// @todo This fallback can be removed when WordPress 5.6 is the minimum supported version.
1230
		if ( 'core-embed/twitter' === $block['blockName'] ) {