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

@@ 1244-1245 (lines=2) @@
1241
		require_once JETPACK__PLUGIN_DIR . '_inc/social-logos.php';
1242
		jetpack_register_social_logos();
1243
1244
		if ( ! wp_style_is( 'jetpack-icons', 'registered' ) ) {
1245
			wp_register_style( 'jetpack-icons', plugins_url( 'css/jetpack-icons.min.css', JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION );
1246
		}
1247
	}
1248
@@ 4008-4015 (lines=8) @@
4005
	function admin_banner_styles() {
4006
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
4007
4008
		if ( ! wp_style_is( 'jetpack-dops-style' ) ) {
4009
			wp_register_style(
4010
				'jetpack-dops-style',
4011
				plugins_url( '_inc/build/admin.css', JETPACK__PLUGIN_FILE ),
4012
				array(),
4013
				JETPACK__VERSION
4014
			);
4015
		}
4016
4017
		wp_enqueue_style(
4018
			'jetpack',