Code Duplication    Length = 7-8 lines in 3 locations

module/Tickets/src/Report/TicketSales.php 3 locations

@@ 52-59 (lines=8) @@
49
                            '-'
50
                        );
51
                        break;
52
                    case !$discountUsed && ($purchase->getDiscountCode()->getDiscountType() instanceof Fixed):
53
                        $report = $this->recordTicketPurchase(
54
                            $report,
55
                            $ticket->getTicketType()->getIdentifier(),
56
                            $purchase->getDiscountCode()->getCode()
57
                        );
58
                        $discountUsed = true;
59
                        break;
60
                    case ($purchase->getDiscountCode()->getDiscountType() instanceof FixedPerTicket):
61
                        $report = $this->recordTicketPurchase(
62
                            $report,
@@ 60-66 (lines=7) @@
57
                        );
58
                        $discountUsed = true;
59
                        break;
60
                    case ($purchase->getDiscountCode()->getDiscountType() instanceof FixedPerTicket):
61
                        $report = $this->recordTicketPurchase(
62
                            $report,
63
                            $ticket->getTicketType()->getIdentifier(),
64
                            $purchase->getDiscountCode()->getCode()
65
                        );
66
                        break;
67
                    case ($purchase->getDiscountCode()->getDiscountType() instanceof Percentage):
68
                        $report = $this->recordTicketPurchase(
69
                            $report,
@@ 67-73 (lines=7) @@
64
                            $purchase->getDiscountCode()->getCode()
65
                        );
66
                        break;
67
                    case ($purchase->getDiscountCode()->getDiscountType() instanceof Percentage):
68
                        $report = $this->recordTicketPurchase(
69
                            $report,
70
                            $ticket->getTicketType()->getIdentifier(),
71
                            $purchase->getDiscountCode()->getCode()
72
                        );
73
                        break;
74
                }
75
            }
76
        }