Code Duplication    Length = 8-8 lines in 2 locations

lib/modules/mod_xmlrpc.php 2 locations

@@ 85-92 (lines=8) @@
82
							$type = $pieces[0];
83
							$name = $pieces[1];
84
							switch( $type ) {
85
								case ("struct"):
86
									$nest = XMLRPC::array_encode($value,1);
87
									if( $name == "" || $in_struct == 0 ) {
88
										array_push($result, new XML_RPC_Value($nest,$type));
89
									} else {
90
										$result[$name] = new XML_RPC_Value($nest,$type);
91
									}
92
									break;
93
								case ("array"):
94
									$nest = XMLRPC::array_encode($value);
95
									if( $name == "" || $in_struct == 0 ) {
@@ 93-100 (lines=8) @@
90
										$result[$name] = new XML_RPC_Value($nest,$type);
91
									}
92
									break;
93
								case ("array"):
94
									$nest = XMLRPC::array_encode($value);
95
									if( $name == "" || $in_struct == 0 ) {
96
										array_push($result, new XML_RPC_Value($nest,$type));
97
									} else {
98
										$result[$name] = new XML_RPC_Value($nest,$type);
99
									}
100
									break;
101
								case ("datetime"):
102
									if( is_int($value) ) {
103
										$datetime = XML_RPC_iso8601_encode($value);