Code Duplication    Length = 5-5 lines in 2 locations

core/Field/Complex_Field.php 2 locations

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