Code Duplication    Length = 3-9 lines in 2 locations

modules/widgets/milestone/milestone.php 1 location

@@ 55-57 (lines=3) @@
52
		add_action( 'admin_enqueue_scripts', array( __class__, 'enqueue_admin' ) );
53
		add_action( 'wp_footer', array( $this, 'localize_script' ) );
54
55
		if ( is_active_widget( false, false, $this->id_base, true ) || is_active_widget( false, false, 'monster', true ) || is_customize_preview() ) {
56
			add_action( 'wp_head', array( __class__, 'styles_template' ) );
57
		}
58
	}
59
60
	public static function enqueue_admin( $hook_suffix ) {

modules/subscriptions/views.php 1 location

@@ 24-32 (lines=9) @@
21
			$widget_ops
22
		);
23
24
		if ( self::is_jetpack() &&
25
			 (
26
				 is_active_widget( false, false, $this->id_base ) ||
27
				 is_active_widget( false, false, 'monster' ) ||
28
				 is_customize_preview()
29
			 )
30
		) {
31
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
32
		}
33
	}
34
35
	/**