Code Duplication    Length = 3-3 lines in 2 locations

extensions/blocks/mailchimp/mailchimp.php 2 locations

@@ 63-65 (lines=3) @@
60
	$classes = implode( $classes, ' ' );
61
62
	$button_styles = array();
63
	if ( isset( $attr['customBackgroundButtonColor'] ) && strlen( $attr['customBackgroundButtonColor'] ) ) {
64
		array_push( $button_styles, sprintf( 'background-color: %s', $attr['customBackgroundButtonColor'] ) );
65
	}
66
	if ( isset( $attr['customTextButtonColor'] ) && strlen( $attr['customTextButtonColor'] ) ) {
67
		array_push( $button_styles, sprintf( 'color: %s', $attr['customTextButtonColor'] ) );
68
	}
@@ 66-68 (lines=3) @@
63
	if ( isset( $attr['customBackgroundButtonColor'] ) && strlen( $attr['customBackgroundButtonColor'] ) ) {
64
		array_push( $button_styles, sprintf( 'background-color: %s', $attr['customBackgroundButtonColor'] ) );
65
	}
66
	if ( isset( $attr['customTextButtonColor'] ) && strlen( $attr['customTextButtonColor'] ) ) {
67
		array_push( $button_styles, sprintf( 'color: %s', $attr['customTextButtonColor'] ) );
68
	}
69
	$button_styles = implode( $button_styles, ';' );
70
71
	ob_start();