Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack-gutenberg.php 2 locations

@@ 459-463 (lines=5) @@
456
457
		// Enqueue styles.
458
		$style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
459
		if ( self::block_has_asset( $style_relative_path ) ) {
460
			$style_version = self::get_asset_version( $style_relative_path );
461
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
462
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
463
		}
464
465
	}
466
	/**
@@ 484-488 (lines=5) @@
481
482
		// Enqueue script.
483
		$script_relative_path = self::get_blocks_directory() . $type . '/view.js';
484
		if ( self::block_has_asset( $script_relative_path ) ) {
485
			$script_version = self::get_asset_version( $script_relative_path );
486
			$view_script    = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
487
			wp_enqueue_script( 'jetpack-block-' . $type, $view_script, $script_dependencies, $script_version, false );
488
		}
489
490
		wp_localize_script(
491
			'jetpack-block-' . $type,