Skip to content

Commit 05c764c

Browse files
committed
Fix code style complaints
1 parent a202493 commit 05c764c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

classes/certificate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ public static function issue_certificate($certificateid, $userid) {
545545
$event = \mod_customcert\event\issue_created::create([
546546
'objectid' => $issueid,
547547
'context' => $context,
548-
'relateduserid' => $userid
548+
'relateduserid' => $userid,
549549
]);
550550
$event->trigger();
551551

lang/en/customcert.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
$string['certificatesperrun'] = 'Certificates per run';
3939
$string['certificatesperrun_desc'] = 'Enter the number of certificates to process per scheduled task run where 0 means it will process all certificates.';
4040
$string['code'] = 'Code';
41+
$string['codegenerationmethod'] = 'Code generation method';
42+
$string['codegenerationmethod_desc'] = 'Choose between the two methods for generating certificate codes.';
43+
$string['codegenerationmethod_digitshyphens'] = '0123-4567-8901 (Digits with hyphens)';
44+
$string['codegenerationmethod_upperlowerdigits'] = '6aOdbLEuoC (Upper/lower/digits random string)';
4145
$string['copy'] = 'Copy';
4246
$string['coursetimereq'] = 'Required minutes in course';
4347
$string['coursetimereq_help'] = 'Enter here the minimum amount of time, in minutes, that a student must be logged into the course before they will be able to receive
@@ -245,7 +249,4 @@
245249
$string['verifycertificatedesc'] = 'This link will take you to a new screen where you will be able to verify certificates on the site';
246250
$string['width'] = 'Width';
247251
$string['width_help'] = 'This is the width of the certificate PDF in mm. For reference an A4 piece of paper is 210mm wide and a letter is 216mm wide.';
248-
$string['codegenerationmethod'] = 'Code generation method';
249-
$string['codegenerationmethod_desc'] = 'Choose between the two methods for generating certificate codes.';
250-
$string['codegenerationmethod_upperlowerdigits'] = '6aOdbLEuoC (Upper/lower/digits random string)';
251-
$string['codegenerationmethod_digitshyphens'] = '0123-4567-8901 (Digits with hyphens)';
252+

settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
0, // Default option (0 = Upper/lower/digits random string method).
8989
[
9090
0 => get_string('codegenerationmethod_upperlowerdigits', 'customcert'), // Upper/lower/digits random string.
91-
1 => get_string('codegenerationmethod_digitshyphens', 'customcert') // Digits with hyphens numeric code.
91+
1 => get_string('codegenerationmethod_digitshyphens', 'customcert'), // Digits with hyphens numeric code.
9292
]
9393
));
9494

0 commit comments

Comments
 (0)