Code Duplication    Length = 2-8 lines in 4 locations

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-idc.php 1 location

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

class.jetpack.php 2 locations

@@ 1229-1230 (lines=2) @@
1226
		require_once JETPACK__PLUGIN_DIR . '_inc/social-logos.php';
1227
		jetpack_register_social_logos();
1228
1229
		if ( ! wp_style_is( 'jetpack-icons', 'registered' ) ) {
1230
			wp_register_style( 'jetpack-icons', plugins_url( 'css/jetpack-icons.min.css', JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION );
1231
		}
1232
	}
1233
@@ 3993-4000 (lines=8) @@
3990
	function admin_banner_styles() {
3991
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
3992
3993
		if ( ! wp_style_is( 'jetpack-dops-style' ) ) {
3994
			wp_register_style(
3995
				'jetpack-dops-style',
3996
				plugins_url( '_inc/build/admin.css', JETPACK__PLUGIN_FILE ),
3997
				array(),
3998
				JETPACK__VERSION
3999
			);
4000
		}
4001
4002
		wp_enqueue_style(
4003
			'jetpack',