Skip to content

Commit 756773c

Browse files
committed
Fix PSR12 multi-line control structure and lang string ordering
1 parent a32d21f commit 756773c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lang/en/local_psaelmsync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
$string['course_id'] = 'Course ID';
4141
$string['course_name'] = 'Course Name';
4242
$string['courseenrolstats'] = 'Course Enrolment Statistics';
43-
$string['record_enrol_id'] = 'Record Enrol ID';
4443
$string['elm_course_id'] = 'ELM Course ID';
4544
$string['elm_enrolment_id'] = 'ELM Enrolment ID';
4645
$string['email_cdata_lookup'] = 'Email';
@@ -70,6 +69,7 @@
7069
$string['psaelmsync:viewlogs'] = 'View Dashboards';
7170
$string['queryapi'] = 'Manual Processing';
7271
$string['record_date_created'] = 'CData Created';
72+
$string['record_enrol_id'] = 'Record Enrol ID';
7373
$string['record_id'] = 'Record ID';
7474
$string['search'] = 'Search';
7575
$string['status'] = 'Status';

manual-intake.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,13 @@ function create_new_user_local($useremail, $firstname, $lastname, $userguid) {
511511
}
512512

513513
// Skip already processed records.
514-
if ($recordenrolid > 0 && $DB->record_exists_select(
515-
'local_psaelmsync_logs',
516-
"record_enrol_id = :rid AND status = 'Success'",
517-
['rid' => $recordenrolid]
518-
)) {
514+
if (
515+
$recordenrolid > 0 && $DB->record_exists_select(
516+
'local_psaelmsync_logs',
517+
"record_enrol_id = :rid AND status = 'Success'",
518+
['rid' => $recordenrolid]
519+
)
520+
) {
519521
continue;
520522
}
521523

0 commit comments

Comments
 (0)