Code Duplication    Length = 5-5 lines in 2 locations

core/Field/Complex_Field.php 2 locations

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