Skip to content

Commit 0ef836f

Browse files
committed
IDE formatter changes
1 parent 822ee04 commit 0ef836f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DigitalLearningSolutions.Web/Services/AdminDownloadFileService.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public byte[] GetAllAdminsFile(
8888
return stream.ToArray();
8989
}
9090

91-
private void PopulateAllAdminsSheet(
91+
private void PopulateAllAdminsSheet(
9292
IXLWorkbook workbook,
9393
string? searchString,
9494
string? filterString
@@ -119,7 +119,7 @@ private void PopulateAllAdminsSheet(
119119
FormatAllDelegateWorksheetColumns(workbook, dataTable);
120120
}
121121

122-
private IEnumerable<AdminEntity> GetAdminsToExport(
122+
private IEnumerable<AdminEntity> GetAdminsToExport(
123123
string? searchString,
124124
string? filterString
125125
)
@@ -173,15 +173,15 @@ private IEnumerable<AdminEntity> GetAdminsToExport(
173173
}
174174
}
175175
}
176-
var exportQueryRowLimit =ConfigurationExtensions.GetExportQueryRowLimit(configuration);
176+
var exportQueryRowLimit = ConfigurationExtensions.GetExportQueryRowLimit(configuration);
177177
int resultCount = userDataService.RessultCount(AdminId, Search ?? string.Empty, CentreId, UserStatus, AuthHelper.FailedLoginThreshold, Role);
178178

179179
int totalRun = (int)(resultCount / exportQueryRowLimit) + ((resultCount % exportQueryRowLimit) > 0 ? 1 : 0);
180180
int currentRun = 1;
181181
List<AdminEntity> admins = new List<AdminEntity>();
182182
while (totalRun >= currentRun)
183183
{
184-
admins.AddRange( this.userDataService.GetAllAdminsExport(Search ?? string.Empty, 0, 999999, AdminId, UserStatus, Role, CentreId, AuthHelper.FailedLoginThreshold, exportQueryRowLimit, currentRun));
184+
admins.AddRange(this.userDataService.GetAllAdminsExport(Search ?? string.Empty, 0, 999999, AdminId, UserStatus, Role, CentreId, AuthHelper.FailedLoginThreshold, exportQueryRowLimit, currentRun));
185185
currentRun++;
186186
}
187187
return admins;
@@ -257,7 +257,7 @@ AdminEntity adminRecord
257257

258258
row[IsCMSAdministrator] = adminRecord.AdminAccount.IsContentManager && adminRecord.AdminAccount.ImportOnly;
259259
row[IsCMSManager] = adminRecord.AdminAccount.IsContentManager && !adminRecord.AdminAccount.ImportOnly;
260-
260+
261261
row[IsSuperAdmin] = adminRecord.AdminAccount?.IsSuperAdmin;
262262
row[IsReportsViewer] = adminRecord.AdminAccount?.IsReportsViewer;
263263

@@ -276,7 +276,7 @@ AdminEntity adminRecord
276276

277277
private static void FormatAllDelegateWorksheetColumns(IXLWorkbook workbook, DataTable dataTable)
278278
{
279-
var integerColumns = new[] { AdminID, UserID, CentreID, CategoryID};
279+
var integerColumns = new[] { AdminID, UserID, CentreID, CategoryID };
280280
foreach (var columnName in integerColumns)
281281
{
282282
ClosedXmlHelper.FormatWorksheetColumn(workbook, dataTable, columnName, XLDataType.Number);

0 commit comments

Comments
 (0)