Code Duplication    Length = 3-9 lines in 3 locations

modules/widgets/milestone/milestone.php 1 location

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

modules/subscriptions/views.php 1 location

@@ 48-56 (lines=9) @@
45
			$widget_ops
46
		);
47
48
		if ( self::is_jetpack() &&
49
		     (
50
			     is_active_widget( false, false, $this->id_base ) ||
51
			     is_active_widget( false, false, 'monster' ) ||
52
			     is_customize_preview()
53
		     )
54
		) {
55
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
56
		}
57
	}
58
59
	/**

modules/widgets/twitter-timeline.php 1 location

@@ 39-41 (lines=3) @@
36
			)
37
		);
38
39
		if ( is_active_widget( false, false, $this->id_base ) || is_active_widget( false, false, 'monster' ) || is_customize_preview() ) {
40
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
41
		}
42
43
		add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
44
	}