Code Duplication    Length = 5-5 lines in 2 locations

core/Field/Complex_Field.php 2 locations

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