| @@ 570-578 (lines=9) @@ | ||
| 567 | return; |
|
| 568 | } |
|
| 569 | ||
| 570 | if (! isset($allowable_types[$type])) { |
|
| 571 | throw new InvalidArgumentException( |
|
| 572 | sprintf( |
|
| 573 | esc_html__('The incoming argument (%1$s) must be one of the allowable types: %2$s', 'event_espresso'), |
|
| 574 | $type, |
|
| 575 | implode(',', array_flip($allowable_types)) |
|
| 576 | ) |
|
| 577 | ); |
|
| 578 | } |
|
| 579 | } |
|
| 580 | ||
| 581 | ||
| @@ 612-620 (lines=9) @@ | ||
| 609 | ) |
|
| 610 | ); |
|
| 611 | ||
| 612 | if (! isset($allowable_formats[$format])) { |
|
| 613 | throw new InvalidArgumentException( |
|
| 614 | sprintf( |
|
| 615 | esc_html__('The incoming argument (%1$s) must be one of the allowable formats: %2$s', 'event_espresso'), |
|
| 616 | $format, |
|
| 617 | implode(',', array_flip($allowable_formats)) |
|
| 618 | ) |
|
| 619 | ); |
|
| 620 | } |
|
| 621 | } |
|
| 622 | } |
|