Code Duplication    Length = 3-3 lines in 3 locations

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/my-community.php 1 location

@@ 43-45 (lines=3) @@
40
			)
41
		);
42
43
		if ( is_active_widget( false, false, $this->id_base ) || is_active_widget( false, false, 'monster' ) ) {
44
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
45
		}
46
47
		$this->default_title = esc_html__( 'Community', 'jetpack' );
48
	}

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

@@ 76-78 (lines=3) @@
73
			'flickr'     => array( 'Flickr', 'https://www.flickr.com/photos/%s/' ),
74
			'wordpress'  => array( 'WordPress.org', 'https://profiles.wordpress.org/%s/' ),
75
		);
76
		if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) {
77
			add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ) );
78
		}
79
	}
80
81
	/**