Code Duplication    Length = 2-2 lines in 2 locations

podlove.php 1 location

@@ 125-126 (lines=2) @@
122
		}
123
124
		// Fetch the (network)button by it's name
125
		if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name($args['button']) )
126
			return sprintf( __('Oops. There is no button with the ID "%s".', 'podlove-subscribe-button'), $args['button'] );
127
128
		// Get button styling and options
129
		$autowidth = self::interpret_width_attribute( self::get_array_value_with_fallback($args, 'width') );

widget.php 1 location

@@ 28-29 (lines=2) @@
25
26
	public function widget( $args, $instance ) {
27
		// Fetch the (network)button by it's name
28
		if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name($instance['button']) )
29
			return sprintf( __('Oops. There is no button with the ID "%s".', 'podlove-subscribe-button'), $args['button'] );
30
31
		echo $args['before_widget'];
32
		echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];