Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 87-89 (lines=3) @@
84
				array()
85
			);
86
87
			if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
88
				add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) );
89
			}
90
		}
91
92
		/**

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/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/social-media-icons.php 1 location

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