Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/blog-stats.php 1 location

@@ 142-144 (lines=3) @@
139
140
		echo $args['before_widget'];
141
142
		if ( ! empty( $title ) ) {
143
			echo $args['before_title'] . esc_html( $title ) . $args['after_title'];
144
		}
145
146
		// Get the Site Stats.
147
		$views = $this->get_stats();

modules/widgets/google-translate.php 1 location

@@ 43-45 (lines=3) @@
40
			/** This filter is documented in core/src/wp-includes/default-widgets.php */
41
			$title = apply_filters( 'widget_title', $instance['title'] );
42
			echo $args['before_widget'];
43
			if ( ! empty( $title ) ) {
44
				echo $args['before_title'] . esc_html( $title ) . $args['after_title'];
45
			}
46
			wp_localize_script( 'google-translate-init', '_wp_google_translate_widget', array( 'lang' => get_locale() ) );
47
			wp_enqueue_script( 'google-translate-init' );
48
			wp_enqueue_script( 'google-translate' );