Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack-gutenberg.php 2 locations

@@ 400-404 (lines=5) @@
397
		$type = sanitize_title_with_dashes( $type );
398
		// Enqueue styles.
399
		$style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
400
		if ( self::block_has_asset( $style_relative_path ) ) {
401
			$style_version = self::get_asset_version( $style_relative_path );
402
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
403
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
404
		}
405
406
		// Enqueue script.
407
		$script_relative_path = self::get_blocks_directory() . $type . '/view.js';
@@ 408-412 (lines=5) @@
405
406
		// Enqueue script.
407
		$script_relative_path = self::get_blocks_directory() . $type . '/view.js';
408
		if ( self::block_has_asset( $script_relative_path ) ) {
409
			$script_version = self::get_asset_version( $script_relative_path );
410
			$view_script    = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
411
			wp_enqueue_script( 'jetpack-block-' . $type, $view_script, $script_dependencies, $script_version, false );
412
		}
413
414
		wp_localize_script(
415
			'jetpack-block-' . $type,