Code Duplication    Length = 12-13 lines in 2 locations

modules/widgets/contact-info.php 1 location

@@ 24-36 (lines=13) @@
21
		 *
22
		 * @return void
23
		 **/
24
		function __construct() {
25
			$widget_ops = array(
26
				'classname' => 'widget_contact_info',
27
				'description' => __( 'Display your location, hours, and contact information.', 'jetpack' )
28
			);
29
			parent::__construct(
30
				'widget_contact_info',
31
				/** This filter is documented in modules/widgets/facebook-likebox.php */
32
				apply_filters( 'jetpack_widget_name', __( 'Contact Info', 'jetpack' ) ),
33
				$widget_ops
34
			);
35
			$this->alt_option_name = 'widget_contact_info';
36
		}
37
38
39
		/**

modules/widgets/rsslinks-widget.php 1 location

@@ 11-22 (lines=12) @@
8
9
class Jetpack_RSS_Links_Widget extends WP_Widget {
10
11
	function __construct() {
12
		$widget_ops = array(
13
			'classname' => 'widget_rss_links',
14
			'description' => __( "Links to your blog's RSS feeds", 'jetpack' )
15
		);
16
		parent::__construct(
17
			'rss_links',
18
			/** This filter is documented in modules/widgets/facebook-likebox.php */
19
			apply_filters( 'jetpack_widget_name', __( 'RSS Links', 'jetpack' ) ),
20
			$widget_ops
21
		);
22
	}
23
24
	function widget( $args, $instance ) {
25
		$instance = wp_parse_args( (array) $instance, $this->defaults() );