Code Duplication    Length = 5-5 lines in 2 locations

modules/search/class.jetpack-search.php 1 location

@@ 243-247 (lines=5) @@
240
			}
241
242
			$style_relative_path = '_inc/build/instant-search/instant-search.min.css';
243
			if ( file_exists( JETPACK__PLUGIN_DIR . $script_relative_path ) ) {
244
				$style_version = self::get_asset_version( $style_relative_path );
245
				$style_path    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
246
				wp_enqueue_style( 'jetpack-instant-search', $style_path, array(), $style_version );
247
			}
248
		}
249
	}
250

class.jetpack-gutenberg.php 1 location

@@ 520-524 (lines=5) @@
517
518
		// Enqueue styles.
519
		$style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
520
		if ( self::block_has_asset( $style_relative_path ) ) {
521
			$style_version = self::get_asset_version( $style_relative_path );
522
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
523
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
524
		}
525
526
	}
527