Code Duplication    Length = 3-3 lines in 2 locations

includes/api/ApiQueryAllDeletedRevisions.php 2 locations

@@ 296-298 (lines=3) @@
293
		$orderby = [];
294
		if ( $optimizeGenerateTitles ) {
295
			// Targeting index name_title_timestamp
296
			if ( $params['namespace'] === null || count( array_unique( $params['namespace'] ) ) > 1 ) {
297
				$orderby[] = "ar_namespace $sort";
298
			}
299
			$orderby[] = "ar_title $sort";
300
		} elseif ( $mode == 'all' ) {
301
			// Targeting index name_title_timestamp
@@ 302-304 (lines=3) @@
299
			$orderby[] = "ar_title $sort";
300
		} elseif ( $mode == 'all' ) {
301
			// Targeting index name_title_timestamp
302
			if ( $params['namespace'] === null || count( array_unique( $params['namespace'] ) ) > 1 ) {
303
				$orderby[] = "ar_namespace $sort";
304
			}
305
			$orderby[] = "ar_title $sort";
306
			$orderby[] = "ar_timestamp $sort";
307
			$orderby[] = "ar_id $sort";