Code Duplication    Length = 9-9 lines in 2 locations

modules/custom-post-types/testimonial.php 1 location

@@ 149-157 (lines=9) @@
146
	 * @return html
147
	 */
148
	function setting_html() {
149
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
150
			<p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p>
151
		<?php else : ?>
152
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
153
				<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
154
				<?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?>
155
				<a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
156
			</label>
157
		<?php endif;
158
159
		if ( $this->site_supports_custom_post_type() ) :
160
			printf( '<p><label for="%1$s">%2$s</label></p>',

modules/custom-post-types/portfolios.php 1 location

@@ 126-134 (lines=9) @@
123
	 * @return html
124
	 */
125
	function setting_html() {
126
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
127
			<p><?php printf( /* translators: %s is the name of a custom post type such as "jetpack-portfolio" */ __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p>
128
		<?php else : ?>
129
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
130
				<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
131
				<?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?>
132
				<a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
133
			</label>
134
		<?php endif;
135
		if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) :
136
			printf( '<p><label for="%1$s">%2$s</label></p>',
137
				esc_attr( self::OPTION_READING_SETTING ),