Code Duplication    Length = 7-12 lines in 2 locations

projects/plugins/jetpack/modules/search/class-jetpack-search-customize.php 1 location

@@ 271-282 (lines=12) @@
268
	 *
269
	 * @since 9.6.0
270
	 */
271
	public function customize_controls_enqueue_scripts() {
272
		$script_relative_path = 'modules/search/customize-controls/customize-controls.js';
273
		$script_version       = Jetpack_Search_Helpers::get_asset_version( $script_relative_path );
274
		$script_path          = plugins_url( $script_relative_path, JETPACK__PLUGIN_FILE );
275
		wp_enqueue_script(
276
			'jetpack-instant-search-customizer',
277
			$script_path,
278
			array( 'customize-controls' ),
279
			$script_version,
280
			true
281
		);
282
	}
283
}
284

projects/plugins/jetpack/modules/search/customize-controls/class-label-control.php 1 location

@@ 16-22 (lines=7) @@
13
	/**
14
	 * Enqueue styles related to this control.
15
	 */
16
	public function enqueue() {
17
		require_once dirname( __DIR__ ) . '/class.jetpack-search-helpers.php';
18
		$style_relative_path = 'modules/search/customize-controls/class-label-control.css';
19
		$style_version       = Jetpack_Search_Helpers::get_asset_version( $style_relative_path );
20
		$style_path          = plugins_url( $style_relative_path, JETPACK__PLUGIN_FILE );
21
		wp_enqueue_style( 'jetpack-instant-search-customizer-label', $style_path, array( 'customize-controls' ), $style_version );
22
	}
23
24
	/**
25
	 * Override rendering for custom class name; omit element ID.