Code Duplication    Length = 6-6 lines in 2 locations

src/wp-includes/rest-api.php 2 locations

@@ 1130-1135 (lines=6) @@
1127
					/* translators: 1: parameter, 2: minimum number, 3: maximum number */
1128
					return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be between %2$d (exclusive) and %3$d (exclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
1129
				}
1130
			} elseif ( empty( $args['exclusiveMinimum'] ) && ! empty( $args['exclusiveMaximum'] ) ) {
1131
				if ( $value >= $args['maximum'] || $value < $args['minimum'] ) {
1132
					/* translators: 1: parameter, 2: minimum number, 3: maximum number */
1133
					return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be between %2$d (inclusive) and %3$d (exclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
1134
				}
1135
			} elseif ( ! empty( $args['exclusiveMinimum'] ) && empty( $args['exclusiveMaximum'] ) ) {
1136
				if ( $value > $args['maximum'] || $value <= $args['minimum'] ) {
1137
					/* translators: 1: parameter, 2: minimum number, 3: maximum number */
1138
					return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be between %2$d (exclusive) and %3$d (inclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
@@ 1140-1145 (lines=6) @@
1137
					/* translators: 1: parameter, 2: minimum number, 3: maximum number */
1138
					return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be between %2$d (exclusive) and %3$d (inclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
1139
				}
1140
			} elseif ( empty( $args['exclusiveMinimum'] ) && empty( $args['exclusiveMaximum'] ) ) {
1141
				if ( $value > $args['maximum'] || $value < $args['minimum'] ) {
1142
					/* translators: 1: parameter, 2: minimum number, 3: maximum number */
1143
					return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s must be between %2$d (inclusive) and %3$d (inclusive)' ), $param, $args['minimum'], $args['maximum'] ) );
1144
				}
1145
			}
1146
		}
1147
	}
1148