Code Duplication    Length = 7-7 lines in 2 locations

modules/shortcodes/recipe.php 2 locations

@@ 202-208 (lines=7) @@
199
		if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) {
200
			$html .= '<ul class="jetpack-recipe-meta">';
201
202
			if ( '' !== $atts['servings'] ) {
203
				$html .= sprintf(
204
					'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>',
205
					esc_html_x( 'Servings', 'recipe', 'jetpack' ),
206
					esc_html( $atts['servings'] )
207
				);
208
			}
209
210
			if ( '' !== $atts['time'] ) {
211
				// Get a time that's supported by Schema.org.
@@ 228-234 (lines=7) @@
225
				);
226
			}
227
228
			if ( '' !== $atts['difficulty'] ) {
229
				$html .= sprintf(
230
					'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>',
231
					esc_html_x( 'Difficulty', 'recipe', 'jetpack' ),
232
					esc_html( $atts['difficulty'] )
233
				);
234
			}
235
236
			if ( '' !== $atts['source'] ) {
237
				$html .= sprintf(