Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack-gutenberg.php 2 locations

@@ 213-217 (lines=5) @@
210
		$type = sanitize_title_with_dashes( $type );
211
		// Enqueue styles.
212
		$style_relative_path = '_inc/blocks/' . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
213
		if ( self::block_has_asset( $style_relative_path ) ) {
214
			$style_version = self::get_asset_version( $style_relative_path );
215
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_DIR );
216
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
217
		}
218
219
		// Enqueue script.
220
		$script_relative_path = '_inc/blocks/' . $type . '/view.js';
@@ 221-225 (lines=5) @@
218
219
		// Enqueue script.
220
		$script_relative_path = '_inc/blocks/' . $type . '/view.js';
221
		if ( self::block_has_asset( $script_relative_path ) ) {
222
			$script_version = self::get_asset_version( $script_relative_path );
223
			$view_script    = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
224
			wp_enqueue_script( 'jetpack-block-' . $type, $view_script, $script_dependencies, $script_version, false );
225
		}
226
	}
227
228
	/**