Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 76-84 (lines=9) @@
73
 * Display Content instead of Excerpt.
74
 */
75
function jetpack_the_excerpt_to_the_content( $content ) {
76
	if ( is_home() || is_archive() ) {
77
		ob_start();
78
		the_content( sprintf(
79
			/* translators: %s: Name of current post. */
80
			wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'jetpack' ), array( 'span' => array( 'class' => array() ) ) ),
81
			the_title( '<span class="screen-reader-text">"', '"</span>', false )
82
		) );
83
		$content = ob_get_clean();
84
	}
85
	return $content;
86
}
87
@@ 111-119 (lines=9) @@
108
 * Display both Content and Excerpt instead of Excerpt in the Customizer so live preview can switch between them.
109
 */
110
function jetpack_the_excerpt_customizer( $excerpt ) {
111
	if ( is_home() || is_archive() ) {
112
		ob_start();
113
		the_content( sprintf(
114
			/* translators: %s: Name of current post. */
115
			wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'jetpack' ), array( 'span' => array( 'class' => array() ) ) ),
116
			the_title( '<span class="screen-reader-text">"', '"</span>', false )
117
		) );
118
		$content = ob_get_clean();
119
	}
120
	if ( empty( $content ) ) {
121
		return $excerpt;
122
	} else {