Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack-gutenberg.php 2 locations

@@ 221-225 (lines=5) @@
218
		$type = sanitize_title_with_dashes( $type );
219
		// Enqueue styles.
220
		$style_relative_path = '_inc/blocks/' . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
221
		if ( self::block_has_asset( $style_relative_path ) ) {
222
			$style_version = self::get_asset_version( $style_relative_path );
223
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
224
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
225
		}
226
227
		// Enqueue script.
228
		$script_relative_path = '_inc/blocks/' . $type . '/view.js';
@@ 229-233 (lines=5) @@
226
227
		// Enqueue script.
228
		$script_relative_path = '_inc/blocks/' . $type . '/view.js';
229
		if ( self::block_has_asset( $script_relative_path ) ) {
230
			$script_version = self::get_asset_version( $script_relative_path );
231
			$view_script    = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
232
			wp_enqueue_script( 'jetpack-block-' . $type, $view_script, $script_dependencies, $script_version, false );
233
		}
234
235
		wp_localize_script(
236
			'jetpack-block-' . $type,