Skip to content

Commit c63f7bb

Browse files
committed
IDE auto formatter changes
1 parent 0bf8877 commit c63f7bb

File tree

14 files changed

+61
-61
lines changed

14 files changed

+61
-61
lines changed

DigitalLearningSolutions.Data/DataServices/PlatformReportsDataService.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private string GetSelfAssessmentWhereClause(bool supervised)
6060
{
6161
return supervised ? " (sa.SupervisorResultsReview = 1 OR SupervisorSelfAssessmentReview = 1)" : " (sa.SupervisorResultsReview = 0 AND SupervisorSelfAssessmentReview = 0)";
6262
}
63-
63+
6464
public PlatformReportsDataService(IDbConnection connection)
6565
{
6666
this.connection = connection;
@@ -115,21 +115,21 @@ public IEnumerable<SelfAssessmentActivity> GetSelfAssessmentActivity(
115115
bool supervised)
116116
{
117117
var whereClause = GetSelfAssessmentWhereClause(supervised);
118-
return connection.Query<SelfAssessmentActivity>(
119-
$@"{selectSelfAssessmentActivity} AND {whereClause}",
120-
new
121-
{
122-
centreId,
123-
centreTypeId,
124-
startDate,
125-
endDate,
126-
jobGroupId,
127-
selfAssessmentId,
128-
courseCategoryId,
129-
brandId,
130-
regionId
131-
}
132-
);
118+
return connection.Query<SelfAssessmentActivity>(
119+
$@"{selectSelfAssessmentActivity} AND {whereClause}",
120+
new
121+
{
122+
centreId,
123+
centreTypeId,
124+
startDate,
125+
endDate,
126+
jobGroupId,
127+
selfAssessmentId,
128+
courseCategoryId,
129+
brandId,
130+
regionId
131+
}
132+
);
133133
}
134134
public DateTime GetSelfAssessmentActivityStartDate(bool supervised)
135135
{

DigitalLearningSolutions.Data/DataServices/UserDataService/UserDataService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int centreId
239239
Task<IEnumerable<AdminEntity>> GetAllAdminsExport(
240240
string search, int offset, int rows, int? adminId, string userStatus, string role, int? centreId, int failedLoginThreshold, int exportQueryRowLimit, int currentRun
241241
);
242-
242+
243243
bool PrimaryEmailIsInUseAtCentre(string email, int centreId);
244244

245245
void UpdateAdminStatus(int adminId, bool active);
@@ -626,7 +626,7 @@ FROM DelegateAccounts AS da
626626
LEFT JOIN UserCentreDetails AS ucd ON ucd.UserID = u.ID
627627
AND ucd.CentreId = da.CentreID
628628
INNER JOIN JobGroups AS jg ON jg.JobGroupID = u.JobGroupID";
629-
string condition = $@" WHERE ((@delegateId = 0) OR (da.ID = @delegateId)) AND (u.FirstName + ' ' + u.LastName + ' ' + u.PrimaryEmail + ' ' + COALESCE(ucd.Email, '') + ' ' + COALESCE(da.CandidateNumber, '') LIKE N'%' + @search + N'%')
629+
string condition = $@" WHERE ((@delegateId = 0) OR (da.ID = @delegateId)) AND (u.FirstName + ' ' + u.LastName + ' ' + u.PrimaryEmail + ' ' + COALESCE(ucd.Email, '') + ' ' + COALESCE(da.CandidateNumber, '') LIKE N'%' + @search + N'%')
630630
AND ((ce.CentreID = @centreId) OR (@centreId= 0))
631631
AND ((@accountStatus = 'Any') OR (@accountStatus = 'Active' AND da.Active = 1 AND u.Active =1) OR (@accountStatus = 'Inactive' AND (u.Active = 0 OR da.Active =0))
632632
OR(@accountStatus = 'Approved' AND da.Approved =1) OR (@accountStatus = 'Unapproved' AND da.Approved =0)
@@ -639,7 +639,7 @@ OFFSET @offset ROWS
639639
IEnumerable<DelegateEntity> delegateEntity =
640640
connection.Query<DelegateAccount, UserAccount, UserCentreDetails, int?, DelegateEntity>(
641641
sql,
642-
(delegateAccount, userAccount, userCentreDetails,adminId) => new DelegateEntity(
642+
(delegateAccount, userAccount, userCentreDetails, adminId) => new DelegateEntity(
643643
delegateAccount,
644644
userAccount,
645645
userCentreDetails,
@@ -728,7 +728,7 @@ public bool PrimaryEmailInUseAtCentres(string email)
728728
@$"SELECT COUNT(*)
729729
FROM UserCentreDetails
730730
WHERE Email = @email ",
731-
new { email}
731+
new { email }
732732
) > 0;
733733
}
734734
}

DigitalLearningSolutions.Data/Models/TrackingSystem/ActivityFilterData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public ActivityFilterData(
2323
ReportInterval reportInterval
2424
)
2525
{
26-
26+
2727
StartDate = startDate;
2828
EndDate = endDate;
2929
JobGroupId = jobGroupId;

DigitalLearningSolutions.Web.Tests/Services/ActivityServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class ActivityServiceTests
2828
private IActivityService activityService = null!;
2929
private ICourseCategoriesDataService courseCategoriesDataService = null!;
3030
private ICourseDataService courseDataService = null!;
31-
private ISelfAssessmentDataService selfAssessmentDataService = null!;
31+
private ISelfAssessmentDataService selfAssessmentDataService = null!;
3232
private IJobGroupsDataService jobGroupsDataService = null!;
3333
private ICommonService commonService = null!;
3434
private IClockUtility clockUtility = null!;

DigitalLearningSolutions.Web/Controllers/SuperAdmin/PlatformReports/SupervisedSelfAssessmentReport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public IActionResult SupervisedSelfAssessmentsReport()
4040
return View("SelfAssessmentsReport", model);
4141
}
4242

43-
43+
4444

4545
[HttpGet]
4646
[Route("SelfAssessments/Supervised/EditFilters")]

DigitalLearningSolutions.Web/Helpers/ReportsFilterCookieHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ DateTime currentDateTime
1818
{
1919
var expiry = currentDateTime.AddDays(CookieExpiryDays);
2020
cookies.Append(
21-
cookieName?? "ReportsFilterCookie",
21+
cookieName ?? "ReportsFilterCookie",
2222
JsonConvert.SerializeObject(filterData),
2323
new CookieOptions
2424
{

DigitalLearningSolutions.Web/Services/PlatformReportService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public IEnumerable<SelfAssessmentActivityInPeriod> GetSelfAssessmentActivity(Act
6868
}
6969
);
7070
}
71-
71+
7272
private IEnumerable<SelfAssessmentActivityInPeriod> GroupSelfAssessmentActivityData(
7373
IEnumerable<SelfAssessmentActivity> activityData,
7474
ReportInterval interval
@@ -143,7 +143,7 @@ public IEnumerable<PeriodOfActivity> GetFilteredCourseActivity(ActivityFilterDat
143143
}
144144
);
145145
}
146-
146+
147147
private IEnumerable<PeriodOfActivity> GroupCourseActivityData(
148148
IEnumerable<ActivityLog> activityData,
149149
ReportInterval interval

DigitalLearningSolutions.Web/Services/ReportFilterService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ActivityFilterData filterData
6262
public (string regionName, string centreTypeName, string centreName, string jobGroupName, string brandName, string categoryName, string courseName, string courseProviderName) GetSuperAdminCourseFilterNames(
6363
ActivityFilterData filterData
6464
)
65-
{
65+
{
6666
return (
6767
GetRegionNameForActivityFilter(filterData.RegionId),
6868
GetCentreTypeNameForActivityFilter(filterData.CentreTypeId),

DigitalLearningSolutions.Web/ViewModels/SuperAdmin/PlatformReports/CourseActivityTableViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ DateTime endDate
9393
public string Period { get; set; }
9494
public int Completions { get; set; }
9595
public int Enrolments { get; set; }
96-
public int Evaluations { get; set; }
96+
public int Evaluations { get; set; }
9797
}
9898
public class CourseUsageReportFilterModel
9999
{

DigitalLearningSolutions.Web/Views/SuperAdmin/PlatformReports/CourseUsageEditFilters.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
<h1 class="nhsuk-heading-xl">Edit report filters</h1>
34-
<form class="nhsuk-u-margin-bottom-3" method="post" novalidate asp-action="CourseUsageEditFilters")>
34+
<form class="nhsuk-u-margin-bottom-3" method="post" novalidate asp-action="CourseUsageEditFilters" )>
3535
<input type="hidden" name="dataStart" value="@Model.DataStart" />
3636

3737
<vc:select-list asp-for="@nameof(Model.RegionId)"

0 commit comments

Comments
 (0)