Code Duplication    Length = 7-7 lines in 3 locations

modules/shortcodes/recipe.php 3 locations

@@ 186-192 (lines=7) @@
183
		if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) {
184
			$html .= '<ul class="jetpack-recipe-meta">';
185
186
			if ( '' !== $atts['servings'] ) {
187
				$html .= sprintf(
188
					'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>',
189
					esc_html_x( 'Servings', 'recipe', 'jetpack' ),
190
					esc_html( $atts['servings'] )
191
				);
192
			}
193
194
			if ( '' !== $atts['time'] ) {
195
				$html .= sprintf(
@@ 194-200 (lines=7) @@
191
				);
192
			}
193
194
			if ( '' !== $atts['time'] ) {
195
				$html .= sprintf(
196
					'<li class="jetpack-recipe-time" itemprop="totalTime"><strong>%1$s: </strong>%2$s</li>',
197
					esc_html_x( 'Time', 'recipe', 'jetpack' ),
198
					esc_html( $atts['time'] )
199
				);
200
			}
201
202
			if ( '' !== $atts['difficulty'] ) {
203
				$html .= sprintf(
@@ 202-208 (lines=7) @@
199
				);
200
			}
201
202
			if ( '' !== $atts['difficulty'] ) {
203
				$html .= sprintf(
204
					'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>',
205
					esc_html_x( 'Difficulty', 'recipe', 'jetpack' ),
206
					esc_html( $atts['difficulty'] )
207
				);
208
			}
209
210
			if ( '' !== $atts['source'] ) {
211
				$html .= sprintf(