@@ 607-615 (lines=9) @@ | ||
604 | return; |
|
605 | } |
|
606 | ||
607 | if (! isset($allowable_types[$type])) { |
|
608 | throw new InvalidArgumentException( |
|
609 | sprintf( |
|
610 | esc_html__('The incoming argument (%1$s) must be one of the allowable types: %2$s', 'event_espresso'), |
|
611 | $type, |
|
612 | implode(',', array_flip($allowable_types)) |
|
613 | ) |
|
614 | ); |
|
615 | } |
|
616 | } |
|
617 | ||
618 | ||
@@ 649-657 (lines=9) @@ | ||
646 | ) |
|
647 | ); |
|
648 | ||
649 | if (! isset($allowable_formats[$format])) { |
|
650 | throw new InvalidArgumentException( |
|
651 | sprintf( |
|
652 | esc_html__('The incoming argument (%1$s) must be one of the allowable formats: %2$s', 'event_espresso'), |
|
653 | $format, |
|
654 | implode(',', array_flip($allowable_formats)) |
|
655 | ) |
|
656 | ); |
|
657 | } |
|
658 | } |
|
659 | } |