Code Duplication    Length = 5-7 lines in 2 locations

includes/class-wcs-shortcodes.php 2 locations

@@ 906-910 (lines=5) @@
903
904
		if ( $first_renewal_timestamp > 0 ) {
905
			if ( $atts['show_time'] ) {
906
				if ( 'timestamp' == $atts['format'] ) {
907
					$date_format = 'Y-m-d H:i:s';
908
				} else if ( 'string' == $atts['format'] ) {
909
					$date_format = 'D jS M Y H:i A';
910
				}
911
			} else {
912
				if ( 'timestamp' == $atts['format'] ) {
913
					$date_format = 'Y-m-d';
@@ 911-917 (lines=7) @@
908
				} else if ( 'string' == $atts['format'] ) {
909
					$date_format = 'D jS M Y H:i A';
910
				}
911
			} else {
912
				if ( 'timestamp' == $atts['format'] ) {
913
					$date_format = 'Y-m-d';
914
				} else if ( 'string' == $atts['format'] ) {
915
					$date_format = 'D jS M Y';
916
				}
917
			}
918
919
			$first_payment = date( $date_format, $first_renewal_timestamp );
920
		} else {