Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Container.php 1 location

@@ 154-157 (lines=4) @@
151
152
		$class = __NAMESPACE__ . '\\' . $type . '_Container';
153
154
		if ( ! class_exists( $class ) ) {
155
			Incorrect_Syntax_Exception::raise( 'Unknown container "' . $type . '".' );
156
			$class = __NAMESPACE__ . '\\Broken_Container';
157
		}
158
159
		$container = new $class( $name );
160
		$container->type = $type;

core/Field/Field.php 1 location

@@ 185-188 (lines=4) @@
182
183
		$class = __NAMESPACE__ . '\\' . $type . '_Field';
184
185
		if ( ! class_exists( $class ) ) {
186
			Incorrect_Syntax_Exception::raise( 'Unknown field "' . $type . '".' );
187
			$class = __NAMESPACE__ . '\\Broken_Field';
188
		}
189
190
		$field = new $class( $name, $label );
191
		$field->type = $type;