Code Duplication    Length = 3-9 lines in 2 locations

modules/widgets/twitter-timeline.php 1 location

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

modules/subscriptions/views.php 1 location

@@ 42-50 (lines=9) @@
39
			$widget_ops
40
		);
41
42
		if ( self::is_jetpack() &&
43
		     (
44
			     is_active_widget( false, false, $this->id_base ) ||
45
			     is_active_widget( false, false, 'monster' ) ||
46
			     is_customize_preview()
47
		     )
48
		) {
49
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
50
		}
51
	}
52
53
	/**