@@ 123-132 (lines=10) @@ | ||
120 | 'Ticket', |
|
121 | array($ticket->ID()) |
|
122 | ); |
|
123 | foreach ($ticket_line_items as $ticket_line_item) { |
|
124 | if ( |
|
125 | $ticket_line_item instanceof \EE_Line_Item |
|
126 | && $ticket_line_item->OBJ_type() === 'Ticket' |
|
127 | && $ticket_line_item->OBJ_ID() === $ticket->ID() |
|
128 | ) { |
|
129 | $line_item = $ticket_line_item; |
|
130 | break; |
|
131 | } |
|
132 | } |
|
133 | if ( ! ($line_item instanceof \EE_Line_Item && $line_item->OBJ_type() === 'Ticket')) { |
|
134 | throw new EntityNotFoundException('Line Item Ticket ID', $ticket->ID()); |
|
135 | } |
@@ 1830-1839 (lines=10) @@ | ||
1827 | 'Ticket', |
|
1828 | array($ticket->ID()) |
|
1829 | ); |
|
1830 | foreach ($ticket_line_items as $ticket_line_item) { |
|
1831 | if ( |
|
1832 | $ticket_line_item instanceof \EE_Line_Item |
|
1833 | && $ticket_line_item->OBJ_type() === 'Ticket' |
|
1834 | && $ticket_line_item->OBJ_ID() === $ticket->ID() |
|
1835 | ) { |
|
1836 | $line_item = $ticket_line_item; |
|
1837 | break; |
|
1838 | } |
|
1839 | } |
|
1840 | if (! ($line_item instanceof \EE_Line_Item && $line_item->OBJ_type() === 'Ticket')) { |
|
1841 | throw new EntityNotFoundException('Line Item Ticket ID', $ticket->ID()); |
|
1842 | } |