Code Duplication    Length = 2-8 lines in 4 locations

class.jetpack-idc.php 1 location

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

class.jetpack-network.php 1 location

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

class.jetpack.php 2 locations

@@ 1215-1216 (lines=2) @@
1212
		require_once JETPACK__PLUGIN_DIR . '_inc/social-logos.php';
1213
		jetpack_register_social_logos();
1214
1215
		if ( ! wp_style_is( 'jetpack-icons', 'registered' ) ) {
1216
			wp_register_style( 'jetpack-icons', plugins_url( 'css/jetpack-icons.min.css', JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION );
1217
		}
1218
	}
1219
@@ 3947-3954 (lines=8) @@
3944
	function admin_banner_styles() {
3945
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
3946
3947
		if ( ! wp_style_is( 'jetpack-dops-style' ) ) {
3948
			wp_register_style(
3949
				'jetpack-dops-style',
3950
				plugins_url( '_inc/build/admin.css', JETPACK__PLUGIN_FILE ),
3951
				array(),
3952
				JETPACK__VERSION
3953
			);
3954
		}
3955
3956
		wp_enqueue_style(
3957
			'jetpack',