Code Duplication    Length = 3-3 lines in 4 locations

modules/widgets/flickr.php 1 location

@@ 31-33 (lines=3) @@
28
				array()
29
			);
30
31
			if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
32
				add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
33
			}
34
		}
35
36
		/**

modules/widgets/social-media-icons.php 1 location

@@ 85-87 (lines=3) @@
82
			'twitch'     => array( 'Twitch', 'https://www.twitch.tv/%s/' ),
83
			'tumblr'     => array( 'Tumblr', 'https://%s.tumblr.com' ),
84
		);
85
		if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
86
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
87
		}
88
	}
89
90
	/**

modules/widgets/top-posts.php 1 location

@@ 45-47 (lines=3) @@
42
43
		$this->default_title =  __( 'Top Posts & Pages', 'jetpack' );
44
45
		if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
46
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
47
		}
48
49
		/**
50
		 * Add explanation about how the statistics are calculated.

modules/widgets/eu-cookie-law.php 1 location

@@ 80-82 (lines=3) @@
77
				array()
78
			);
79
80
			if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
81
				add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) );
82
			}
83
		}
84
85
		/**