Skip to content

Commit 750711f

Browse files
Code formatting fixes
1 parent 0a6bf3e commit 750711f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

classes/template.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ public function get_shared() {
450450
* @return string the name of the template
451451
*/
452452
public function get_formatted_name(\stdClass $issue = null) {
453-
if ($issue && $issue->name)
454-
{
453+
if ($issue && $issue->name) {
455454
return format_string($issue->name, true, ['escape' => false, 'context' => $this->get_context()]);
456455
}
457456
return $this->persistent->get_formatted_name();

db/upgrade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ function xmldb_tool_certificate_upgrade($oldversion) {
247247
upgrade_plugin_savepoint(true, 2023071300, 'tool', 'certificate');
248248
}
249249

250-
if ($oldversion < 2024061000)
251-
{
250+
if ($oldversion < 2024061000) {
252251
$table = new xmldb_table('tool_certificate_issues');
253252
$field = new xmldb_field('name', XMLDB_TYPE_CHAR, '255');
254253

tests/certificate_test.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ public function test_verify(): void {
359359
/**
360360
* Verify a certificate issued with a custom name uses that custom name
361361
*/
362-
public function test_can_set_certificate_name()
363-
{
362+
public function test_can_set_certificate_name() : void {
364363
$testname = 'Test Certificate 1';
365364

366365
$this->setAdminUser();

0 commit comments

Comments
 (0)