Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Container.php 1 location

@@ 144-147 (lines=4) @@
141
142
		$class = __NAMESPACE__ . '\\' . $type . '_Container';
143
144
		if ( ! class_exists( $class ) ) {
145
			Incorrect_Syntax_Exception::raise( 'Unknown container "' . $type . '".' );
146
			$class = __NAMESPACE__ . '\\Broken_Container';
147
		}
148
149
		$container = new $class( $name );
150
		$container->type = $type;

core/Field/Field.php 1 location

@@ 191-194 (lines=4) @@
188
189
		$class = __NAMESPACE__ . '\\' . $type . '_Field';
190
191
		if ( ! class_exists( $class ) ) {
192
			Incorrect_Syntax_Exception::raise( 'Unknown field "' . $type . '".' );
193
			$class = __NAMESPACE__ . '\\Broken_Field';
194
		}
195
196
		$field = new $class( $name, $label );
197
		$field->type = $type;