From 2382b1c9fd1fe73e9310a0c7b56e291215104721 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 27 Jul 2018 22:49:58 +1200 Subject: [PATCH] Fix some coding guideline issues. --- add_form.php | 4 ++-- update_form.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/add_form.php b/add_form.php index 421cc4e..1a883bf 100644 --- a/add_form.php +++ b/add_form.php @@ -242,10 +242,10 @@ class mod_attendance_add_form extends moodleform { $mform->hideif('subnetgrp', 'studentscanmark', 'notchecked'); $mform->hideif('subnet', 'usedefaultsubnet', 'checked'); - $mgroup3 = array(); $options = attendance_get_sharedipoptions(); - $mgroup3[] = & $mform->createElement('select', 'preventsharedip', get_string('preventsharedip', 'attendance'), $options); + $mgroup3[] = & $mform->createElement('select', 'preventsharedip', + get_string('preventsharedip', 'attendance'), $options); $mgroup3[] = & $mform->createElement('text', 'preventsharediptime', get_string('preventsharediptime', 'attendance'), '', 'test'); $mform->addGroup($mgroup3, 'preventsharedgroup', get_string('preventsharedip', 'attendance'), array(' '), false); diff --git a/update_form.php b/update_form.php index 166267c..8d1963c 100644 --- a/update_form.php +++ b/update_form.php @@ -160,7 +160,8 @@ class mod_attendance_update_form extends moodleform { $mgroup3 = array(); $options = attendance_get_sharedipoptions(); - $mgroup3[] = & $mform->createElement('select', 'preventsharedip', get_string('preventsharedip', 'attendance'), $options); + $mgroup3[] = & $mform->createElement('select', 'preventsharedip', + get_string('preventsharedip', 'attendance'), $options); $mgroup3[] = & $mform->createElement('text', 'preventsharediptime', get_string('preventsharediptime', 'attendance'), '', 'test'); $mform->addGroup($mgroup3, 'preventsharedgroup',