Code Duplication    Length = 7-7 lines in 2 locations

core/domain/services/admin/events/editor/EventEditorGraphQLData.php 2 locations

@@ 101-107 (lines=7) @@
98
            $datetimes = $this->datetimes->getData(['eventId' => $eventId]);
99
        }
100
101
        if (! empty($datetimes['nodes'])) {
102
            $datetimeIn = wp_list_pluck($datetimes['nodes'], 'id');
103
104
            if (! empty($datetimeIn)) {
105
                $tickets = $this->tickets->getData(['datetimeIn' => $datetimeIn]);
106
            }
107
        }
108
109
        if (! empty($tickets['nodes'])) {
110
            $ticketIn = wp_list_pluck($tickets['nodes'], 'id');
@@ 109-115 (lines=7) @@
106
            }
107
        }
108
109
        if (! empty($tickets['nodes'])) {
110
            $ticketIn = wp_list_pluck($tickets['nodes'], 'id');
111
112
            if (! empty($ticketIn)) {
113
                $prices = $this->prices->getData(['ticketIn' => $ticketIn]);
114
            }
115
        }
116
117
        $priceTypes = $this->price_types->getData();
118