Code Duplication    Length = 7-7 lines in 3 locations

modules/shortcodes/recipe.php 3 locations

@@ 119-125 (lines=7) @@
116
		if ( '' !== $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) {
117
			$html .= '<ul class="jetpack-recipe-meta">';
118
119
			if ( '' !== $atts['servings'] ) {
120
				$html .= sprintf(
121
					'<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>',
122
					esc_html_x( 'Servings', 'recipe', 'jetpack' ),
123
					esc_html( $atts['servings'] )
124
				);
125
			}
126
127
			if ( '' !== $atts['time'] ) {
128
				$html .= sprintf(
@@ 127-133 (lines=7) @@
124
				);
125
			}
126
127
			if ( '' !== $atts['time'] ) {
128
				$html .= sprintf(
129
					'<li class="jetpack-recipe-time" itemprop="totalTime"><strong>%1$s: </strong>%2$s</li>',
130
					esc_html_x( 'Time', 'recipe', 'jetpack' ),
131
					esc_html( $atts['time'] )
132
				);
133
			}
134
135
			if ( '' !== $atts['difficulty'] ) {
136
				$html .= sprintf(
@@ 135-141 (lines=7) @@
132
				);
133
			}
134
135
			if ( '' !== $atts['difficulty'] ) {
136
				$html .= sprintf(
137
					'<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>',
138
					esc_html_x( 'Difficulty', 'recipe', 'jetpack' ),
139
					esc_html( $atts['difficulty'] )
140
				);
141
			}
142
143
			if ( 'false' !== $atts['print'] ) {
144
				$html .= sprintf(