@@ 139-142 (lines=4) @@ | ||
136 | $normalized_type = Helper::normalize_type( $type ); |
|
137 | $class = Helper::type_to_class( $normalized_type, __NAMESPACE__, '_Container' ); |
|
138 | ||
139 | if ( ! class_exists( $class ) ) { |
|
140 | Incorrect_Syntax_Exception::raise( 'Unknown container "' . $type . '".' ); |
|
141 | $class = __NAMESPACE__ . '\\Broken_Container'; |
|
142 | } |
|
143 | ||
144 | $repository = \Carbon_Fields\Carbon_Fields::resolve( 'container_repository' ); |
|
145 | $unique_id = $repository->get_unique_panel_id( $name ); |
@@ 217-220 (lines=4) @@ | ||
214 | } |
|
215 | } |
|
216 | ||
217 | if ( ! class_exists( $class ) ) { |
|
218 | Incorrect_Syntax_Exception::raise( 'Unknown field "' . $type . '".' ); |
|
219 | $class = __NAMESPACE__ . '\\Broken_Field'; |
|
220 | } |
|
221 | ||
222 | $field = new $class( $type, $name, $label ); |
|
223 |