Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 91-99 (lines=9) @@
88
 * Display Content instead of Excerpt.
89
 */
90
function jetpack_the_excerpt_to_the_content( $content ) {
91
	if ( is_home() || is_archive() ) {
92
		ob_start();
93
		the_content( sprintf(
94
			/* translators: %s: Name of current post. */
95
			wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'jetpack' ), array( 'span' => array( 'class' => array() ) ) ),
96
			the_title( '<span class="screen-reader-text">"', '"</span>', false )
97
		) );
98
		$content = ob_get_clean();
99
	}
100
	return $content;
101
}
102
@@ 126-134 (lines=9) @@
123
 * Display both Content and Excerpt instead of Excerpt in the Customizer so live preview can switch between them.
124
 */
125
function jetpack_the_excerpt_customizer( $excerpt ) {
126
	if ( is_home() || is_archive() ) {
127
		ob_start();
128
		the_content( sprintf(
129
			/* translators: %s: Name of current post. */
130
			wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'jetpack' ), array( 'span' => array( 'class' => array() ) ) ),
131
			the_title( '<span class="screen-reader-text">"', '"</span>', false )
132
		) );
133
		$content = ob_get_clean();
134
	}
135
	if ( empty( $content ) ) {
136
		return $excerpt;
137
	} else {