Code Duplication    Length = 9-10 lines in 2 locations

includes/admin/admin-pages.php 2 locations

@@ 51-59 (lines=9) @@
48
            
49
            echo $usage;
50
        break;
51
        case 'start_date' :
52
            if ( $start_date = wpinv_get_discount_start_date( $discount->ID ) ) {
53
                $value = date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), strtotime( $start_date ) );
54
            } else {
55
                $value = '-';
56
            }
57
                
58
            echo $value;
59
        break;
60
        case 'expiry_date' :
61
            if ( $expiration = wpinv_get_discount_expiration( $discount->ID ) ) {
62
                $value = date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), strtotime( $expiration ) );
@@ 60-69 (lines=10) @@
57
                
58
            echo $value;
59
        break;
60
        case 'expiry_date' :
61
            if ( $expiration = wpinv_get_discount_expiration( $discount->ID ) ) {
62
                $value = date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), strtotime( $expiration ) );
63
            } else {
64
                $value = __( 'Never', 'invoicing' );
65
            }
66
                
67
            echo $value;
68
        break;
69
        break;
70
        case 'description' :
71
            echo wp_kses_post( $post->post_excerpt );
72
        break;