Code Duplication    Length = 16-16 lines in 2 locations

projects/plugins/jetpack/modules/theme-tools/content-options/blog-display.php 2 locations

@@ 111-126 (lines=16) @@
108
 * Display Content instead of Excerpt.
109
 */
110
function jetpack_the_excerpt_to_the_content( $content ) {
111
	if ( ( is_home() || is_archive() ) && ! is_post_type_archive( array( 'jetpack-testimonial', 'jetpack-portfolio', 'product' ) ) ) {
112
		ob_start();
113
		the_content(
114
			sprintf(
115
				wp_kses(
116
					/* translators: %s: Name of current post. Only visible to screen readers */
117
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'jetpack' ),
118
					array(
119
						'span' => array(
120
							'class' => array(),
121
						),
122
					)
123
				),
124
				get_the_title()
125
			)
126
		);
127
		$content = ob_get_clean();
128
	}
129
	return $content;
@@ 155-170 (lines=16) @@
152
 * Display both Content and Excerpt instead of Excerpt in the Customizer so live preview can switch between them.
153
 */
154
function jetpack_the_excerpt_customizer( $excerpt ) {
155
	if ( ( is_home() || is_archive() ) && ! is_post_type_archive( array( 'jetpack-testimonial', 'jetpack-portfolio', 'product' ) ) ) {
156
		ob_start();
157
		the_content(
158
			sprintf(
159
				wp_kses(
160
					/* translators: %s: Name of current post. Only visible to screen readers */
161
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'jetpack' ),
162
					array(
163
						'span' => array(
164
							'class' => array(),
165
						),
166
					)
167
				),
168
				get_the_title()
169
			)
170
		);
171
		$content = ob_get_clean();
172
	}
173
	if ( empty( $content ) ) {