Code Duplication    Length = 8-9 lines in 2 locations

modules/pwa/class.jetpack-pwa-web-push.php 1 location

@@ 103-111 (lines=9) @@
100
		 * @param array $args
101
		 * @param array $instance
102
		 */
103
		public function widget( $args, $instance ) {
104
			$instance = wp_parse_args( $instance, $this->defaults() );
105
			echo $args['before_widget'];
106
			// require( dirname( __FILE__ ) . '/widget.php' );
107
			echo "The widget body";
108
			echo $args['after_widget'];
109
			/** This action is already documented in modules/widgets/gravatar-profile.php */
110
			do_action( 'jetpack_stats_extra', 'widget_view', 'web_push_subscribe' );
111
		}
112
113
		/**
114
		 * Back-end widget form.

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

@@ 129-136 (lines=8) @@
126
		 * @param array $args     Widget arguments.
127
		 * @param array $instance Saved values from database.
128
		 */
129
		public function widget( $args, $instance ) {
130
			$instance = wp_parse_args( $instance, $this->defaults() );
131
			echo $args['before_widget'];
132
			require( dirname( __FILE__ ) . '/eu-cookie-law/widget.php' );
133
			echo $args['after_widget'];
134
			/** This action is already documented in modules/widgets/gravatar-profile.php */
135
			do_action( 'jetpack_stats_extra', 'widget_view', 'eu_cookie_law' );
136
		}
137
138
		/**
139
		 * Back-end widget form.