Skip to content

Commit

Permalink
fix up any remaining PHPCS linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed May 28, 2024
1 parent a7ee2c4 commit f5d839c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion backup/moodle2/backup_quickmail_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ protected function define_structure(): backup_nested_element {
'courseid', 'name', 'value',
]);


$backuplogsandsettings->add_child($log);

$backuplogsandsettings->add_child($quickmailsettings);
Expand Down
1 change: 0 additions & 1 deletion db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ function xmldb_block_quickmail_upgrade($oldversion): bool {
$dbman->add_field($table, $field);
}


// Quickmail savepoint reached.
upgrade_block_savepoint(true, 2014042914, 'quickmail');
}
Expand Down
1 change: 0 additions & 1 deletion email_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ protected function definition(): void {
)
);


// DWE -> NON REQUIRED VERSION.
$table->data[] = new html_table_row([$selectedlabel, $rolefilterlabel]);
$table->data[] = new html_table_row([$selectfilter, $centerbuttons, $filters]);
Expand Down
4 changes: 1 addition & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public static function list_entries($courseid, $type, $page, $perpage, $userid,
$subject = $log->subject;
$attachments = $log->attachment;
if (! empty($log->failuserids)) {
// DWE -> keep track of user ids that failed.
// DWE -> keep track of user ids that failed.
$arrayoffaileduserids = explode(",", $log->failuserids);
}
$params = [
Expand Down Expand Up @@ -555,7 +555,6 @@ public static function list_entries($courseid, $type, $page, $perpage, $userid,
$failcount = "";
}


if ($courseid == 1) {
$table->data[] = [$date, $subject, $actionlinks, $statussentornot, $failcount, $sendagain];
} else {
Expand Down Expand Up @@ -683,7 +682,6 @@ public static function clean($failuserids): array {
if (! is_numeric($failedaddressorid)) {
$additionalemails[] = $failedaddressorid;


unset($failuserids[$id]);
}
}
Expand Down

0 comments on commit f5d839c

Please sign in to comment.