Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 278-282 (lines=5) @@
275
			}
276
277
			$style_relative_path = '_inc/build/instant-search/instant-search.min.css';
278
			if ( file_exists( JETPACK__PLUGIN_DIR . $script_relative_path ) ) {
279
				$style_version = self::get_asset_version( $style_relative_path );
280
				$style_path    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
281
				wp_enqueue_style( 'jetpack-instant-search', $style_path, array(), $style_version );
282
			}
283
		}
284
	}
285

class.jetpack-gutenberg.php 1 location

@@ 530-534 (lines=5) @@
527
528
		// Enqueue styles.
529
		$style_relative_path = self::get_blocks_directory() . $type . '/view' . ( is_rtl() ? '.rtl' : '' ) . '.css';
530
		if ( self::block_has_asset( $style_relative_path ) ) {
531
			$style_version = self::get_asset_version( $style_relative_path );
532
			$view_style    = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
533
			wp_enqueue_style( 'jetpack-block-' . $type, $view_style, array(), $style_version );
534
		}
535
536
	}
537