From 85aa66d99e23645783d4c63d03d3252ac1459d41 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 4 Dec 2018 09:17:00 +1300 Subject: [PATCH] couple of coding guideline changes. --- classes/output/mobile.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index e0dbe6e..7ea7e9b 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -33,12 +33,12 @@ defined('MOODLE_INTERNAL') || die(); */ class mobile { - /* + /** * Subnet warning. - constants used to prevent warnings from showing multiple times. */ const MESSAGE_SUBNET = 10; - /* + /** * Prevent shared warning. used to prevent warnings from showing multiple times. */ const MESSAGE_PREVENTSHARED = 30; @@ -153,7 +153,8 @@ class mobile { list($canmark, $reason) = attendance_can_student_mark($sess); if (!$isteacher && $reason == 'preventsharederror') { $data['showmessage'] = true; - $data['messages'][self::MESSAGE_PREVENTSHARED]['string'] = 'preventsharederror'; // Lang string to show as a message. + // Lang string to show as a message. + $data['messages'][self::MESSAGE_PREVENTSHARED]['string'] = 'preventsharederror'; } if ($isteacher || $canmark) { @@ -174,7 +175,8 @@ class mobile { if (!$isteacher) { if (!empty($sess->subnet) && !address_in_subnet(getremoteaddr(), $sess->subnet)) { $data['showmessage'] = true; - $data['messages'][self::MESSAGE_SUBNET]['string'] = 'subnetwrong'; // Lang string to show as a message. + // Lang string to show as a message. + $data['messages'][self::MESSAGE_SUBNET]['string'] = 'subnetwrong'; $html['sessid'] = null; // Unset sessid as we cannot record session on this ip. } else if ($sess->autoassignstatus && empty($sess->studentpassword)) { $statusid = attendance_session_get_highest_status($att, $sess);