Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 91-106 (lines=16) @@
88
 * Display Content instead of Excerpt.
89
 */
90
function jetpack_the_excerpt_to_the_content( $content ) {
91
	if ( ( is_home() || is_archive() ) && ! is_post_type_archive( array( 'jetpack-testimonial', 'jetpack-portfolio', 'product' ) ) ) {
92
		ob_start();
93
		the_content(
94
			sprintf(
95
				wp_kses(
96
					/* translators: %s: Name of current post. Only visible to screen readers */
97
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'jetpack' ),
98
					array(
99
						'span' => array(
100
							'class' => array(),
101
						),
102
					)
103
				),
104
				get_the_title()
105
			)
106
		);
107
		$content = ob_get_clean();
108
	}
109
	return $content;
@@ 135-150 (lines=16) @@
132
 * Display both Content and Excerpt instead of Excerpt in the Customizer so live preview can switch between them.
133
 */
134
function jetpack_the_excerpt_customizer( $excerpt ) {
135
	if ( ( is_home() || is_archive() ) && ! is_post_type_archive( array( 'jetpack-testimonial', 'jetpack-portfolio', 'product' ) ) ) {
136
		ob_start();
137
		the_content(
138
			sprintf(
139
				wp_kses(
140
					/* translators: %s: Name of current post. Only visible to screen readers */
141
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'jetpack' ),
142
					array(
143
						'span' => array(
144
							'class' => array(),
145
						),
146
					)
147
				),
148
				get_the_title()
149
			)
150
		);
151
		$content = ob_get_clean();
152
	}
153
	if ( empty( $content ) ) {