Code Duplication    Length = 2-8 lines in 4 locations

class.jetpack-idc.php 1 location

@@ 286-293 (lines=8) @@
283
			)
284
		);
285
286
		if ( ! wp_style_is( 'jetpack-dops-style' ) ) {
287
			wp_register_style(
288
				'jetpack-dops-style',
289
				plugins_url( '_inc/build/admin.css', JETPACK__PLUGIN_FILE ),
290
				array(),
291
				JETPACK__VERSION
292
			);
293
		}
294
295
		wp_enqueue_style(
296
			'jetpack-idc-css',

class.jetpack-network.php 1 location

@@ 309-311 (lines=3) @@
306
		require_once JETPACK__PLUGIN_DIR . '_inc/genericons.php';
307
		jetpack_register_genericons();
308
309
		if ( ! wp_style_is( 'jetpack-icons', 'registered' ) ) {
310
			wp_register_style( 'jetpack-icons', plugins_url( 'css/jetpack-icons.min.css', JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION );
311
		}
312
313
		add_action( 'admin_enqueue_scripts', array( $this, 'admin_menu_css' ) );
314
	}

class.jetpack.php 2 locations

@@ 1184-1185 (lines=2) @@
1181
		require_once JETPACK__PLUGIN_DIR . '_inc/social-logos.php';
1182
		jetpack_register_social_logos();
1183
1184
		if ( ! wp_style_is( 'jetpack-icons', 'registered' ) ) {
1185
			wp_register_style( 'jetpack-icons', plugins_url( 'css/jetpack-icons.min.css', JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION );
1186
		}
1187
	}
1188
@@ 3955-3962 (lines=8) @@
3952
	function admin_banner_styles() {
3953
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
3954
3955
		if ( ! wp_style_is( 'jetpack-dops-style' ) ) {
3956
			wp_register_style(
3957
				'jetpack-dops-style',
3958
				plugins_url( '_inc/build/admin.css', JETPACK__PLUGIN_FILE ),
3959
				array(),
3960
				JETPACK__VERSION
3961
			);
3962
		}
3963
3964
		wp_enqueue_style(
3965
			'jetpack',