Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack-gutenberg.php 2 locations

@@ 494-498 (lines=5) @@
491
492
		// Enqueue styles.
493
		$style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
494
		if ( self::block_has_asset( $style_relative_path ) ) {
495
			$style_version = self::get_asset_version( $style_relative_path );
496
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
497
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
498
		}
499
500
	}
501
	/**
@@ 519-523 (lines=5) @@
516
517
		// Enqueue script.
518
		$script_relative_path = self::get_blocks_directory() . $type . '/view.js';
519
		if ( self::block_has_asset( $script_relative_path ) ) {
520
			$script_version = self::get_asset_version( $script_relative_path );
521
			$view_script    = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
522
			wp_enqueue_script( 'jetpack-block-' . $type, $view_script, $script_dependencies, $script_version, false );
523
		}
524
525
		wp_localize_script(
526
			'jetpack-block-' . $type,