Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Container.php 1 location

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

core/Field/Field.php 1 location

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