Code Duplication    Length = 9-9 lines in 2 locations

includes/api/ApiBase.php 2 locations

@@ 1111-1119 (lines=9) @@
1108
							ApiBase::dieDebug( __METHOD__, "Multi-values not supported for $encParamName" );
1109
						}
1110
						break;
1111
					case 'timestamp':
1112
						if ( is_array( $value ) ) {
1113
							foreach ( $value as $key => $val ) {
1114
								$value[$key] = $this->validateTimestamp( $val, $encParamName );
1115
							}
1116
						} else {
1117
							$value = $this->validateTimestamp( $value, $encParamName );
1118
						}
1119
						break;
1120
					case 'user':
1121
						if ( is_array( $value ) ) {
1122
							foreach ( $value as $key => $val ) {
@@ 1120-1128 (lines=9) @@
1117
							$value = $this->validateTimestamp( $value, $encParamName );
1118
						}
1119
						break;
1120
					case 'user':
1121
						if ( is_array( $value ) ) {
1122
							foreach ( $value as $key => $val ) {
1123
								$value[$key] = $this->validateUser( $val, $encParamName );
1124
							}
1125
						} else {
1126
							$value = $this->validateUser( $value, $encParamName );
1127
						}
1128
						break;
1129
					case 'upload': // nothing to do
1130
						break;
1131
					case 'tags':