Browse Source

Fix some coding guidelines.

40-behatfixes
Dan Marsden 3 years ago
parent
commit
f14b5972b3
  1. 2
      absentee.php
  2. 2
      classes/calendar_helpers.php
  3. 2
      classes/form/addwarning.php
  4. 2
      classes/form/studentattendance.php
  5. 2
      classes/form/tempmerge.php
  6. 2
      classes/manage_page_params.php
  7. 2
      classes/output/mobile.php
  8. 2
      classes/preferences_page_params.php
  9. 2
      classes/sessions_page_params.php
  10. 2
      classes/task/auto_mark.php
  11. 2
      classes/task/clear_temporary_passwords.php
  12. 2
      classes/task/notify.php
  13. 2
      classes/view_page_params.php
  14. 2
      coursesummary.php
  15. 2
      db/mobile.php
  16. 2
      db/tasks.php
  17. 2
      defaultstatus.php
  18. 2
      index.php
  19. 2
      lib.php
  20. 2
      messageselect.php
  21. 2
      mod_form.php
  22. 2
      resetcalendar.php
  23. 2
      sessions.php
  24. 2
      tempmerge.php
  25. 2
      warnings.php

2
absentee.php

@ -169,4 +169,4 @@ $table->finish_output();
if (!$table->is_downloading()) { if (!$table->is_downloading()) {
echo $OUTPUT->footer(); echo $OUTPUT->footer();
} }

2
classes/calendar_helpers.php

@ -182,4 +182,4 @@ function attendance_existing_calendar_events_ids($sessionsids) {
} else { } else {
return false; return false;
} }
} }

2
classes/form/addwarning.php

@ -115,4 +115,4 @@ class addwarning extends moodleform {
$this->add_action_buttons(true, $btnstring); $this->add_action_buttons(true, $btnstring);
} }
} }

2
classes/form/studentattendance.php

@ -122,4 +122,4 @@ class studentattendance extends \moodleform {
return $errors; return $errors;
} }
} }

2
classes/form/tempmerge.php

@ -70,4 +70,4 @@ class tempmerge extends \moodleform {
$this->add_action_buttons(true, get_string('mergeuser', 'attendance')); $this->add_action_buttons(true, get_string('mergeuser', 'attendance'));
} }
} }

2
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() { public function get_significant_params() {
return array(); return array();
} }
} }

2
classes/output/mobile.php

@ -450,4 +450,4 @@ class mobile {
]; ];
} }
} }

2
classes/preferences_page_params.php

@ -70,4 +70,4 @@ class mod_attendance_preferences_page_params {
return $params; return $params;
} }
} }

2
classes/sessions_page_params.php

@ -63,4 +63,4 @@ class mod_attendance_sessions_page_params {
/** @var int view mode of taking attendance page*/ /** @var int view mode of taking attendance page*/
public $action; public $action;
} }

2
classes/task/auto_mark.php

@ -227,4 +227,4 @@ class auto_mark extends \core\task\scheduled_task {
} }
} }
} }
} }

2
classes/task/clear_temporary_passwords.php

@ -51,4 +51,4 @@ class clear_temporary_passwords extends \core\task\scheduled_task {
$params = array('currenttime' => time()); $params = array('currenttime' => time());
$DB->delete_records_select('attendance_rotate_passwords', 'expirytime < :currenttime', $params); $DB->delete_records_select('attendance_rotate_passwords', 'expirytime < :currenttime', $params);
} }
} }

2
classes/task/notify.php

@ -170,4 +170,4 @@ class notify extends \core\task\scheduled_task {
} }
} }
} }
} }

2
classes/view_page_params.php

@ -82,4 +82,4 @@ class mod_attendance_view_page_params extends mod_attendance_page_with_filter_co
return $params; return $params;
} }
} }

2
coursesummary.php

@ -126,4 +126,4 @@ $table->finish_output();
if (!$table->is_downloading()) { if (!$table->is_downloading()) {
echo $OUTPUT->footer(); echo $OUTPUT->footer();
} }

2
db/mobile.php

@ -67,4 +67,4 @@ $addons = [
['setallstatuses', 'attendance'] ['setallstatuses', 'attendance']
], ],
] ]
]; ];

2
db/tasks.php

@ -49,4 +49,4 @@ $tasks = array(
'day' => '*', 'day' => '*',
'dayofweek' => '*', 'dayofweek' => '*',
'month' => '*') 'month' => '*')
); );

2
defaultstatus.php

@ -128,4 +128,4 @@ $statuses = attendance_get_statuses(0, false);
$prefdata = new attendance_default_statusset($statuses, $errors); $prefdata = new attendance_default_statusset($statuses, $errors);
echo $output->render($prefdata); echo $output->render($prefdata);
echo $OUTPUT->footer(); echo $OUTPUT->footer();

2
index.php

@ -90,4 +90,4 @@ echo "<br />";
echo html_writer::table($table); echo html_writer::table($table);
echo $OUTPUT->footer(); echo $OUTPUT->footer();

2
lib.php

@ -535,4 +535,4 @@ function attendance_remove_user_from_thirdpartyemails($warnings, $userid) {
foreach ($updatedwarnings as $updatedwarning) { foreach ($updatedwarnings as $updatedwarning) {
$DB->update_record('attendance_warning', $updatedwarning); $DB->update_record('attendance_warning', $updatedwarning);
} }
} }

2
messageselect.php

@ -181,4 +181,4 @@ $PAGE->requires->yui_module('moodle-core-formchangechecker',
)) ))
); );
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle'); $PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
echo $OUTPUT->footer(); echo $OUTPUT->footer();

2
mod_form.php

@ -73,4 +73,4 @@ class mod_attendance_mod_form extends moodleform_mod {
$this->add_action_buttons(); $this->add_action_buttons();
} }
} }

2
resetcalendar.php

@ -87,4 +87,4 @@ if (get_config('attendance', 'enablecalendar')) {
} }
echo $OUTPUT->footer(); echo $OUTPUT->footer();

2
sessions.php

@ -224,4 +224,4 @@ echo $output->render($tabs);
$mform->display(); $mform->display();
echo $OUTPUT->footer(); echo $OUTPUT->footer();

2
tempmerge.php

@ -98,4 +98,4 @@ echo $output->header();
echo $output->heading(get_string('tempusermerge', 'attendance').' : '.format_string($course->fullname)); echo $output->heading(get_string('tempusermerge', 'attendance').' : '.format_string($course->fullname));
echo $output->render($tabs); echo $output->render($tabs);
$mform->display(); $mform->display();
echo $output->footer($course); echo $output->footer($course);

2
warnings.php

@ -200,4 +200,4 @@ if ($action == 'update' && !empty($notid)) {
} }
echo $OUTPUT->footer(); echo $OUTPUT->footer();

Loading…
Cancel
Save