From 01698ad1524bed1a11fab0a7159231c0e04cd576 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 22 Jul 2021 10:26:49 +1200 Subject: [PATCH] Fix some coding guidelines. --- absentee.php | 2 +- classes/calendar_helpers.php | 2 +- classes/form/addwarning.php | 2 +- classes/form/studentattendance.php | 2 +- classes/form/tempmerge.php | 2 +- classes/manage_page_params.php | 2 +- classes/output/mobile.php | 2 +- classes/preferences_page_params.php | 2 +- classes/sessions_page_params.php | 2 +- classes/task/auto_mark.php | 2 +- classes/task/clear_temporary_passwords.php | 2 +- classes/task/notify.php | 2 +- classes/view_page_params.php | 2 +- coursesummary.php | 2 +- db/mobile.php | 2 +- db/tasks.php | 2 +- defaultstatus.php | 2 +- index.php | 2 +- lib.php | 2 +- messageselect.php | 2 +- mod_form.php | 2 +- resetcalendar.php | 2 +- sessions.php | 2 +- tempmerge.php | 2 +- warnings.php | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/absentee.php b/absentee.php index e270883..f114b40 100644 --- a/absentee.php +++ b/absentee.php @@ -169,4 +169,4 @@ $table->finish_output(); if (!$table->is_downloading()) { echo $OUTPUT->footer(); -} \ No newline at end of file +} diff --git a/classes/calendar_helpers.php b/classes/calendar_helpers.php index 07fd2ab..51c2579 100644 --- a/classes/calendar_helpers.php +++ b/classes/calendar_helpers.php @@ -182,4 +182,4 @@ function attendance_existing_calendar_events_ids($sessionsids) { } else { return false; } -} \ No newline at end of file +} diff --git a/classes/form/addwarning.php b/classes/form/addwarning.php index 45a63f5..79390fb 100644 --- a/classes/form/addwarning.php +++ b/classes/form/addwarning.php @@ -115,4 +115,4 @@ class addwarning extends moodleform { $this->add_action_buttons(true, $btnstring); } -} \ No newline at end of file +} diff --git a/classes/form/studentattendance.php b/classes/form/studentattendance.php index eba5302..8b9ca83 100644 --- a/classes/form/studentattendance.php +++ b/classes/form/studentattendance.php @@ -122,4 +122,4 @@ class studentattendance extends \moodleform { return $errors; } -} \ No newline at end of file +} diff --git a/classes/form/tempmerge.php b/classes/form/tempmerge.php index 8f24c92..4144c3a 100644 --- a/classes/form/tempmerge.php +++ b/classes/form/tempmerge.php @@ -69,4 +69,4 @@ class tempmerge extends \moodleform { $this->add_action_buttons(true, get_string('mergeuser', 'attendance')); } -} \ No newline at end of file +} diff --git a/classes/manage_page_params.php b/classes/manage_page_params.php index 48e5a54..9ee4897 100644 --- a/classes/manage_page_params.php +++ b/classes/manage_page_params.php @@ -44,4 +44,4 @@ class mod_attendance_manage_page_params extends mod_attendance_page_with_filter_ public function get_significant_params() { return array(); } -} \ No newline at end of file +} diff --git a/classes/output/mobile.php b/classes/output/mobile.php index ee7c552..bd250b6 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -450,4 +450,4 @@ class mobile { ]; } -} \ No newline at end of file +} diff --git a/classes/preferences_page_params.php b/classes/preferences_page_params.php index 9be3a29..def48b2 100644 --- a/classes/preferences_page_params.php +++ b/classes/preferences_page_params.php @@ -70,4 +70,4 @@ class mod_attendance_preferences_page_params { return $params; } -} \ No newline at end of file +} diff --git a/classes/sessions_page_params.php b/classes/sessions_page_params.php index a638811..3d3e974 100644 --- a/classes/sessions_page_params.php +++ b/classes/sessions_page_params.php @@ -63,4 +63,4 @@ class mod_attendance_sessions_page_params { /** @var int view mode of taking attendance page*/ public $action; -} \ No newline at end of file +} diff --git a/classes/task/auto_mark.php b/classes/task/auto_mark.php index 40be6d5..c30b258 100644 --- a/classes/task/auto_mark.php +++ b/classes/task/auto_mark.php @@ -227,4 +227,4 @@ class auto_mark extends \core\task\scheduled_task { } } } -} \ No newline at end of file +} diff --git a/classes/task/clear_temporary_passwords.php b/classes/task/clear_temporary_passwords.php index 0f5d727..7632204 100644 --- a/classes/task/clear_temporary_passwords.php +++ b/classes/task/clear_temporary_passwords.php @@ -51,4 +51,4 @@ class clear_temporary_passwords extends \core\task\scheduled_task { $params = array('currenttime' => time()); $DB->delete_records_select('attendance_rotate_passwords', 'expirytime < :currenttime', $params); } -} \ No newline at end of file +} diff --git a/classes/task/notify.php b/classes/task/notify.php index e857410..f7aa4e5 100644 --- a/classes/task/notify.php +++ b/classes/task/notify.php @@ -170,4 +170,4 @@ class notify extends \core\task\scheduled_task { } } } -} \ No newline at end of file +} diff --git a/classes/view_page_params.php b/classes/view_page_params.php index fd5d696..590a61b 100644 --- a/classes/view_page_params.php +++ b/classes/view_page_params.php @@ -82,4 +82,4 @@ class mod_attendance_view_page_params extends mod_attendance_page_with_filter_co return $params; } -} \ No newline at end of file +} diff --git a/coursesummary.php b/coursesummary.php index 227f048..64d4e18 100644 --- a/coursesummary.php +++ b/coursesummary.php @@ -126,4 +126,4 @@ $table->finish_output(); if (!$table->is_downloading()) { echo $OUTPUT->footer(); -} \ No newline at end of file +} diff --git a/db/mobile.php b/db/mobile.php index 720e920..81a8a70 100644 --- a/db/mobile.php +++ b/db/mobile.php @@ -67,4 +67,4 @@ $addons = [ ['setallstatuses', 'attendance'] ], ] -]; \ No newline at end of file +]; diff --git a/db/tasks.php b/db/tasks.php index 4cf8e17..23cfce8 100644 --- a/db/tasks.php +++ b/db/tasks.php @@ -49,4 +49,4 @@ $tasks = array( 'day' => '*', 'dayofweek' => '*', 'month' => '*') -); \ No newline at end of file +); diff --git a/defaultstatus.php b/defaultstatus.php index 425c9fc..2ae8181 100644 --- a/defaultstatus.php +++ b/defaultstatus.php @@ -128,4 +128,4 @@ $statuses = attendance_get_statuses(0, false); $prefdata = new attendance_default_statusset($statuses, $errors); echo $output->render($prefdata); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/index.php b/index.php index 6abe561..4a45ad7 100644 --- a/index.php +++ b/index.php @@ -90,4 +90,4 @@ echo "
"; echo html_writer::table($table); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/lib.php b/lib.php index ee880f7..00c8b4f 100644 --- a/lib.php +++ b/lib.php @@ -535,4 +535,4 @@ function attendance_remove_user_from_thirdpartyemails($warnings, $userid) { foreach ($updatedwarnings as $updatedwarning) { $DB->update_record('attendance_warning', $updatedwarning); } -} \ No newline at end of file +} diff --git a/messageselect.php b/messageselect.php index d22075e..0c0a5d4 100644 --- a/messageselect.php +++ b/messageselect.php @@ -179,4 +179,4 @@ $PAGE->requires->yui_module('moodle-core-formchangechecker', )) ); $PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle'); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/mod_form.php b/mod_form.php index 6d6b78d..838b842 100644 --- a/mod_form.php +++ b/mod_form.php @@ -73,4 +73,4 @@ class mod_attendance_mod_form extends moodleform_mod { $this->add_action_buttons(); } -} \ No newline at end of file +} diff --git a/resetcalendar.php b/resetcalendar.php index 6b0ac3b..5705f4e 100644 --- a/resetcalendar.php +++ b/resetcalendar.php @@ -87,4 +87,4 @@ if (get_config('attendance', 'enablecalendar')) { } -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/sessions.php b/sessions.php index a68c8ef..bccf423 100644 --- a/sessions.php +++ b/sessions.php @@ -224,4 +224,4 @@ echo $output->render($tabs); $mform->display(); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/tempmerge.php b/tempmerge.php index b983d1a..8eb5031 100644 --- a/tempmerge.php +++ b/tempmerge.php @@ -98,4 +98,4 @@ echo $output->header(); echo $output->heading(get_string('tempusermerge', 'attendance').' : '.format_string($course->fullname)); echo $output->render($tabs); $mform->display(); -echo $output->footer($course); \ No newline at end of file +echo $output->footer($course); diff --git a/warnings.php b/warnings.php index a4f8bff..9db6bc8 100644 --- a/warnings.php +++ b/warnings.php @@ -200,4 +200,4 @@ if ($action == 'update' && !empty($notid)) { } -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer();