Code Duplication    Length = 5-5 lines in 2 locations

core/Field/Complex_Field.php 2 locations

@@ 61-65 (lines=5) @@
58
			$name = '';
59
			$label = null;
60
		} else if ( $argc == 2 ) {
61
			if ( is_array( $argv[0] ) ) {
62
				list( $fields, $name ) = $argv;
63
			} else {
64
				list( $name, $fields ) = $argv;
65
			}
66
			$label = null;
67
		} else if ( $argc == 3 ) {
68
			if ( is_array( $argv[0] ) ) {
@@ 68-72 (lines=5) @@
65
			}
66
			$label = null;
67
		} else if ( $argc == 3 ) {
68
			if ( is_array( $argv[0] ) ) {
69
				list( $fields, $name, $label ) = $argv;
70
			} else {
71
				list( $name, $label, $fields ) = $argv;
72
			}
73
		}
74
75
		if ( array_key_exists( '_' . $name, $this->groups ) ) {