Code Duplication    Length = 9-9 lines in 2 locations

includes/api/ApiBase.php 2 locations

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