Code Duplication    Length = 9-9 lines in 2 locations

includes/api/ApiBase.php 2 locations

@@ 1053-1061 (lines=9) @@
1050
							ApiBase::dieDebug( __METHOD__, "Multi-values not supported for $encParamName" );
1051
						}
1052
						break;
1053
					case 'timestamp':
1054
						if ( is_array( $value ) ) {
1055
							foreach ( $value as $key => $val ) {
1056
								$value[$key] = $this->validateTimestamp( $val, $encParamName );
1057
							}
1058
						} else {
1059
							$value = $this->validateTimestamp( $value, $encParamName );
1060
						}
1061
						break;
1062
					case 'user':
1063
						if ( is_array( $value ) ) {
1064
							foreach ( $value as $key => $val ) {
@@ 1062-1070 (lines=9) @@
1059
							$value = $this->validateTimestamp( $value, $encParamName );
1060
						}
1061
						break;
1062
					case 'user':
1063
						if ( is_array( $value ) ) {
1064
							foreach ( $value as $key => $val ) {
1065
								$value[$key] = $this->validateUser( $val, $encParamName );
1066
							}
1067
						} else {
1068
							$value = $this->validateUser( $value, $encParamName );
1069
						}
1070
						break;
1071
					case 'upload': // nothing to do
1072
						break;
1073
					case 'tags':