Skip to main content m20 You are logged in as Anthony Borrow (Logout) Page path Home / ► Code checker Files found: 63 blocks/mrbs/block_mrbs.php - 13 error(s) and 2 warning(s) blocks/mrbs/db/access.php - 12 error(s) and 0 warning(s) blocks/mrbs/db/upgrade.php - 2 error(s) and 4 warning(s) blocks/mrbs/import.php - 89 error(s) and 13 warning(s) blocks/mrbs/lang/ca/block_mrbs.php - 17 error(s) and 0 warning(s) blocks/mrbs/lang/cs/block_mrbs.php - 16 error(s) and 0 warning(s) blocks/mrbs/lang/da/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/de/block_mrbs.php - 17 error(s) and 0 warning(s) blocks/mrbs/lang/el/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/en/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/es/block_mrbs.php - 30 error(s) and 0 warning(s) blocks/mrbs/lang/eu/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/fi/block_mrbs.php - 16 error(s) and 0 warning(s) blocks/mrbs/lang/fr/block_mrbs.php - 13 error(s) and 0 warning(s) blocks/mrbs/lang/it/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/ja/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/ko/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/nl/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/no/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/pt/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/sl/block_mrbs.php - 14 error(s) and 0 warning(s) blocks/mrbs/lang/sv/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/tr/block_mrbs.php - 13 error(s) and 0 warning(s) blocks/mrbs/lang/zh_cn/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/lang/zh_tw/block_mrbs.php - 15 error(s) and 0 warning(s) blocks/mrbs/settings.php - 121 error(s) and 9 warning(s) blocks/mrbs/styles.css blocks/mrbs/version.php - 1 error(s) and 0 warning(s) blocks/mrbs/web/add.php - 4 error(s) and 0 warning(s) blocks/mrbs/web/admin.php - 23 error(s) and 13 warning(s) blocks/mrbs/web/auth_moodle.php - 3 error(s) and 0 warning(s) blocks/mrbs/web/config.inc.php - 31 error(s) and 13 warning(s) blocks/mrbs/web/day.php - 162 error(s) and 19 warning(s) blocks/mrbs/web/del.php - 53 error(s) and 2 warning(s) blocks/mrbs/web/del_entry.php - 16 error(s) and 1 warning(s) blocks/mrbs/web/edit_area_room.php - 48 error(s) and 6 warning(s) blocks/mrbs/web/edit_entry.php - 294 error(s) and 31 warning(s) blocks/mrbs/web/edit_entry_handler.php - 131 error(s) and 15 warning(s) blocks/mrbs/web/force_book.php - 59 error(s) and 3 warning(s) blocks/mrbs/web/functions.php - 398 error(s) and 16 warning(s) blocks/mrbs/web/gotoroom.php - 12 error(s) and 4 warning(s) blocks/mrbs/web/help.php - 21 error(s) and 3 warning(s) blocks/mrbs/web/index.php - 10 error(s) and 2 warning(s) blocks/mrbs/web/mincals.php - 234 error(s) and 15 warning(s) blocks/mrbs/web/month.php - 112 error(s) and 17 warning(s) blocks/mrbs/web/mrbs_auth.php - 17 error(s) and 1 warning(s) blocks/mrbs/web/mrbs_sql.php - 188 error(s) and 5 warning(s) blocks/mrbs/web/report.php - 384 error(s) and 6 warning(s) blocks/mrbs/web/request_vacate.php - 13 error(s) and 4 warning(s) blocks/mrbs/web/request_vacate_send.php - 2 error(s) and 0 warning(s) blocks/mrbs/web/roomsearch.js - 5 error(s) and 0 warning(s) blocks/mrbs/web/roomsearch.php - 68 error(s) and 3 warning(s) blocks/mrbs/web/roomsearch_ss.php - 43 error(s) and 5 warning(s) blocks/mrbs/web/search.php - 84 error(s) and 4 warning(s) blocks/mrbs/web/session_php.php - 98 error(s) and 4 warning(s) blocks/mrbs/web/trailer.php - 62 error(s) and 4 warning(s) blocks/mrbs/web/updatefreerooms.js - 5 error(s) and 0 warning(s) blocks/mrbs/web/updatefreerooms.php - 40 error(s) and 5 warning(s) blocks/mrbs/web/userweek.php - 138 error(s) and 10 warning(s) blocks/mrbs/web/version.php - 6 error(s) and 0 warning(s) blocks/mrbs/web/view_entry.php - 85 error(s) and 6 warning(s) blocks/mrbs/web/week.php - 102 error(s) and 10 warning(s) blocks/mrbs/web/xbLib.js - 64 error(s) and 0 warning(s) Total: 3584 error(s) and 255 warning(s) blocks/mrbs/block_mrbs.php ········if·(has_capability('block/mrbs:viewmrbs',·$context)·or·has_capability('block/mrbs:editmrbs',·$context)·or·has_capability('block/mrbs:administermrbs',·$context))·{ 47: Line exceeds maximum limit of 140 characters; contains 170 characters 2: The opening title·=·get_string('blockname','block_mrbs'); 21: Commas (,) must be followed by white space. ····function·has_config()·{ 25: No scope modifier specified for function "has_config" ····function·applicable_formats()·{ 30: No scope modifier specified for function "applicable_formats" //········$context·=·get_context_instance(CONTEXT_BLOCK,·$this->instance->id)); 44: Line indented incorrectly; expected at least 8 spaces, found 0 //········Not·sure·which·context·to·use...·Should·this·be·defined·site·level·or·course·level? 45: Line indented incorrectly; expected at least 8 spaces, found 0 //········Defining·as·Site·level 46: Line indented incorrectly; expected at least 8 spaces, found 0 ····function·get_content·()·{ 34: No scope modifier specified for function "get_content" ········if·($this->content·!==·NULL)·{ 37: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ········return·NULL; 63: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ····function·cron()·{ 66: No scope modifier specified for function "cron" ············$icon·=·'pix_url('web',·'block_mrbs').'"·height="16"·width="16"·alt=""·/>'; 54: Line exceeds 100 characters; contains 108 characters ············$this->content->text·=·''.$icon.'· '.$go.''; 58: Line exceeds 100 characters; contains 113 characters blocks/mrbs/db/access.php // 2: Line 1 of the opening comment must start "// This file is part of". // 4: Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify". //·The·capabilities·are·loaded·into·the·database·table·when·the·block·is 5: Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by". //·installed·or·updated.·Whenever·the·capability·definitions·are·updated, 6: Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or". //·the·module·version·number·should·be·bumped·up. 7: Line 6 of the opening comment must start "// (at your option) any later version.". //·The·system·has·four·possible·values·for·a·capability: 9: Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,". //·CAP_ALLOW,·CAP_PREVENT,·CAP_PROHIBIT,·and·inherit·(not·set). 10: Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of". // 11: Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the". // 12: Line 11 of the opening comment must start "// GNU General Public License for more details.". // 14: Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License". //·It·is·important·that·capability·names·are·unique.·The·naming·convention 15: Line 14 of the opening comment must start "// along with Moodle. If not, see .". ?> 104: A closing tag is not permitted at the end of a PHP file blocks/mrbs/db/upgrade.php ················echo·'There·is·no·way·to·automatically·upgrade·the·database·-·please·manually·delete·one·of·these·tables,·before·trying·to·upgrade
'; 47: Line exceeds maximum limit of 140 characters; contains 153 characters 2: The opening get_records_sql('SELECT·table_name·FROM·information_schema.tables·WHERE·table_name·=·?·AND·table_schema·=·?', 24: Line exceeds 100 characters; contains 125 characters ················echo·"Database·tables·'$oldname'·and·'$newname'·both·exist·and·both·contain·data
"; 46: Line exceeds 100 characters; contains 103 characters ········//·Cannot·use·the·built-in·Moodle·database·manipulation·commands,·as·they·all·assume·the·prefix 65: Line exceeds 100 characters; contains 103 characters ····//$dbman->execute_sql('ALTER·TABLE·'.$oldname.'·RENAME·TO·'.$newname); 54: This comment is 70% valid code; is this commented out code? blocks/mrbs/import.php ········$DB->set_field_select('mrbs_entry',·'type',·'M',·'type=\'K\'·and·start_time·>·?',·array($now));·//·Change·old·imported·(type·K)·records·to·temporary·type·M 39: Line exceeds maximum limit of 140 characters; contains 163 characters ····················if·(!is_timetabled($csvrow->name,$start_time))·{·////only·timetable·class·if·it·isn't·already·timetabled·elsewhere·(class·been·moved) 61: Line exceeds maximum limit of 140 characters; contains 153 characters ····················if·(!is_timetabled($csvrow->name,$start_time))·{·////only·timetable·class·if·it·isn't·already·timetabled·elsewhere·(class·been·moved) 61: Commas (,) must be followed by white space. ························//If·there·is·another·non-imported·booking·there,·send·emails.·It·is·assumed·that·simultanious·imported·classes·are·intentional 72: Line exceeds maximum limit of 140 characters; contains 151 characters ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Line exceeds maximum limit of 140 characters; contains 151 characters ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ························if·($existingclass=$DB->get_record_sql($sql,array($start_time,$start_time,$end_time,$end_time,$start_time,$end_time,·$room)))·{ 83: Commas (,) must be followed by white space. ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$existingteacher->firstname.'·'.$existingteacher->lastname.'<'.$existingteacher->email.'>';}else{$output.=get_string('clashemailnotsent','block_mrbs').$existingclass->description.'('.$existingclass->id.')'; 99: Line exceeds maximum limit of 140 characters; contains 298 characters ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$existingteacher->firstname.'·'.$existingteacher->lastname.'<'.$existingteacher->email.'>';}else{$output.=get_string('clashemailnotsent','block_mrbs').$existingclass->description.'('.$existingclass->id.')'; 99: Closing brace must be on a line by itself ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$existingteacher->firstname.'·'.$existingteacher->lastname.'<'.$existingteacher->email.'>';}else{$output.=get_string('clashemailnotsent','block_mrbs').$existingclass->description.'('.$existingclass->id.')'; 99: Commas (,) must be followed by white space. ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$existingteacher->firstname.'·'.$existingteacher->lastname.'<'.$existingteacher->email.'>';}else{$output.=get_string('clashemailnotsent','block_mrbs').$existingclass->description.'('.$existingclass->id.')'; 99: Expected "} else {\n"; found "}else{" ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$existingteacher->firstname.'·'.$existingteacher->lastname.'<'.$existingteacher->email.'>';}else{$output.=get_string('clashemailnotsent','block_mrbs').$existingclass->description.'('.$existingclass->id.')'; 99: Commas (,) must be followed by white space. ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$newteacher->firstname.'·'.$newteacher->lastname.'<'.$newteacher->email.'>'; 102: Line exceeds maximum limit of 140 characters; contains 168 characters ································$output.=',·'.get_string('clashemailsent','block_mrbs').'·'.$newteacher->firstname.'·'.$newteacher->lastname.'<'.$newteacher->email.'>'; 102: Commas (,) must be followed by white space. ········//move·the·processed·file·to·prevent·wasted·time·re-processing·TODO:·option·for·how·long·to·keep·these-·I've·found·them·useful·for·debugging·but·obviously·can't·keep·them·for·ever 126: Line exceeds maximum limit of 140 characters; contains 187 characters 2: The opening cronfile,'r'))·{ 36: Commas (,) must be followed by white space. ········$output.=·get_string('startedimport','block_mrbs')."\n"; 37: Commas (,) must be followed by white space. ············$csvrow->start_time=clean_param($array[0],PARAM_TEXT); 42: Commas (,) must be followed by white space. ············$csvrow->end_time=clean_param($array[1],PARAM_TEXT); 43: Commas (,) must be followed by white space. ············$csvrow->first_date=clean_param($array[2],PARAM_TEXT); 44: Commas (,) must be followed by white space. ············$csvrow->weekpattern=clean_param($array[3],PARAM_TEXT); 45: Commas (,) must be followed by white space. ············$csvrow->room_name=clean_param($array[4],PARAM_TEXT); 46: Commas (,) must be followed by white space. ············$csvrow->username=clean_param($array[5],PARAM_TEXT); 47: Commas (,) must be followed by white space. ············$csvrow->name=clean_param($array[6],PARAM_TEXT); 48: Commas (,) must be followed by white space. ············$csvrow->description=clean_param($array[7],PARAM_TEXT); 49: Commas (,) must be followed by white space. ············list($year,·$month,·$day)·=·split('[/]',·$csvrow->first_date); 51: The use of function split() is forbidden ············$date·=·mktime(00,00,00,$month,$day,$year); 52: Commas (,) must be followed by white space. ············$date·=·mktime(00,00,00,$month,$day,$year); 52: Commas (,) must be followed by white space. ············$date·=·mktime(00,00,00,$month,$day,$year); 52: Commas (,) must be followed by white space. ············$date·=·mktime(00,00,00,$month,$day,$year); 52: Commas (,) must be followed by white space. ············$date·=·mktime(00,00,00,$month,$day,$year); 52: Commas (,) must be followed by white space. ····················$start_time·=·time_to_datetime($date,$csvrow->start_time); 57: Commas (,) must be followed by white space. ····················$end_time·=·time_to_datetime($date,$csvrow->end_time); 58: Commas (,) must be followed by white space. ························$newentryid=$DB->insert_record('mrbs_entry',$entry); 70: Commas (,) must be followed by white space. ····························$hr_start_time=date("j·F,·Y",$start_time)·.·",·"·.·to_hr_time($start_time); 84: Commas (,) must be followed by white space. ····························$output.=·get_string('clash','block_mrbs',$a); 91: Commas (,) must be followed by white space. ····························$output.=·get_string('clash','block_mrbs',$a); 91: Commas (,) must be followed by white space. ····························$existingteacher=$DB->get_record('user',array('username'·=>·$existingclass->create_by)); 93: Commas (,) must be followed by white space. ····························$newteacher=$DB->get_record('user',array('username'·=>·$csvrow->username)); 94: Commas (,) must be followed by white space. ····························$body·=·get_string('clashemailbody','block_mrbs',$a); 96: Commas (,) must be followed by white space. ····························$body·=·get_string('clashemailbody','block_mrbs',$a); 96: Commas (,) must be followed by white space. ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Commas (,) must be followed by white space. ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Commas (,) must be followed by white space. ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Commas (,) must be followed by white space. ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Commas (,) must be followed by white space. ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Commas (,) must be followed by white space. ····························} 100: Closing brace indented incorrectly; expected 32 spaces, found 28 ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Expected "if (...) {\n"; found "if (...){\n" ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Commas (,) must be followed by white space. ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Commas (,) must be followed by white space. ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Commas (,) must be followed by white space. ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Commas (,) must be followed by white space. ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Commas (,) must be followed by white space. ································$output.=get_string('clashemailnotsent','block_mrbs').$csvrow->description.'('.$newentryid.')'; 104: Commas (,) must be followed by white space. ················if·(date('G',$date)==01)·{ 113: Commas (,) must be followed by white space. ················if·(date('G',$date)==23)·{ 116: Commas (,) must be followed by white space. ········if·(rename($cfg_mrbs->cronfile,$cfg_mrbs->cronfile.'.'.$date))·{ 128: Commas (,) must be followed by white space. ············$output.=$cfg_mrbs->cronfile.get_string('movedto','block_mrbs').$cfg_mrbs->cronfile.'.'.$date."\n"; 129: Commas (,) must be followed by white space. ········$output.=get_string('finishedimport','block_mrbs',$script_time_taken); 132: Commas (,) must be followed by white space. ········$output.=get_string('finishedimport','block_mrbs',$script_time_taken); 132: Commas (,) must be followed by white space. ········if·($mrbsadmin=$DB->get_record('user',array('email'·=>·$cfg_mrbs->admin_email)))·{ 138: Commas (,) must be followed by white space. ············email_to_user($mrbsadmin,$mrbsadmin,get_string('importlog','block_mrbs'),$output); 139: Commas (,) must be followed by white space. ············email_to_user($mrbsadmin,$mrbsadmin,get_string('importlog','block_mrbs'),$output); 139: Commas (,) must be followed by white space. ············email_to_user($mrbsadmin,$mrbsadmin,get_string('importlog','block_mrbs'),$output); 139: Commas (,) must be followed by white space. ············email_to_user($mrbsadmin,$mrbsadmin,get_string('importlog','block_mrbs'),$output); 139: Commas (,) must be followed by white space. ····if·(!$room=$DB->get_record('mrbs_room',array('room_name'=>$name)))·{ 148: Commas (,) must be followed by white space. ··*·Checks·if·a·class·already·has·a·timetable·entry.·If·a·previous·imported·entry·exists, 158: Expected 1 space(s) before asterisk; 2 found ··*·and·was·edited,·leave·it.·If·it·wasn't·edited·(flagged·by·type·M),·change·it's·type·back·to 159: Expected 1 space(s) before asterisk; 2 found ··*·K·(to·show·it's·an·imported·record),·and·return·true.·If·there's·no·record·for·the·class,·or 160: Expected 1 space(s) before asterisk; 2 found ··*·updating·the·type·back·to·K·fails,·return·false. 161: Expected 1 space(s) before asterisk; 2 found ··* 162: Expected 1 space(s) before asterisk; 2 found ··*·@param·$name·string·name·of·the·booking 163: Expected 1 space(s) before asterisk; 2 found ··*·@param·$time·int·start·time·of·the·booking·in·unix·timestamp·format 164: Expected 1 space(s) before asterisk; 2 found ··*·@return·bool·does·a·previous·booking·exist? 165: Expected 1 space(s) before asterisk; 2 found ··*/ 166: Expected 1 space(s) before asterisk; 2 found function·is_timetabled($name,$time)·{ 167: Commas (,) must be followed by white space. ···········return·false; 178: Line indented incorrectly; expected at least 12 spaces, found 11 function·time_to_datetime($date,$time)·{ 192: Commas (,) must be followed by white space. ····list($hours,$mins)=explode(':',$time); 194: Commas (,) must be followed by white space. ····list($hours,$mins)=explode(':',$time); 194: Commas (,) must be followed by white space. ········$periods=explode("\n",$cfg_mrbs->periods); 213: Commas (,) must be followed by white space. ········$period=intval(date('i',$time)); 214: Commas (,) must be followed by white space. ········return·date('G:i',$time); 217: Commas (,) must be followed by white space. ························//limit·to·1·to·keep·this·simpler-·if·there·is·a·3-way·clash·it·will·be·noticed·by·one·of·the·2·teachers·notified 81: Line exceeds 100 characters; contains 137 characters ····························$hr_start_time=date("j·F,·Y",$start_time)·.·",·"·.·to_hr_time($start_time); 84: Line exceeds 100 characters; contains 103 characters ····························$existingteacher=$DB->get_record('user',array('username'·=>·$existingclass->create_by)); 93: Line exceeds 100 characters; contains 116 characters ····························$newteacher=$DB->get_record('user',array('username'·=>·$csvrow->username)); 94: Line exceeds 100 characters; contains 103 characters ····························if·(email_to_user($existingteacher,$newteacher,get_string('clashemailsub','block_mrbs',$a),$body))·{ 98: Line exceeds 100 characters; contains 128 characters ····························if·(email_to_user($newteacher,$existingteacher,get_string('clashemailsub','block_mrbs',$a),$body)){ 101: Line exceeds 100 characters; contains 127 characters ································$output.=get_string('clashemailnotsent','block_mrbs').$csvrow->description.'('.$newentryid.')'; 104: Line exceeds 100 characters; contains 127 characters ············$output.=$cfg_mrbs->cronfile.get_string('movedto','block_mrbs').$cfg_mrbs->cronfile.'.'.$date."\n"; 129: Line exceeds 100 characters; contains 111 characters //==========================================FUNCTIONS============================================================== 143: Line exceeds 100 characters; contains 115 characters ····}·else·if·($record·=·$DB->get_record('mrbs_entry',·array('name'=>$name,·'start_time'=>$time,·'type'=>'M')))·{ 171: Line exceeds 100 characters; contains 113 characters ··*·@return·string·either·the·time·formatted·as·hh:mm·or·the·name·of·the·period·starting·at·this·time 208: Line exceeds 100 characters; contains 101 characters ····················//echo·userdate($date,·'%d/%m/%Y·%H:%M·=>'); 59: This comment is 70% valid code; is this commented out code? ····················//echo·userdate($start_time,·'%d/%m/%Y·%H:%M')."\n"; 60: This comment is 67% valid code; is this commented out code? blocks/mrbs/lang/ca/block_mrbs.php .". $string["failed_to_acquire"]··=·"Fallada·en·l'intent·d'obtenir·accés·a·la·base·de·dades";· 114: Whitespace found at end of line $string["passwords_not_eq"]···=·"Error:·Les·contrasenyes·no·són· 135: Whitespace found at end of line within string ?> 251: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/cs/block_mrbs.php ,· 9: Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of". //·Translations·provided·by:·"SmEjDiL"·,· 9: Whitespace found at end of line //···"David·Krotil"· 10: Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the". // 11: Line 11 of the opening comment must start "// GNU General Public License for more details.". 13: Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License". //·The·charset·to·use·in·"Content-type"·header 14: Line 14 of the opening comment must start "// along with Moodle. If not, see .". $string["repeat_id"]··········=·"ID·pro·opakování";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"Chyba·výhradního·přístupu·do·databáze";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/da/block_mrbs.php .". $string["repeat_id"]··········=·"Repeat·ID·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"Failed·to·acquire·exclusive·database·access";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/de/block_mrbs.php .". $string['config_mail_cc2']·=·'E-Mail-Empfänger·in·CC-Feld·eintragen.·Grundeinstellung·ist·leer.·Es·können·mehrere·Empfänger·eingetragen·werden.·Für·jeden·muss·ein·Moodle-Account·vorhanden·sein.'·; 84: Space found before semicolon; expected "'E-Mail-Empfänger in CC-Feld eintragen. Grundeinstellung ist leer. Es können mehrere Empfänger eingetragen werden. Für jeden muss ein Moodle-Account vorhanden sein.';" but found "'E-Mail-Empfänger in CC-Feld eintragen. Grundeinstellung ist leer. Es können mehrere Empfänger eingetragen werden. Für jeden muss ein Moodle-Account vorhanden sein.' ;" $string['typea']···············=·NULL; 289: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ?> 305: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/el/block_mrbs.php .". $string["repeat_id"]··········=·"Αναγνωριστικός·αριθμός·επανάληψης·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"Αποτυχία·εξασφάλισης·αποκλειστικής·πρόσβασης·στην·βάση·δεδομένων";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/en/block_mrbs.php $string['about_mrbs']·········=·'About·MRBS'; 2: Line 1 of the opening comment must start "// This file is part of". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 2 of the opening comment must start "//". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 6 of the opening comment must start "// (at your option) any later version.". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 7 of the opening comment must start "//". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of". $string['about_mrbs']·········=·'About·MRBS'; 2: Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the". $string['accessdenied']·······=·'Access·Denied'; 3: Line 11 of the opening comment must start "// GNU General Public License for more details.". $string['accessdenied']·······=·'Access·Denied'; 3: Line 12 of the opening comment must start "//". $string['accessdenied']·······=·'Access·Denied'; 3: Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License". $string['accessdenied']·······=·'Access·Denied'; 3: Line 14 of the opening comment must start "// along with Moodle. If not, see .". $string['typea']···············=·NULL; 297: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" blocks/mrbs/lang/es/block_mrbs.php .". $string['charset']············=·'UTF-8';· 22: Whitespace found at end of line $string['config_entry_type2']·=·'Estos·tipos·de·evento·aparecen·en·la·ventana·-Añadir·Entrada-.·Por·defecto,·a·cada·tipo·de·entrada·se·le·asigna·un·color·diferente.·Los·tipos·se·muestras·en·el·siguiente·orden:·\'Entrada·A\',·\'Entrada·B\',·\'Entrada·C\',·etc.';· 46: Whitespace found at end of line $string['config_mail_admin_on_bookings']·=·'Correo·de·nueva·reserva';· 55: Whitespace found at end of line $string['config_mail_cc']·=·'Copia·de·correo·(cc)';· 59: Whitespace found at end of line $string['config_mail_cc2']·=·'Configura·la·dirección·de·las·copias·de·correo.·Por·defecto·está·vacío.·De·modo·semejante·a·los·destinatarios·de·correo,·puede·definir·más·de·un·destinatario.·No·se·olvide·de·que·las·direcciones·de·correo·han·de·estar·asociadas·a·una·cuenta·Moodle.'·;· 60: Space found before semicolon; expected "'Configura la dirección de las copias de correo. Por defecto está vacío. De modo semejante a los destinatarios de correo, puede definir más de un destinatario. No se olvide de que las direcciones de correo han de estar asociadas a una cuenta Moodle.';" but found "'Configura la dirección de las copias de correo. Por defecto está vacío. De modo semejante a los destinatarios de correo, puede definir más de un destinatario. No se olvide de que las direcciones de correo han de estar asociadas a una cuenta Moodle.' ;" $string['config_mail_cc2']·=·'Configura·la·dirección·de·las·copias·de·correo.·Por·defecto·está·vacío.·De·modo·semejante·a·los·destinatarios·de·correo,·puede·definir·más·de·un·destinatario.·No·se·olvide·de·que·las·direcciones·de·correo·han·de·estar·asociadas·a·una·cuenta·Moodle.'·;· 60: Whitespace found at end of line $string['config_mail_from']·=·'De';· 61: Whitespace found at end of line $string['config_mail_from2']·=·'Seleccione·la·dirección·de·correo·que·aparecerá·en·el·campo·-De-.·Por·defecto·se·pone·la·dirección·del·administrador.·Debe·estar·asociada·a·una·cuenta·de·usuario·Moodle.';· 62: Whitespace found at end of line $string['config_mail_recipients']·=·'Destinatarios·de·correo';· 63: Whitespace found at end of line $string['config_mail_recipients2']·=·'Seleccione·los·destinatarios·de·los·correos.·Puede·poner·más·de·uno·separándolos·con·comas·(,).·Estas·direcciones·han·de·esar·asociadas·con·cuentas·de·usuarios·de·Moodle.';· 64: Whitespace found at end of line $string['daybefore']··········=·'Día·anterior';࢐ 110: Whitespace found at end of line $string['external']···········=·'Externa';࢐· 132: Whitespace found at end of line $string['failed_to_acquire']··=·'No·ha·sido·posible·tener·acceso·exclusivo·a·la·base·de·datos';· 134: Whitespace found at end of line $string['repeat_id']··········=·'Repetir·ID·';· 209: Whitespace found at end of line $string['typea']··············=·NULL; 244: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ?> 260: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/eu/block_mrbs.php .". $string["repeat_id"]··········=·"IDa·errepikatu";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"Datubasera·sartzeko·arazoa";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/fi/block_mrbs.php .". $string["repeat_id"]··········=·"Toiston·ID·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"Tietokantaan·ei·saatu·(varauksetonta)·yhteyttä.";· 114: Whitespace found at end of line · 189: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/fr/block_mrbs.php .". ?> 263: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/it/block_mrbs.php .". $string["repeat_id"]··········=·"Repeat·ID·";· 90: Whitespace found at end of line $string["failed_to_acquire"]··=·"Fallito·accesso·esclusivo·sul·DB";· 116: Whitespace found at end of line ?> 262: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/ja/block_mrbs.php .". $string["repeat_id"]··········=·"定例予約ID·";· 90: Whitespace found at end of line $string["failed_to_acquire"]··=·"データベースへの排他的なアクセスの確保に失敗しました";· 116: Whitespace found at end of line ?> 262: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/ko/block_mrbs.php .". $string["repeat_id"]··········=·"반복·ID·";· 87: Whitespace found at end of line $string["failed_to_acquire"]··=·"데이타베이스·접근에·실패하였습니다.";· 113: Whitespace found at end of line ?> 249: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/nl/block_mrbs.php .". $string["repeat_id"]··········=·"Herhalings-ID·";· 90: Whitespace found at end of line $string["failed_to_acquire"]··=·"Het·is·niet·gelukt·om·exclusive·toegang·tot·de·database·te·verkrijgen";· 116: Whitespace found at end of line ?> 262: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/no/block_mrbs.php .". $string["repeat_id"]··········=·"Repetisjons·ID·";· 89: Whitespace found at end of line $string["failed_to_acquire"]··=·"Kunne·ikke·oppnå·eksklusiv·databasetilgang";· 115: Whitespace found at end of line ?> 251: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/pt/block_mrbs.php .". $string["repeat_id"]··········=·"Repetir·ID·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"A·tentativa·de·adquirir·acesso·exclusivo·à·base·de·dados·falhou!";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/sl/block_mrbs.php .". $string["repeat_id"]··········=·"ID·ponavljanj";· 90: Whitespace found at end of line ?> 262: Additional whitespace found at end of file blocks/mrbs/lang/sv/block_mrbs.php 10: Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the". // 11: Line 11 of the opening comment must start "// GNU General Public License for more details.". //·This·file·is·PHP·code.·Treat·it·as·such. 13: Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License". 14: Line 14 of the opening comment must start "// along with Moodle. If not, see .". $string["repeat_id"]··········=·"Repetions-ID·";· 89: Whitespace found at end of line $string["failed_to_acquire"]··=·"Kunde·ej·få·exklusiv·databasåtkomst";· 115: Whitespace found at end of line ?> 256: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/tr/block_mrbs.php .". ?> 263: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/zh_cn/block_mrbs.php .". $string["repeat_id"]··········=·"重复序号·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"无法读取资料库";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/lang/zh_tw/block_mrbs.php .". $string["repeat_id"]··········=·"重覆序號·";· 88: Whitespace found at end of line $string["failed_to_acquire"]··=·"無法存取資料庫";· 114: Whitespace found at end of line ?> 250: A closing tag is not permitted at the end of a PHP file blocks/mrbs/settings.php $settings->add(new·admin_setting_configselect('newwindow',·get_string('config_new_window',·'block_mrbs'),get_string('config_new_window2',·'block_mrbs'),·1,·$options)); 21: Line exceeds maximum limit of 140 characters; contains 167 characters $settings->add(new·admin_setting_configselect('newwindow',·get_string('config_new_window',·'block_mrbs'),get_string('config_new_window2',·'block_mrbs'),·1,·$options)); 21: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('admin',·get_string('config_admin',·'block_mrbs'),·get_string('config_admin2',·'block_mrbs'),·$CFG->supportname,·PARAM_TEXT)); 28: Line exceeds maximum limit of 140 characters; contains 170 characters $settings->add(new·admin_setting_configtext('admin_email',·get_string('config_admin_email',·'block_mrbs'),get_string('config_admin_email2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 31: Line exceeds maximum limit of 140 characters; contains 188 characters $settings->add(new·admin_setting_configtext('admin_email',·get_string('config_admin_email',·'block_mrbs'),get_string('config_admin_email2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 31: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configselect('enable_periods',·get_string('config_enable_periods',·'block_mrbs'),get_string('config_enable_periods2',·'block_mrbs'),·1,·$options)); 35: Line exceeds maximum limit of 140 characters; contains 180 characters $settings->add(new·admin_setting_configselect('enable_periods',·get_string('config_enable_periods',·'block_mrbs'),get_string('config_enable_periods2',·'block_mrbs'),·1,·$options)); 35: Commas (,) must be followed by white space. ········$options·=·array('900'·=>·'15'·.$strunits·,·'1800'=>·'30'·.·$strunits,·'2700'=>·'45'·.·$strunits,·'3600'=>·'60'·.·$strunits,·'4500'=>·'75'·.·$strunits,·'5400'=>·'90'·.·$strunits,·'6300'=>·'105'·.·$strunits,·'7200'=>·'120'·.·$strunits); 45: Line exceeds maximum limit of 140 characters; contains 243 characters ········$settings->add(new·admin_setting_configselect('resolution',·get_string('config_resolution',·'block_mrbs'),get_string('config_resolution2',·'block_mrbs'),·'1800',·$options)); 46: Line exceeds maximum limit of 140 characters; contains 181 characters ········$settings->add(new·admin_setting_configselect('resolution',·get_string('config_resolution',·'block_mrbs'),get_string('config_resolution2',·'block_mrbs'),·'1800',·$options)); 46: Commas (,) must be followed by white space. ········$options·=·array(1·=>·'01',·2=>·'02',·3=>·'03',·4=>·'04',·5=>·'05',·6=>·'06',·7=>·'07',·8=>·'08',·9=>·'09',·10=>·'10',·11=>·'11',·12=>·'12',·13=>·'13',·14=>·'14',·15=>·'15',·16=>·'16',·17=>·'17',·18=>·'18',·19=>·'19',·20=>·'20',·21=>·'21',·22=>·'22',·23=>·'23'); 51: Line exceeds maximum limit of 140 characters; contains 270 characters ········$settings->add(new·admin_setting_configselect('morningstarts',·get_string('config_morningstarts',·'block_mrbs'),get_string('config_morningstarts2',·'block_mrbs'),·7,·$options)); 52: Line exceeds maximum limit of 140 characters; contains 185 characters ········$settings->add(new·admin_setting_configselect('morningstarts',·get_string('config_morningstarts',·'block_mrbs'),get_string('config_morningstarts2',·'block_mrbs'),·7,·$options)); 52: Commas (,) must be followed by white space. ········$options·=·array(0·=>·'00',·5=>·'05',·10=>·'10',·15=>·'15',·20=>·'20',·25=>·'25',·30=>·'30',·35=>·'35',·40=>·'40',·45=>·'45',·50=>·'50',·55=>·'55'); 57: Line exceeds maximum limit of 140 characters; contains 156 characters ········$settings->add(new·admin_setting_configselect('morningstarts_min',·get_string('config_morningstarts_min',·'block_mrbs'),get_string('config_morningstarts_min2',·'block_mrbs'),·0,·$options)); 58: Line exceeds maximum limit of 140 characters; contains 197 characters ········$settings->add(new·admin_setting_configselect('morningstarts_min',·get_string('config_morningstarts_min',·'block_mrbs'),get_string('config_morningstarts_min2',·'block_mrbs'),·0,·$options)); 58: Commas (,) must be followed by white space. ········$options·=·array(1·=>·'01',·2=>·'02',·3=>·'03',·4=>·'04',·5=>·'05',·6=>·'06',·7=>·'07',·8=>·'08',·9=>·'09',·10=>·'10',·11=>·'11',·12=>·'12',·13=>·'13',·14=>·'14',·15=>·'15',·16=>·'16',·17=>·'17',·18=>·'18',·19=>·'19',·20=>·'20',·21=>·'21',·22=>·'22',·23=>·'23'·····); 62: Line exceeds maximum limit of 140 characters; contains 275 characters ········$settings->add(new·admin_setting_configselect('eveningends',·get_string('config_eveningends',·'block_mrbs'),get_string('config_eveningends2',·'block_mrbs'),·19,·$options)); 63: Line exceeds maximum limit of 140 characters; contains 180 characters ········$settings->add(new·admin_setting_configselect('eveningends',·get_string('config_eveningends',·'block_mrbs'),get_string('config_eveningends2',·'block_mrbs'),·19,·$options)); 63: Commas (,) must be followed by white space. ········$options·=·array(0·=>·'00',·5=>·'05',·10=>·'10',·15=>·'15',·20=>·'20',·25=>·'25',·30=>·'30',·35=>·'35',·40=>·'40',·45=>·'45',·50=>·'50',·55=>·'55'); 67: Line exceeds maximum limit of 140 characters; contains 156 characters ········$settings->add(new·admin_setting_configselect('eveningends_min',·get_string('config_eveningends_min',·'block_mrbs'),get_string('config_eveningends_min2',·'block_mrbs'),·0,·$options)); 68: Line exceeds maximum limit of 140 characters; contains 191 characters ········$settings->add(new·admin_setting_configselect('eveningends_min',·get_string('config_eveningends_min',·'block_mrbs'),get_string('config_eveningends_min2',·'block_mrbs'),·0,·$options)); 68: Commas (,) must be followed by white space. ········$settings->add(new·admin_setting_configtextarea('periods',·get_string('config_periods',·'block_mrbs'),get_string('config_periods2',·'block_mrbs'),'')); 72: Line exceeds maximum limit of 140 characters; contains 159 characters ········$settings->add(new·admin_setting_configtextarea('periods',·get_string('config_periods',·'block_mrbs'),get_string('config_periods2',·'block_mrbs'),'')); 72: Commas (,) must be followed by white space. ········$settings->add(new·admin_setting_configtextarea('periods',·get_string('config_periods',·'block_mrbs'),get_string('config_periods2',·'block_mrbs'),'')); 72: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Line exceeds maximum limit of 140 characters; contains 292 characters $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('sunday',·'calendar'),1·=>·get_string('monday',·'calendar'),2·=>·get_string('tuesday',·'calendar'),3·=>·get_string('wednesday',·'calendar'),4·=>·get_string('thursday',·'calendar'),5·=>·get_string('friday',·'calendar'),6·=>·get_string('saturday',·'calendar')); 81: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configselect('weekstarts',·get_string('config_weekstarts',·'block_mrbs'),get_string('config_weekstarts2',·'block_mrbs'),·0,·$options)); 82: Line exceeds maximum limit of 140 characters; contains 168 characters $settings->add(new·admin_setting_configselect('weekstarts',·get_string('config_weekstarts',·'block_mrbs'),get_string('config_weekstarts2',·'block_mrbs'),·0,·$options)); 82: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('weeklength',·get_string('config_weeklength',·'block_mrbs'),get_string('config_weeklength2',·'block_mrbs'),·7,·PARAM_INT)); 85: Line exceeds maximum limit of 140 characters; contains 167 characters $settings->add(new·admin_setting_configtext('weeklength',·get_string('config_weeklength',·'block_mrbs'),get_string('config_weeklength2',·'block_mrbs'),·7,·PARAM_INT)); 85: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configselect('dateformat',·get_string('config_dateformat',·'block_mrbs'),get_string('config_dateformat2',·'block_mrbs'),·0,·$options)); 90: Line exceeds maximum limit of 140 characters; contains 168 characters $settings->add(new·admin_setting_configselect('dateformat',·get_string('config_dateformat',·'block_mrbs'),get_string('config_dateformat2',·'block_mrbs'),·0,·$options)); 90: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configselect('timeformat',·get_string('config_timeformat',·'block_mrbs'),get_string('config_timeformat2',·'block_mrbs'),·1,·$options)); 95: Line exceeds maximum limit of 140 characters; contains 168 characters $settings->add(new·admin_setting_configselect('timeformat',·get_string('config_timeformat',·'block_mrbs'),get_string('config_timeformat2',·'block_mrbs'),·1,·$options)); 95: Commas (,) must be followed by white space. //·$settings·=·new·admin_settingpage('block_mrbs_misc',·get_string('block_mrbs_misc','block_mrbs'));·//·it·would·be·good·to·be·able·to·break·this·page·up·somehow 98: Line exceeds maximum limit of 140 characters; contains 161 characters $settings->add(new·admin_setting_configtext('max_rep_entrys',·get_string('config_max_rep_entrys',·'block_mrbs'),·get_string('config_max_rep_entrys2',·'block_mrbs'),·365,·PARAM_INT)); 100: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('default_report_days',·get_string('config_default_report_days',·'block_mrbs'),·get_string('config_default_report_days2',·'block_mrbs'),·60,·PARAM_INT)); 103: Line exceeds maximum limit of 140 characters; contains 196 characters $settings->add(new·admin_setting_configtext('search_count',·get_string('config_search_count',·'block_mrbs'),·get_string('config_search_count2',·'block_mrbs'),·20,·PARAM_INT)); 106: Line exceeds maximum limit of 140 characters; contains 175 characters $settings->add(new·admin_setting_configtext('refresh_rate',·get_string('config_refresh_rate',·'block_mrbs'),·get_string('config_refresh_rate2',·'block_mrbs'),·0,·PARAM_INT)); 110: Line exceeds maximum limit of 140 characters; contains 174 characters $settings->add(new·admin_setting_configselect('area_list_format',·get_string('config_area_list_format',·'block_mrbs'),·get_string('config_area_list_format2',·'block_mrbs'),·'list',·$options)); 115: Line exceeds maximum limit of 140 characters; contains 192 characters $options·=·array('both'·=>·get_string('both',·'block_mrbs'),'description'·=>·get_string('description'),·'slot'·=>·get_string('slot',·'block_mrbs')); 118: Line exceeds maximum limit of 140 characters; contains 148 characters $options·=·array('both'·=>·get_string('both',·'block_mrbs'),'description'·=>·get_string('description'),·'slot'·=>·get_string('slot',·'block_mrbs')); 118: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configselect('monthly_view_entries_details',·get_string('config_monthly_view_entries_details',·'block_mrbs'),·get_string('config_monthly_view_entries_details2',·'block_mrbs'),·'both',·$options)); 119: Line exceeds maximum limit of 140 characters; contains 228 characters $settings->add(new·admin_setting_configselect('view_week_number',·get_string('config_view_week_number',·'block_mrbs'),·get_string('config_view_week_number2',·'block_mrbs'),·0,·$options)); 123: Line exceeds maximum limit of 140 characters; contains 187 characters $settings->add(new·admin_setting_configselect('times_right_side',·get_string('config_times_right_side',·'block_mrbs'),·get_string('config_times_right_side2',·'block_mrbs'),·0,·$options)); 127: Line exceeds maximum limit of 140 characters; contains 187 characters $settings->add(new·admin_setting_configselect('javascript_cursor',·get_string('config_javascript_cursor',·'block_mrbs'),·get_string('config_javascript_cursor2',·'block_mrbs'),·1,·$options)); 131: Line exceeds maximum limit of 140 characters; contains 190 characters $settings->add(new·admin_setting_configselect('show_plus_link',·get_string('config_show_plus_link',·'block_mrbs'),·get_string('config_show_plus_link2',·'block_mrbs'),·1,·$options)); 135: Line exceeds maximum limit of 140 characters; contains 181 characters $options·=·array('bgcolor'·=>·get_string('bgcolor',·'block_mrbs'),·'class'·=>·get_string('class',·'block_mrbs'),·'hybrid'·=>·get_string('hybrid',·'block_mrbs')); 138: Line exceeds maximum limit of 140 characters; contains 161 characters $settings->add(new·admin_setting_configselect('highlight_method',·get_string('config_highlight_method',·'block_mrbs'),·get_string('config_highlight_method2',·'block_mrbs'),·'hybrid',·$options)); 139: Line exceeds maximum limit of 140 characters; contains 194 characters $settings->add(new·admin_setting_configselect('default_view',·get_string('config_default_view',·'block_mrbs'),·get_string('config_default_view2',·'block_mrbs'),·'day',·$options)); 143: Line exceeds maximum limit of 140 characters; contains 179 characters $settings->add(new·admin_setting_configtext('default_room',·get_string('config_default_room',·'block_mrbs'),·get_string('config_default_room2',·'block_mrbs'),·0,·PARAM_INT)); 146: Line exceeds maximum limit of 140 characters; contains 174 characters //·$settings->add(new·admin_setting_configtext('cookie_path_override',·get_string('config_cookie_path_override',·'block_mrbs'),·get_string('config_cookie_path_override2',·'block_mrbs'),·'',·PARAM_LOCALURL)); 150: Line exceeds maximum limit of 140 characters; contains 207 characters $settings->add(new·admin_setting_configtext('entry_type_a',·get_string('config_entry_type',·'block_mrbs','A'),·get_string('config_entry_type2',·'block_mrbs','A'),·NULL,·PARAM_TEXT)); 165: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_a',·get_string('config_entry_type',·'block_mrbs','A'),·get_string('config_entry_type2',·'block_mrbs','A'),·NULL,·PARAM_TEXT)); 165: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_a',·get_string('config_entry_type',·'block_mrbs','A'),·get_string('config_entry_type2',·'block_mrbs','A'),·NULL,·PARAM_TEXT)); 165: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_a',·get_string('config_entry_type',·'block_mrbs','A'),·get_string('config_entry_type2',·'block_mrbs','A'),·NULL,·PARAM_TEXT)); 165: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_b',·get_string('config_entry_type',·'block_mrbs','B'),·get_string('config_entry_type2',·'block_mrbs','B'),·NULL,·PARAM_TEXT)); 168: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_b',·get_string('config_entry_type',·'block_mrbs','B'),·get_string('config_entry_type2',·'block_mrbs','B'),·NULL,·PARAM_TEXT)); 168: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_b',·get_string('config_entry_type',·'block_mrbs','B'),·get_string('config_entry_type2',·'block_mrbs','B'),·NULL,·PARAM_TEXT)); 168: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_b',·get_string('config_entry_type',·'block_mrbs','B'),·get_string('config_entry_type2',·'block_mrbs','B'),·NULL,·PARAM_TEXT)); 168: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_c',·get_string('config_entry_type',·'block_mrbs','C'),·get_string('config_entry_type2',·'block_mrbs','C'),·NULL,·PARAM_TEXT)); 171: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_c',·get_string('config_entry_type',·'block_mrbs','C'),·get_string('config_entry_type2',·'block_mrbs','C'),·NULL,·PARAM_TEXT)); 171: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_c',·get_string('config_entry_type',·'block_mrbs','C'),·get_string('config_entry_type2',·'block_mrbs','C'),·NULL,·PARAM_TEXT)); 171: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_c',·get_string('config_entry_type',·'block_mrbs','C'),·get_string('config_entry_type2',·'block_mrbs','C'),·NULL,·PARAM_TEXT)); 171: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_d',·get_string('config_entry_type',·'block_mrbs','D'),·get_string('config_entry_type2',·'block_mrbs','D'),·NULL,·PARAM_TEXT)); 174: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_d',·get_string('config_entry_type',·'block_mrbs','D'),·get_string('config_entry_type2',·'block_mrbs','D'),·NULL,·PARAM_TEXT)); 174: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_d',·get_string('config_entry_type',·'block_mrbs','D'),·get_string('config_entry_type2',·'block_mrbs','D'),·NULL,·PARAM_TEXT)); 174: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_d',·get_string('config_entry_type',·'block_mrbs','D'),·get_string('config_entry_type2',·'block_mrbs','D'),·NULL,·PARAM_TEXT)); 174: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_e',·get_string('config_entry_type',·'block_mrbs','E'),·get_string('config_entry_type2',·'block_mrbs','E'),·get_string('external','block_mrbs'),·PARAM_TEXT)); 177: Line exceeds maximum limit of 140 characters; contains 213 characters $settings->add(new·admin_setting_configtext('entry_type_e',·get_string('config_entry_type',·'block_mrbs','E'),·get_string('config_entry_type2',·'block_mrbs','E'),·get_string('external','block_mrbs'),·PARAM_TEXT)); 177: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_e',·get_string('config_entry_type',·'block_mrbs','E'),·get_string('config_entry_type2',·'block_mrbs','E'),·get_string('external','block_mrbs'),·PARAM_TEXT)); 177: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_e',·get_string('config_entry_type',·'block_mrbs','E'),·get_string('config_entry_type2',·'block_mrbs','E'),·get_string('external','block_mrbs'),·PARAM_TEXT)); 177: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_f',·get_string('config_entry_type',·'block_mrbs','F'),·get_string('config_entry_type2',·'block_mrbs','F'),·NULL,·PARAM_TEXT)); 180: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_f',·get_string('config_entry_type',·'block_mrbs','F'),·get_string('config_entry_type2',·'block_mrbs','F'),·NULL,·PARAM_TEXT)); 180: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_f',·get_string('config_entry_type',·'block_mrbs','F'),·get_string('config_entry_type2',·'block_mrbs','F'),·NULL,·PARAM_TEXT)); 180: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_f',·get_string('config_entry_type',·'block_mrbs','F'),·get_string('config_entry_type2',·'block_mrbs','F'),·NULL,·PARAM_TEXT)); 180: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_g',·get_string('config_entry_type',·'block_mrbs','G'),·get_string('config_entry_type2',·'block_mrbs','G'),·NULL,·PARAM_TEXT)); 183: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_g',·get_string('config_entry_type',·'block_mrbs','G'),·get_string('config_entry_type2',·'block_mrbs','G'),·NULL,·PARAM_TEXT)); 183: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_g',·get_string('config_entry_type',·'block_mrbs','G'),·get_string('config_entry_type2',·'block_mrbs','G'),·NULL,·PARAM_TEXT)); 183: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_g',·get_string('config_entry_type',·'block_mrbs','G'),·get_string('config_entry_type2',·'block_mrbs','G'),·NULL,·PARAM_TEXT)); 183: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_h',·get_string('config_entry_type',·'block_mrbs','H'),·get_string('config_entry_type2',·'block_mrbs','H'),·NULL,·PARAM_TEXT)); 186: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_h',·get_string('config_entry_type',·'block_mrbs','H'),·get_string('config_entry_type2',·'block_mrbs','H'),·NULL,·PARAM_TEXT)); 186: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_h',·get_string('config_entry_type',·'block_mrbs','H'),·get_string('config_entry_type2',·'block_mrbs','H'),·NULL,·PARAM_TEXT)); 186: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_h',·get_string('config_entry_type',·'block_mrbs','H'),·get_string('config_entry_type2',·'block_mrbs','H'),·NULL,·PARAM_TEXT)); 186: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('entry_type_i',·get_string('config_entry_type',·'block_mrbs','I'),·get_string('config_entry_type2',·'block_mrbs','I'),·get_string('internal','block_mrbs'),·PARAM_TEXT)); 189: Line exceeds maximum limit of 140 characters; contains 213 characters $settings->add(new·admin_setting_configtext('entry_type_i',·get_string('config_entry_type',·'block_mrbs','I'),·get_string('config_entry_type2',·'block_mrbs','I'),·get_string('internal','block_mrbs'),·PARAM_TEXT)); 189: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_i',·get_string('config_entry_type',·'block_mrbs','I'),·get_string('config_entry_type2',·'block_mrbs','I'),·get_string('internal','block_mrbs'),·PARAM_TEXT)); 189: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_i',·get_string('config_entry_type',·'block_mrbs','I'),·get_string('config_entry_type2',·'block_mrbs','I'),·get_string('internal','block_mrbs'),·PARAM_TEXT)); 189: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_j',·get_string('config_entry_type',·'block_mrbs','J'),·get_string('config_entry_type2',·'block_mrbs','J'),·NULL,·PARAM_TEXT)); 192: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('entry_type_j',·get_string('config_entry_type',·'block_mrbs','J'),·get_string('config_entry_type2',·'block_mrbs','J'),·NULL,·PARAM_TEXT)); 192: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_j',·get_string('config_entry_type',·'block_mrbs','J'),·get_string('config_entry_type2',·'block_mrbs','J'),·NULL,·PARAM_TEXT)); 192: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('entry_type_j',·get_string('config_entry_type',·'block_mrbs','J'),·get_string('config_entry_type2',·'block_mrbs','J'),·NULL,·PARAM_TEXT)); 192: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configselect('mail_admin_on_bookings',·get_string('config_mail_admin_on_bookings',·'block_mrbs'),·get_string('config_mail_admin_on_bookings2',·'block_mrbs'),·'0',·$options)); 196: Line exceeds maximum limit of 140 characters; contains 207 characters $settings->add(new·admin_setting_configselect('mail_area_admin_on_bookings',·get_string('config_mail_area_admin_on_bookings',·'block_mrbs'),·get_string('config_mail_area_admin_on_bookings2',·'block_mrbs'),·0,·$options)); 200: Line exceeds maximum limit of 140 characters; contains 220 characters $settings->add(new·admin_setting_configselect('mail_room_admin_on_bookings',·get_string('config_mail_room_admin_on_bookings',·'block_mrbs'),·get_string('config_mail_room_admin_on_bookings2',·'block_mrbs'),·0,·$options)); 204: Line exceeds maximum limit of 140 characters; contains 220 characters $settings->add(new·admin_setting_configselect('mail_admin_on_delete',·get_string('config_mail_admin_on_delete',·'block_mrbs'),·get_string('config_mail_admin_on_delete2',·'block_mrbs'),·0,·$options)); 208: Line exceeds maximum limit of 140 characters; contains 199 characters $settings->add(new·admin_setting_configselect('mail_admin_all',·get_string('config_mail_admin_all',·'block_mrbs'),·get_string('config_mail_admin_all2',·'block_mrbs'),·0,·$options)); 212: Line exceeds maximum limit of 140 characters; contains 181 characters $settings->add(new·admin_setting_configselect('mail_details',·get_string('config_mail_details',·'block_mrbs'),·get_string('config_mail_details2',·'block_mrbs'),·0,·$options)); 216: Line exceeds maximum limit of 140 characters; contains 175 characters $settings->add(new·admin_setting_configselect('mail_booker',·get_string('config_mail_booker',·'block_mrbs'),·get_string('config_mail_booker2',·'block_mrbs'),·0,·$options)); 220: Line exceeds maximum limit of 140 characters; contains 172 characters $settings->add(new·admin_setting_configtext('mail_from',·get_string('config_mail_from',·'block_mrbs'),get_string('config_mail_from2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 223: Line exceeds maximum limit of 140 characters; contains 182 characters $settings->add(new·admin_setting_configtext('mail_from',·get_string('config_mail_from',·'block_mrbs'),get_string('config_mail_from2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 223: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('mail_recipients',·get_string('config_mail_recipients',·'block_mrbs'),get_string('config_mail_recipients2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 226: Line exceeds maximum limit of 140 characters; contains 200 characters $settings->add(new·admin_setting_configtext('mail_recipients',·get_string('config_mail_recipients',·'block_mrbs'),get_string('config_mail_recipients2',·'block_mrbs'),·$CFG->supportemail,·PARAM_TEXT)); 226: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('mail_cc',·get_string('config_mail_cc',·'block_mrbs'),get_string('config_mail_cc2',·'block_mrbs'),·NULL,·PARAM_TEXT)); 229: Line exceeds maximum limit of 140 characters; contains 162 characters $settings->add(new·admin_setting_configtext('mail_cc',·get_string('config_mail_cc',·'block_mrbs'),get_string('config_mail_cc2',·'block_mrbs'),·NULL,·PARAM_TEXT)); 229: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('mail_cc',·get_string('config_mail_cc',·'block_mrbs'),get_string('config_mail_cc2',·'block_mrbs'),·NULL,·PARAM_TEXT)); 229: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" $settings->add(new·admin_setting_configtext('cronfile',·get_string('cronfile',·'block_mrbs'),get_string('cronfiledesc',·'block_mrbs'),·NULL,·PARAM_TEXT)); 232: Line exceeds maximum limit of 140 characters; contains 154 characters $settings->add(new·admin_setting_configtext('cronfile',·get_string('cronfile',·'block_mrbs'),get_string('cronfiledesc',·'block_mrbs'),·NULL,·PARAM_TEXT)); 232: Commas (,) must be followed by white space. $settings->add(new·admin_setting_configtext('cronfile',·get_string('cronfile',·'block_mrbs'),get_string('cronfiledesc',·'block_mrbs'),·NULL,·PARAM_TEXT)); 232: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" 2: The opening enable_periods·==0)·{ 39: Expected "if (...) {\n"; found "if(...) {\n" $options·=·array(0·=>·get_string('config_date_mmddyy',·'block_mrbs'),1·=>·get_string('config_date_ddmmyy',·'block_mrbs')); 89: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('timeformat_12',·'calendar'),1·=>·get_string('timeformat_24',·'calendar')); 94: Commas (,) must be followed by white space. $options·=·array('list'·=>·get_string('list'),'select'·=>·get_string('select')); 114: Commas (,) must be followed by white space. $options·=·array('day'·=>·get_string('day'),·'month'·=>·get_string('month','block_mrbs'),·'week'·=>·get_string('week')); 142: Commas (,) must be followed by white space. $options·=·array(0·=>·get_string('pagewindow',·'block_mrbs'),·1·=>·get_string('newwindow',·'block_mrbs')); 20: Line exceeds 100 characters; contains 106 characters $options·=·array(0·=>·get_string('config_date_mmddyy',·'block_mrbs'),1·=>·get_string('config_date_ddmmyy',·'block_mrbs')); 89: Line exceeds 100 characters; contains 122 characters $options·=·array(0·=>·get_string('timeformat_12',·'calendar'),1·=>·get_string('timeformat_24',·'calendar')); 94: Line exceeds 100 characters; contains 108 characters $options·=·array('day'·=>·get_string('day'),·'month'·=>·get_string('month','block_mrbs'),·'week'·=>·get_string('week')); 142: Line exceeds 100 characters; contains 120 characters $settings->add(new·admin_setting_configselect('',·get_string('config_',·'block_mrbs'),·get_string('config_2',·'block_mrbs'),·'',·$options)); 157: Line exceeds 100 characters; contains 140 characters $settings->add(new·admin_setting_configtext('',·get_string('config_',·'block_mrbs'),·get_string('config_2',·'block_mrbs'),·0,·PARAM_INT)); 161: Line exceeds 100 characters; contains 138 characters /* 109: This comment is 65% valid code; is this commented out code? //·should·this·be·the·same·as·the·Moodle·Site·cookie·path? 149: This comment is 46% valid code; is this commented out code? /* 153: This comment is 63% valid code; is this commented out code? blocks/mrbs/version.php 2: The opening $dbarea->id,·'area_name'=>$area_name_q,·'sesskey'=>sesskey())); 81: Line exceeds maximum limit of 140 characters; contains 142 characters ········echo·'
  • '.s($dbarea->area_name).'·('.get_string('edit').')·('.get_string('delete').")\n"; 84: Line exceeds maximum limit of 140 characters; contains 188 characters ············$delroomurl·=·new·moodle_url('/blocks/mrbs/web/del.php',·array('area'=>$area,·'room'=>$dbroom->id,·'type'=>'room',·'sesskey'=>sesskey())); 100: Line exceeds maximum limit of 140 characters; contains 150 characters ············echo·'
  • '.s($dbroom->room_name).'·('.s($dbroom->description).',·'.$dbroom->capacity.')·('.get_string('edit').')·('.get_string('delete').")\n"; 101: Line exceeds maximum limit of 140 characters; contains 217 characters 2: The opening
    '.get_string('areas','block_mrbs').'
    '; 65: Commas (,) must be followed by white space. echo·'
    '.get_string('rooms','block_mrbs').'·'; 66: Commas (,) must be followed by white space. ····echo·get_string('in','block_mrbs')."·".s($area_name); 68: Commas (,) must be followed by white space. ····echo·get_string('noareas','block_mrbs'); 76: Commas (,) must be followed by white space. ········echo·get_string('norooms','block_mrbs'); 95: Commas (,) must be followed by white space. ····echo·get_string('noarea','block_mrbs'); 106: Commas (,) must be followed by white space. echo·''.get_string('addarea','block_mrbs').''; 112: Commas (,) must be followed by white space. echo·''; 116: Commas (,) must be followed by white space. ····echo·''.get_string('addroom','block_mrbs').''; 118: Commas (,) must be followed by white space. ····echo·''.get_string('capacity','block_mrbs').':·'; 123: Commas (,) must be followed by white space. ····echo·''; 124: Commas (,) must be followed by white space. include·'trailer.php'; 130: "include" must be immediately followed by an open parenthesis include·'trailer.php'; 130: File is being unconditionally included; use "require" instead $thisurl·=·new·moodle_url('/blocks/mrbs/web/admin.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 36: Line exceeds 100 characters; contains 108 characters ········$editroomurl·=·new·moodle_url('/blocks/mrbs/web/edit_area_room.php',·array('area'=>$dbarea->id,·'sesskey'=>sesskey())); 82: Line exceeds 100 characters; contains 127 characters ········$delareaurl·=·new·moodle_url('/blocks/mrbs/web/del.php',·array('area'=>$dbarea->id,·'type'=>'area',·'sesskey'=>sesskey())); 83: Line exceeds 100 characters; contains 131 characters ········//····$res·=·sql_query("select·id,·room_name,·description,·capacity·from·$tbl_room·where·area_id=$area·order·by·room_name"); 94: Line exceeds 100 characters; contains 132 characters ········//····$res·=·sql_query("select·id,·room_name,·description,·capacity·from·$tbl_room·where·area_id=$area·order·by·room_name"); 94: This comment is 60% valid code; is this commented out code? ············$editroomurl·=·new·moodle_url('/blocks/mrbs/web/edit_area_room.php',·array('room'=>$dbroom->id,·'sesskey'=>sesskey())); 99: Line exceeds 100 characters; contains 131 characters $addareaurl·=·new·moodle_url('/blocks/mrbs/web/add.php',·array('type'=>'area',·'sesskey'=>sesskey())); 109: Line exceeds 100 characters; contains 102 characters echo·''; 116: Line exceeds 100 characters; contains 105 characters ····echo·''; 121: Line exceeds 100 characters; contains 101 characters ····echo·''; 122: Line exceeds 100 characters; contains 108 characters ····echo·''; 123: Line exceeds 100 characters; contains 115 characters //echo·''.get_string('browserlang','block_mrbs').'·'.$HTTP_ACCEPT_LANGUAGE.'·'.get_string('postbrowserlang','block_mrbs'); 129: Line exceeds 100 characters; contains 128 characters //echo·''.get_string('browserlang','block_mrbs').'·'.$HTTP_ACCEPT_LANGUAGE.'·'.get_string('postbrowserlang','block_mrbs'); 129: This comment is 67% valid code; is this commented out code? blocks/mrbs/web/auth_moodle.php 2: The opening lang,0,2));·//I·think·this·should·be·same·as·the·locale·based·on·the·Moodle·user's·langage 290: Commas (,) must be followed by white space. ····define·("MAIL_ADMIN_LANG",·substr($USER->lang,0,2));·//I·think·this·should·be·same·as·the·locale·based·on·the·Moodle·user's·langage 290: Commas (,) must be followed by white space. $mail["new_entry"]·=·get_string('mail_new_entry','block_mrbs'); 314: Commas (,) must be followed by white space. $mail["changed_entry"]·=·get_string('mail_changed_entry','block_mrbs'); 318: Commas (,) must be followed by white space. $mail["deleted_entry"]·=·get_string('mail_deleted_entry','block_mrbs'); 322: Commas (,) must be followed by white space. ········$locale=substr($USER->lang,0,2); 331: Commas (,) must be followed by white space. ········$locale=substr($USER->lang,0,2); 331: Commas (,) must be followed by white space. ····$default_language_tokens·=·substr($USER->lang,0,2);·//this·could·be·either·set·to·use·the·user·default·(or·the·site·default) 349: Commas (,) must be followed by white space. ····$default_language_tokens·=·substr($USER->lang,0,2);·//this·could·be·either·set·to·use·the·user·default·(or·the·site·default) 349: Commas (,) must be followed by white space. ····$typel["K"]·=·get_string('importedbooking','block_mrbs'); 397: Commas (,) must be followed by white space. ····$typel["L"]·=·get_string('importedbookingmoved','block_mrbs'); 398: Commas (,) must be followed by white space. if·($enable_periods·==·0)·{·//if·we·are·not·using·periods·then·set·the·following·values,·prevents·error·of·unset·variables 66: Line exceeds 100 characters; contains 122 characters define·("MAIL_DOMAIN",·'');·//I·am·not·including·this·option·as·we·should·be·using·Moodle·email·options·-·see·CONTRIB-630 239: Line exceeds 100 characters; contains 121 characters define·("MAIL_USERNAME_SUFFIX",·'');·//I·am·not·including·this·option·as·we·should·be·using·Moodle·email·options·-·see·CONTRIB-630 244: Line exceeds 100 characters; contains 130 characters define·("MAIL_ADMIN_BACKEND",·"mail");·//I·am·not·including·this·option·as·we·should·be·using·Moodle·email·options·-·see·CONTRIB-630 248: Line exceeds 100 characters; contains 132 characters #·Sendmail·settings·//I'm·not·going·to·include·these·as·we·will·use·Moodle·mail·defaults·-·see·CONTRIB-630 251: Line exceeds 100 characters; contains 106 characters define·("SMTP_PORT",·25);·//I'm·not·going·to·provide·this·option·since·Moodle·does·not·provide·it·-·see·also·MDL-15922·and·MDL-15923 269: Line exceeds 100 characters; contains 132 characters ····define·("MAIL_ADMIN_LANG",·substr($USER->lang,0,2));·//I·think·this·should·be·same·as·the·locale·based·on·the·Moodle·user's·langage 290: Line exceeds 100 characters; contains 135 characters //Set·locale·-·previously·in·language.php·which·is·has·now·been·removed,·may·be·redundant·and·unnecessary·but·just·in·case 328: Line exceeds 100 characters; contains 122 characters //·TODO:·Evaluate·how·MRBS·uses·locale,·convert·make·MRBS·block·more·consistent·with·Moodle·approach·to·locales 347: Line exceeds 100 characters; contains 111 characters ····$default_language_tokens·=·substr($USER->lang,0,2);·//this·could·be·either·set·to·use·the·user·default·(or·the·site·default) 349: Line exceeds 100 characters; contains 128 characters $override_locale·=·"";·//this·should·not·be·an·option·in·Moodle·MRBS·block,·let's·keep·it·simple·and·just·use·Moodle's·$USER->lang 364: Line exceeds 100 characters; contains 130 characters $mrbs_admin_email·=·$cfg_mrbs->admin_email;·//·"admin@MyMoodleSite.com"; 35: This comment is 67% valid code; is this commented out code? //·echo·$default_language_tokens; 353: This comment is 60% valid code; is this commented out code? blocks/mrbs/web/day.php $baseurl·=·new·moodle_url('/blocks/mrbs/web/day.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year));·//·Used·as·basis·for·URLs·throughout·this·file 56: Line exceeds maximum limit of 140 characters; contains 153 characters 2: The opening "; 87: Line indented incorrectly; expected at least 4 spaces, found 3 ···//Show·all·avaliable·areas 89: Line indented incorrectly; expected at least 4 spaces, found 3 ···echo·"".get_string('areas','block_mrbs')."
    "; 90: Line indented incorrectly; expected at least 4 spaces, found 3 ···echo·"".get_string('areas','block_mrbs')."
    "; 90: Commas (,) must be followed by white space. ···//·need·to·show·either·a·select·box·or·a·normal·html·list, 92: Line indented incorrectly; expected at least 4 spaces, found 3 ···//·depending·on·the·settings·in·config.inc.php 93: Line indented incorrectly; expected at least 4 spaces, found 3 ···echo·"\n"; 108: Line indented incorrectly; expected at least 4 spaces, found 3 ···//insert·the·goto·room·form 110: Line indented incorrectly; expected at least 4 spaces, found 3 ···$gotoroom·=·new·moodle_url('/blocks/mrbs/web/gotoroom.php'); 111: Line indented incorrectly; expected at least 4 spaces, found 3 ···$gotostr·=·get_string('gotoroom',·'block_mrbs'); 112: Line indented incorrectly; expected at least 4 spaces, found 3 ···$gostr·=·get_string('goroom',·'block_mrbs'); 113: Line indented incorrectly; expected at least 4 spaces, found 3 ···$gotoval·=·''; 114: Line indented incorrectly; expected at least 4 spaces, found 3 ···$gotomsg·=·''; 115: Line indented incorrectly; expected at least 4 spaces, found 3 ···echo·"

    Find·a·room

    120: Line indented incorrectly; expected at least 4 spaces, found 3 ···//Draw·the·three·month·calendars 129: Line indented incorrectly; expected at least 4 spaces, found 3 ···minicals($year,·$month,·$day,·$area,·'',·'day'); 130: Line indented incorrectly; expected at least 4 spaces, found 3 ···echo·"
    '.get_string('name').':·
    '.get_string('description').':·
    '.get_string('capacity','block_mrbs').':·
    "; 131: Line indented incorrectly; expected at least 4 spaces, found 3 ···if·($area_list_format·==·"select")·{ 94: Line indented incorrectly; expected 4 spaces, found 3 ·······echo·make_area_select_html(new·moodle_url('/blocks/mrbs/web/day.php'),·$area,·$year,·$month,·$day);·//·from·functions.php 95: Line indented incorrectly; expected at least 8 spaces, found 7 ···}·else·{ 96: Line indented incorrectly; expected 4 spaces, found 3 ࢐//·show·the·standard·html·list 97: Line indented incorrectly; expected at least 8 spaces, found 1 ·······$areas·=·$DB->get_records('mrbs_area',·null,·'area_name'); 98: Line indented incorrectly; expected at least 8 spaces, found 7 ·······foreach·($areas·as·$dbarea)·{ 99: Line indented incorrectly; expected 8 spaces, found 7 ···········echo·'out(true,·array('area'=>$dbarea->id))).'">'; 100: Line indented incorrectly; expected at least 12 spaces, found 11 ···········if·($dbarea->id·==·$area)·{ 101: Line indented incorrectly; expected 12 spaces, found 11 ···············echo·""·.·s($dbarea->area_name)·.·"
    \n"; 102: Line indented incorrectly; expected at least 16 spaces, found 15 ···········}·else·{ 103: Line indented incorrectly; expected 12 spaces, found 11 ···············echo·s($dbarea->area_name)·.·"
    \n"; 104: Line indented incorrectly; expected at least 16 spaces, found 15 ···if·($roomnotfound)·{ 116: Line indented incorrectly; expected 4 spaces, found 3 ·······$gotoval·=·$roomnotfound; 117: Line indented incorrectly; expected at least 8 spaces, found 7 ·······$gotomsg·=·'·'.get_string('noroomsfound',·'block_mrbs'); 118: Line indented incorrectly; expected at least 8 spaces, found 7 $i=·mktime(12,0,0,$month,$day-1,$year); 137: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-1,$year); 137: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-1,$year); 137: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-1,$year); 137: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-1,$year); 137: Commas (,) must be followed by white space. $yy·=·date("Y",$i); 138: Commas (,) must be followed by white space. $ym·=·date("m",$i); 139: Commas (,) must be followed by white space. $yd·=·date("d",$i); 140: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+1,$year); 142: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+1,$year); 142: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+1,$year); 142: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+1,$year); 142: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+1,$year); 142: Commas (,) must be followed by white space. $ty·=·date("Y",$i); 143: Commas (,) must be followed by white space. $tm·=·date("m",$i); 144: Commas (,) must be followed by white space. $td·=·date("d",$i); 145: Commas (,) must be followed by white space. ····echo·"

    ".get_string('noareas','block_mrbs')."

    "; 157: Commas (,) must be followed by white space. ····include·"trailer.php"; 161: "include" must be immediately followed by an open parenthesis ····࢐//·$today·is·a·map·of·the·screen·that·will·be·displayed 177: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//·It·looks·like: 178: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//·····$today[Room·ID][Time][id] 179: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//··························[color] 180: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//··························[data] 181: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//··························[long_descr] 182: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····//·Fill·in·the·map·for·this·meeting.·Start·at·the·meeting·start·time, 184: Line indented incorrectly; expected at least 8 spaces, found 5 ············if(empty($today[$entry->rid][date($format,$t)]))·{ 197: Expected "if (...) {\n"; found "if(...) {\n" ············if(empty($today[$entry->rid][date($format,$t)]))·{ 197: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["id"]····=·$entry->eid; 198: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["color"]·=·$entry->type; 199: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["data"]··=·""; 200: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["long_descr"]··=·""; 201: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["double_booked"]··=·false; 202: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["id"]····.=·','.$entry->eid; 204: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["data"]··.=·"\n"; 205: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["long_descr"]··.=·","; 206: Commas (,) must be followed by white space. ················$today[$entry->rid][date($format,$t)]["double_booked"]··=·true; 207: Commas (,) must be followed by white space. ············$today[$entry->rid][date($format,$am7)]["data"]·.=·$entry->name; 214: Commas (,) must be followed by white space. ············$today[$entry->rid][date($format,$am7)]["long_descr"]·.=·$entry->description; 215: Commas (,) must be followed by white space. ············$today[$entry->rid][date($format,$start_t)]["data"]·.=·$entry->name; 217: Commas (,) must be followed by white space. ············$today[$entry->rid][date($format,$start_t)]["long_descr"]·.=·$entry->description; 218: Commas (,) must be followed by white space. ········echo·"\$am7·=·$am7·or·"·.·date($format,$am7)·.·"\n"; 226: Commas (,) must be followed by white space. ········echo·"\$pm7·=·$pm7·or·"·.·date($format,$pm7)·.·"\n"; 227: Commas (,) must be followed by white space. ········if·(gettype($today)·==·"array") 228: Inline control structures are not allowed ············while·(list($w_k,·$w_v)·=·each($today)) 229: Inline control structures are not allowed ················while·(list($t_k,·$t_v)·=·each($w_v)) 230: Inline control structures are not allowed ····················while·(list($k_k,·$k_v)·=·each($t_v)) 231: Inline control structures are not allowed ········else·echo·"today·is·not·an·array!\n"; 233: Inline control structures are not allowed ········echo·"

    ".get_string('no_rooms_for_area','block_mrbs')."

    "; 246: Commas (,) must be followed by white space. ············$output·=·"<<".get_string('daybefore','block_mrbs')." 257: Commas (,) must be followed by white space. ············".get_string('gototoday','block_mrbs')." 258: Commas (,) must be followed by white space. ············".get_string('dayafter','block_mrbs').">>\n"; 259: Commas (,) must be followed by white space. ················.·((FALSE·!=·$times_right_side)·?·"true"·:·"false")·.·",·" 269: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ················.·"\""·.·get_string('click_to_reserve','block_mrbs')·.·"\"" 271: Commas (,) must be followed by white space. ········echo·"".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 277: Commas (,) must be followed by white space. ············title=\""·.·get_string('viewweek','block_mrbs')·.·"· {$room->description}\">" 284: Commas (,) must be followed by white space. ········if·(·FALSE·!=·$times_right_side·)·{ 290: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ············echo·"".·(·$enable_periods··?·get_string('period','block_mrbs')·:·get_string('time')·) 291: Commas (,) must be followed by white space. ············if(·$enable_periods·)·{ 325: Expected "if (...) {\n"; found "if(...) {\n" ····················.·get_string('highlight_line','block_mrbs')·.·"\">" 328: Commas (,) must be followed by white space. ····················.·get_string('highlight_line','block_mrbs')·.·"\">" 332: Commas (,) must be followed by white space. ····················.·userdate($t,hour_min_format())·.·"\n"; 333: Commas (,) must be followed by white space. ················if(isset($today[$room->id][$time_t]["id"]))·{ 338: Expected "if (...) {\n"; found "if(...) {\n" ····················if($double_booked)·$color='DoubleBooked'; 344: Inline control structures are not allowed ················if·(isset($id)) 352: Inline control structures are not allowed ················elseif·($time_t·==·$timetohighlight) 354: Usage of ELSEIF not allowed; use ELSE IF instead ················else 356: Inline control structures are not allowed ················if(!isset($id))·{ 362: Expected "if (...) {\n"; found "if(...) {\n" ····················$hour·=·date("H",$t); 363: Commas (,) must be followed by white space. ····················$minute··=·date("i",$t); 364: Commas (,) must be followed by white space. ························if(·$enable_periods·)·{ 375: Expected "if (...) {\n"; found "if(...) {\n" ····················$descrs=split("\n",$descr); 392: The use of function split() is forbidden ····················$descrs=split("\n",$descr); 392: Commas (,) must be followed by white space. ····················$long_descrs=split(",",$long_descr); 393: The use of function split() is forbidden ····················$long_descrs=split(",",$long_descr); 393: Commas (,) must be followed by white space. ····················$ids=split(",",$id); 394: The use of function split() is forbidden ····················$ids=split(",",$id); 394: Commas (,) must be followed by white space. ················for($i=0;$i" 422: Commas (,) must be followed by white space. ····················}·else·{ 424: Line indented incorrectly; expected 16 spaces, found 20 ····························.·get_string('highlight_line','block_mrbs')·.·"\">" 427: Commas (,) must be followed by white space. ····························.·userdate($t,hour_min_format())·.·"\n"; 428: Commas (,) must be followed by white space. include·"trailer.php"; 440: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 440: File is being unconditionally included; use "require" instead $am7=mktime($morningstarts,$morningstarts_minutes,0,$month,$day,$year,is_dst($month,$day,$year,$morningstarts)); 83: Line exceeds 100 characters; contains 112 characters $pm7=mktime($eveningends,$eveningends_minutes,0,$month,$day,$year,is_dst($month,$day,$year,$eveningends)); 84: Line exceeds 100 characters; contains 106 characters ·······echo·make_area_select_html(new·moodle_url('/blocks/mrbs/web/day.php'),·$area,·$year,·$month,·$day);·//·from·functions.php 95: Line exceeds 100 characters; contains 128 characters ············$output·=·"<<".get_string('daybefore','block_mrbs')." 257: Line exceeds 100 characters; contains 137 characters ············".get_string('gototoday','block_mrbs')." 258: Line exceeds 100 characters; contains 104 characters ············".get_string('dayafter','block_mrbs').">>\n"; 259: Line exceeds 100 characters; contains 127 characters ········if·($javascript_cursor)·{·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 265: Line exceeds 100 characters; contains 111 characters ········echo·"".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 277: Line exceeds 100 characters; contains 120 characters ········$weekurl·=·new·moodle_url('/blocks/mrbs/web/week.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day,·'area'=>$area)); 280: Line exceeds 100 characters; contains 130 characters ············echo·"".·(·$enable_periods··?·get_string('period','block_mrbs')·:·get_string('time')·) 291: Line exceeds 100 characters; contains 115 characters ················//·red·if·were·hightlighting·that·line·and·a·nice·attractive·green·if·the·room·is·booked. 350: Line exceeds 100 characters; contains 105 characters ··················································array('room'=>$room->id,·'area'=>$area,·'year'=>$year,·'month'=>$month,·'day'=>$day)); 374: Line exceeds 100 characters; contains 136 characters ····························echo·"out(true,·array('period'=>$time_t_stripped)))."\">"; 376: Line exceeds 100 characters; contains 109 characters ····························echo·"out(true,·array('hour'=>$hour,·'minute'=>$minute)))."\">"; 378: Line exceeds 100 characters; contains 115 characters ························echo·'pix_url('new',·'block_mrbs').'"·width="10"·height="10"·border="0">'; 380: Line exceeds 100 characters; contains 123 characters ················································array('id'=>$ids[$i],·'area'=>$area,·'day'=>$day,·'month'=>$month,·'year'=>$year)); 402: Line exceeds 100 characters; contains 131 characters ························echo·"·$descrs[$i]
    "; 405: Line exceeds 100 characters; contains 106 characters ························echo·" \" 
    "; 407: Line exceeds 100 characters; contains 108 characters //$room·=·optional_param('room',·0,·PARAM_INT); 28: This comment is 60% valid code; is this commented out code? blocks/mrbs/web/del.php 2: The opening "; 105: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"

    "·.··get_string('sure','block_mrbs')·.·"

    "; 106: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"

    "·.··get_string('sure','block_mrbs')·.·"

    "; 106: Commas (,) must be followed by white space. ࢐࢐echo·'

    out(true,·array('confirm'=>'Y',·'sesskey'=>sesskey())).'">'.get_string('yes').""; 107: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"

    "; 109: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐include·"trailer.php"; 110: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐include·"trailer.php"; 110: "include" must be immediately followed by an open parenthesis ࢐࢐࢐echo·get_string('deletefollowing','block_mrbs')·.·":
      "; 94: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐echo·get_string('deletefollowing','block_mrbs')·.·":
        "; 94: Commas (,) must be followed by white space. ࢐࢐࢐echo·"
      "; 102: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐} 103: Closing brace indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐࢐echo·'
    • '.s($booking->name).'·('; 97: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐echo·time_date_string($booking->start_time)·.·"·->·"; 98: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐echo·time_date_string($booking->end_time)·.·")
    • "; 99: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐} 100: Closing brace indented incorrectly; expected 12 spaces, found 3 if($type·==·"area")·{ 114: Expected "if (...) {\n"; found "if(...) {\n" ࢐//·We·are·only·going·to·let·them·delete·an·area·if·there·are 115: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·no·rooms.·its·easier 116: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($n·==·0)·{ 118: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·OK,·nothing·there,·lets·blast·it·away 119: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·Redirect·back·to·the·admin·page 122: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐}·else·{ 124: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·There·are·rooms·left·in·the·area 125: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐print_header_mrbs($day,·$month,·$year,·$area); 126: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·'

      '.get_string('delarea','block_mrbs').'

      '; 128: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·'

      '.get_string('delarea','block_mrbs').'

      '; 128: Commas (,) must be followed by white space. ࢐࢐echo·''·.·get_string('backadmin','block_mrbs')·.·""; 129: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·''·.·get_string('backadmin','block_mrbs')·.·""; 129: Commas (,) must be followed by white space. ࢐࢐include·"trailer.php"; 130: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐include·"trailer.php"; 130: "include" must be immediately followed by an open parenthesis $thisurl·=·new·moodle_url('/blocks/mrbs/web/del.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year,·'type'=>$type)); 40: Line exceeds 100 characters; contains 121 characters ࢐࢐echo·'

      out(true,·array('confirm'=>'Y',·'sesskey'=>sesskey())).'">'.get_string('yes').""; 107: Line exceeds 100 characters; contains 118 characters blocks/mrbs/web/del_entry.php 2: The opening start_time,·"%d"); 36: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$month·=·userdate($info->start_time,·"%m"); 37: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$year··=·userdate($info->start_time,·"%Y"); 38: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$area··=·mrbsGetRoomArea($info->room_id); 39: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$result·=·mrbsDelEntry(getUserName(),·$id,·$series,·1); 44: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($result) 45: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐if·($result) 45: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐exit(); 51: Line indented incorrectly; expected at least 8 spaces, found 2 ········$desturl·=·new·moodle_url('/blocks/mrbs/web/day.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year,·'area'=>$area)); 49: Line exceeds 100 characters; contains 129 characters blocks/mrbs/web/edit_area_room.php ····echo·''.get_string('description').'description).'">'; 125: Line exceeds maximum limit of 140 characters; contains 142 characters ····echo·''.get_string('capacity','block_mrbs').':···capacity.'">'; 126: Line exceeds maximum limit of 140 characters; contains 147 characters ····echo·''.get_string('capacity','block_mrbs').':···capacity.'">'; 126: Commas (,) must be followed by white space. ····echo·''.get_string('room_admin_email','block_mrbs').':·room_admin_email).'">'; 127: Line exceeds maximum limit of 140 characters; contains 180 characters ····echo·''.get_string('room_admin_email','block_mrbs').':·room_admin_email).'">'; 127: Commas (,) must be followed by white space. ····echo·'          '; 132: Line exceeds maximum limit of 140 characters; contains 150 characters ····echo·''.get_string('area_admin_email','block_mrbs').':·······area_admin_email).'">'; 169: Line exceeds maximum limit of 140 characters; contains 186 characters ····echo·''.get_string('area_admin_email','block_mrbs').':·······area_admin_email).'">'; 169: Commas (,) must be followed by white space. ····echo·'          '; 174: Line exceeds maximum limit of 140 characters; contains 148 characters 2: The opening heading(get_string('editroomarea','block_mrbs'),·2); 89: Commas (,) must be followed by white space. if($room>0)·{ 93: Expected "if (...) {\n"; found "if(...) {\n" ····$valid_email·=·TRUE; 95: TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" ····foreach·($emails·as·$email) 96: Expected "foreach (...) {\n"; found "foreach (...)\n {\n" ············$valid_email·=·FALSE; 101: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ············echo·$OUTPUT->box(get_string('no_user_with_email','block_mrbs',$email)); 102: Commas (,) must be followed by white space. ············echo·$OUTPUT->box(get_string('no_user_with_email','block_mrbs',$email)); 102: Commas (,) must be followed by white space. ࢐if·(·$change_room·&&·$valid_email·) 106: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐if·(·$change_room·&&·$valid_email·) 106: Line indented incorrectly; expected 4 spaces, found 1 ····echo·''.get_string('editroom','block_mrbs').'

      '; 119: Commas (,) must be followed by white space. ····echo·''; 133: Commas (,) must be followed by white space. if·($area) 137: Expected "if (...) {\n"; found "if (...)\n{\n" ····$valid_email·=·TRUE; 140: TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" ····foreach·($emails·as·$email) 141: Expected "foreach (...) {\n"; found "foreach (...)\n {\n" ············$valid_email·=·FALSE; 147: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ············echo·$OUTPUT->box(get_string('no_user_with_email','block_mrbs',$email)); 148: Commas (,) must be followed by white space. ············echo·$OUTPUT->box(get_string('no_user_with_email','block_mrbs',$email)); 148: Commas (,) must be followed by white space. ····if·(·$change_area·&&·$valid_email·) 152: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐} 159: Closing brace indented incorrectly; expected 4 spaces, found 1 ····echo·''.get_string('editarea','block_mrbs').''; 163: Commas (,) must be followed by white space. ····echo·''; 175: Commas (,) must be followed by white space. include·"trailer.php"; 180: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 180: File is being unconditionally included; use "require" instead //·$room_admin_email·=·optional_param('room_admin_email',·0,·PARAM_BOOL);·//not·sure·if·this·is·from·config·or·passed·from·URL·-ab. 45: Line exceeds 100 characters; contains 131 characters $thisurl·=·new·moodle_url('/blocks/mrbs/web/edit_area_room.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year,·'sesskey'=>sesskey())); 55: Line exceeds 100 characters; contains 139 characters ····$adminurl·=·new·moodle_url('/blocks/mrbs/web/admin.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year,·'area'=>$area)); 82: Line exceeds 100 characters; contains 128 characters ····echo·''.get_string('name').':·room_name).'">'; 124: Line exceeds 100 characters; contains 133 characters ····echo·''; 133: Line exceeds 100 characters; contains 101 characters ····echo·''.get_string('name').':·······area_name).'">'; 168: Line exceeds 100 characters; contains 139 characters blocks/mrbs/web/edit_entry.php

      315: Line exceeds maximum limit of 140 characters; contains 171 characters

      315: Commas (,) must be followed by white space.

      315: Commas (,) must be followed by white space.

      315: Commas (,) must be followed by white space. ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Line exceeds maximum limit of 140 characters; contains 306 characters ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Line indented incorrectly; expected at least 4 spaces, found 2 ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Expected "if (...) {\n"; found "if (...){ " ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Line indented incorrectly; expected 4 spaces, found 0 ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Closing brace must be on a line by itself ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Expected "} else {\n"; found "} else { " ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Line indented incorrectly; expected 4 spaces, found 0 ···12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="updateFreeRooms()">:"·MAXLENGTH=2·onChange="updateFreeRooms()"> 340: Closing brace must be on a line by itself ····onClick="OnAllDayClick()">·onClick="OnAllDayClick()">·onClick="OnAllDayClick()">· 448: Line exceeds maximum limit of 140 characters; contains 224 characters ····echo'Forceably·book·(automatically·move·other·bookings):".get_string('rep_type','block_mrbs')."".get_string($key,'block_mrbs')."\n"; 524: Line exceeds maximum limit of 140 characters; contains 143 characters ࢐echo·"".get_string('rep_type','block_mrbs')."".get_string($key,'block_mrbs')."\n"; 524: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('rep_type','block_mrbs')."".get_string($key,'block_mrbs')."\n"; 524: Commas (,) must be followed by white space. ࢐echo·"".get_string('rep_type','block_mrbs')."".get_string($key,'block_mrbs')."\n"; 524: Commas (,) must be followed by white space. ···document.writeln·(·'"·ONCLICK="validate_and_submit()">'·); 563: Line exceeds maximum limit of 140 characters; contains 146 characters ····················document.writeln('".get_string('deleteentry','block_mrbs')."'); 575: Line exceeds maximum limit of 140 characters; contains 208 characters ····················document.writeln('".get_string('deleteentry','block_mrbs')."'); 575: Commas (,) must be followed by white space. ····················document.writeln('".get_string('deleteentry','block_mrbs')."'); 575: Commas (,) must be followed by white space. ····················document.writeln('".get_string('deleteseries','block_mrbs')."'); 583: Line exceeds maximum limit of 140 characters; contains 209 characters ····················document.writeln('".get_string('deleteseries','block_mrbs')."'); 583: Commas (,) must be followed by white space. ····················document.writeln('".get_string('deleteseries','block_mrbs')."'); 583: Commas (,) must be followed by white space. 2: The opening name; 100: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$create_by···=·$entry->create_by; 101: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$description·=·$entry->description; 102: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_day···=·userdate($entry->start_time,·'%d'); 104: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_month·=·userdate($entry->start_time,·'%m'); 105: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_year··=·userdate($entry->start_time,·'%Y'); 106: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_hour··=·userdate($entry->start_time,·'%H'); 107: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_min···=·userdate($entry->start_time,·'%M'); 108: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$duration····=·$entry->end_time·-·$entry->start_time·-·cross_dst($entry->start_time,·$entry->end_time); 110: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$type········=·$entry->type; 111: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$room_id·····=·$entry->room_id; 112: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$entry_type··=·$entry->entry_type; 117: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_id······=·$entry->repeat_id; 118: Line indented incorrectly; expected at least 4 spaces, found 1 ····if(!empty($room))·{ 114: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($entry_type·>=·1)·{ 120: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($entry_type·>=·1)·{ 120: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$rep_type·=·$repeat->rep_type; 122: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if($edit_type·==·"series")·{ 124: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐if($edit_type·==·"series")·{ 124: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$start_day···=·(int)userdate($repeat->start_time,·'%d'); 125: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$start_month·=·(int)userdate($repeat->start_time,·'%m'); 126: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$start_year··=·(int)userdate($repeat->start_time,·'%Y'); 127: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_end_day···=·(int)userdate($repeat->end_date,·'%d'); 129: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_end_month·=·(int)userdate($repeat->end_date,·'%m'); 130: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_end_year··=·(int)userdate($repeat->end_date,·'%Y'); 131: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐switch($rep_type)·{ 133: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐case·2: 134: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐case·6: 135: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐࢐$rep_day[0]·=·$repeat->rep_opt[0]·!=·"0"; 136: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[1]·=·$repeat->rep_opt[1]·!=·"0"; 137: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[2]·=·$repeat->rep_opt[2]·!=·"0"; 138: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[3]·=·$repeat->rep_opt[3]·!=·"0"; 139: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[4]·=·$repeat->rep_opt[4]·!=·"0"; 140: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[5]·=·$repeat->rep_opt[5]·!=·"0"; 141: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$rep_day[6]·=·$repeat->rep_opt[6]·!=·"0"; 142: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐if·($rep_type·==·6) 144: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐࢐࢐࢐if·($rep_type·==·6) 144: Line indented incorrectly; expected 20 spaces, found 5 ࢐࢐࢐࢐࢐࢐$rep_num_weeks·=·$repeat->rep_num_weeks; 146: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐࢐default: 151: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐࢐$rep_day·=·array(0,·0,·0,·0,·0,·0,·0); 152: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐}·else·{ 154: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$rep_type·····=·$repeat->rep_type; 155: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_end_date·=·userdate($repeat->end_date,·'%A·%d·%B·%Y'); 156: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_opt······=·$repeat->rep_opt; 157: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐$edit_type···=·"series"; 161: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$name········=·getUserName(); 162: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$create_by···=·getUserName(); 163: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$description·=·"Class"; 164: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_day···=·$day; 165: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_month·=·$month; 166: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_year··=·$year; 167: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_min·=·$minute; 170: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$type········=·"I"; 172: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$room_id·····=·$room; 173: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_id········=·0; 176: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_type······=·0; 177: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_end_day···=·$day; 178: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_end_month·=·$month; 179: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_end_year··=·$year; 180: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_day·······=·array(0,·0,·0,·0,·0,·0,·0); 181: Line indented incorrectly; expected at least 4 spaces, found 1 ····$start_time·=·mktime(12,$period,00,$start_month,$start_day,$start_year); 174: Commas (,) must be followed by white space. ····$start_time·=·mktime(12,$period,00,$start_month,$start_day,$start_year); 174: Commas (,) must be followed by white space. ····$start_time·=·mktime(12,$period,00,$start_month,$start_day,$start_year); 174: Commas (,) must be followed by white space. ····$start_time·=·mktime(12,$period,00,$start_month,$start_day,$start_year); 174: Commas (,) must be followed by white space. ····$start_time·=·mktime(12,$period,00,$start_month,$start_day,$start_year); 174: Commas (,) must be followed by white space. if(!getWritable($create_by,·getUserName()))·{ 219: Expected "if (...) {\n"; found "if(...) {\n" ࢐showAccessDenied($day,·$month,·$year,·$area); 220: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐exit; 221: Line indented incorrectly; expected at least 4 spaces, found 1 if·(has_capability("block/mrbs:forcebook",get_context_instance(CONTEXT_SYSTEM))){ 233: Expected "if (...) {\n"; found "if (...){\n" if·(has_capability("block/mrbs:forcebook",get_context_instance(CONTEXT_SYSTEM))){ 233: Commas (,) must be followed by white space. ····alert·(·""); 244: Commas (,) must be followed by white space. ····alert·(·""); 249: Commas (,) must be followed by white space. ·· 252: Expected "if (...) {\n"; found "if(...) { ?>\n" ··h·=·parseInt(document.forms["main"].hour.value); 254: Line indented incorrectly; expected at least 4 spaces, found 2 ··m·=·parseInt(document.forms["main"].minute.value); 255: Line indented incorrectly; expected at least 4 spaces, found 2 ··if(h·>·23·||·m·>·59)·{ 257: Line indented incorrectly; expected at least 4 spaces, found 2 ··} 260: Line indented incorrectly; expected at least 4 spaces, found 2 ·· 261: Closing brace must be on a line by itself ····alert·(""); 258: Commas (,) must be followed by white space. ····alert·(""); 258: Commas (,) must be followed by white space. ····alert(""); 274: Commas (,) must be followed by white space. ····alert(""); 274: Commas (,) must be followed by white space. ····alert(""); 282: Commas (,) must be followed by white space. ····alert(""); 282: Commas (,) must be followed by white space. ···· 302: Expected "if (...) {\n"; found "if(...) { ?>\n" ···· 305: Closing brace must be on a line by itself 322: Commas (,) must be followed by white space. ··"> 323: Commas (,) must be followed by white space. 325: Commas (,) must be followed by white space. ·· 333: Commas (,) must be followed by white space. 338: Expected "if (...) {\n"; found "if(...) { ?>\n" 339: Line indented incorrectly; expected at least 4 spaces, found 0 349: Line indented incorrectly; expected at least 4 spaces, found 0 350: Line indented incorrectly; expected at least 4 spaces, found 0 351: Line indented incorrectly; expected at least 4 spaces, found 0 351: Closing brace must be on a line by itself 351: Line indented incorrectly; expected 4 spaces, found 0 if·(!$twentyfourhour_format) 342: Expected "if (...) {\n"; found "if (...)\n{\n" if·(!$twentyfourhour_format) 342: Line indented incorrectly; expected 4 spaces, found 0 ··$checked·=·($start_hour·<·12)·?·"checked"·:·""; 344: Line indented incorrectly; expected at least 8 spaces, found 2 ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Line indented incorrectly; expected at least 8 spaces, found 2 ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Commas (,) must be followed by white space. ··$checked·=·($start_hour·>=·12)·?·"checked"·:·""; 346: Line indented incorrectly; expected at least 8 spaces, found 2 ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Line indented incorrectly; expected at least 8 spaces, found 2 ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Commas (,) must be followed by white space. ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Commas (,) must be followed by white space. 352: Line indented incorrectly; expected at least 8 spaces, found 0 352: Commas (,) must be followed by white space. ·· 353: Line indented incorrectly; expected at least 8 spaces, found 2 ···· 354: Line indented incorrectly; expected at least 8 spaces, found 4 363: Line indented incorrectly; expected at least 8 spaces, found 0 ···· 364: Line indented incorrectly; expected at least 8 spaces, found 4 366: Line indented incorrectly; expected at least 8 spaces, found 0 368: Line indented incorrectly; expected at least 8 spaces, found 0 368: Closing brace must be on a line by itself foreach·($periods·as·$p_num·=>·$p_val) 356: Expected "foreach (...) {\n"; found "foreach (...)\n{\n" foreach·($periods·as·$p_num·=>·$p_val) 356: Line indented incorrectly; expected 4 spaces, found 0 ࢐echo·"$p_val"; 361: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if(·(·isset(·$period·)·&&·$period·==·$p_num·)·||·$p_num·==·$start_min) 359: Inline control structures are not allowed 369: Commas (,) must be followed by white space. if(·$enable_periods·) 373: Inline control structures are not allowed else 375: Inline control structures are not allowed while·(list(,$unit)·=·each($units)) 378: Expected "while (...) {\n"; found "while (...)\n{\n" while·(list(,$unit)·=·each($units)) 378: Commas (,) must be followed by white space. ࢐echo·"".get_string($unit,'block_mrbs'); 382: Commas (,) must be followed by white space. ····if·($all_day)·echo·'';·?> 387: Inline control structures are not allowed if(·count($areas)·>·1·)·{ 398: Expected "if (...) {\n"; found "if(...) {\n" ?> 400: Line indented incorrectly; expected at least 4 spaces, found 0 401: Line indented incorrectly; expected at least 4 spaces, found 0 423: Line indented incorrectly; expected at least 4 spaces, found 0 424: Line indented incorrectly; expected at least 4 spaces, found 0 id."\\\">".$dbarea->area_name."\")\n"; 416: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if·($dbarea->id·==·$area_id)·{ 413: Line indented incorrectly; expected 8 spaces, found 1 ࢐࢐$selected·=·"SELECTED"; 414: Line indented incorrectly; expected at least 12 spaces, found 2 : 428: Commas (,) must be followed by white space. ·· 447: Commas (,) must be followed by white space. 453: Commas (,) must be followed by white space. if(($type·==·'K')·or·($type·==·'L')){ 457: Expected "if (...) {\n"; found "if(...){\n" }else{ 459: Expected "} else {\n"; found "}else{\n" ····for·($c·=·"A";·$c·<=·"J";·$c++){ 460: Expected "for (...) {\n"; found "for (...){\n" ········if·(!empty($typel[$c])){ 461: Expected "if (...) {\n"; found "if (...){\n" ࢐࢐····echo·"$typel[$c]\n"; 462: Line indented incorrectly; expected at least 12 spaces, found 6 475: Expected "if (...) {\n"; found "if(...) { ?>\n" 477: Line indented incorrectly; expected at least 4 spaces, found 0 · 478: Line indented incorrectly; expected at least 4 spaces, found 1 · 478: Commas (,) must be followed by white space. · 479: Line indented incorrectly; expected at least 4 spaces, found 1 493: Line indented incorrectly; expected at least 4 spaces, found 0 · 494: Line indented incorrectly; expected at least 4 spaces, found 1 495: Line indented incorrectly; expected at least 4 spaces, found 0 497: Line indented incorrectly; expected at least 4 spaces, found 0 · 498: Line indented incorrectly; expected at least 4 spaces, found 1 · 498: Commas (,) must be followed by white space. · 499: Line indented incorrectly; expected at least 4 spaces, found 1 500: Line indented incorrectly; expected at least 4 spaces, found 0 502: Line indented incorrectly; expected at least 4 spaces, found 0 ·· 503: Line indented incorrectly; expected at least 4 spaces, found 1 ·· 503: Commas (,) must be followed by white space. ·· 503: Commas (,) must be followed by white space. · 504: Line indented incorrectly; expected at least 4 spaces, found 1 514: Line indented incorrectly; expected at least 4 spaces, found 0 · 515: Line indented incorrectly; expected at least 4 spaces, found 1 516: Line indented incorrectly; expected at least 4 spaces, found 0 '·.·get_string('rep_type_'.$i,'block_mrbs')·.·"\n"; 490: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐echo·'>'·.·get_string('rep_type_'.$i,'block_mrbs')·.·"\n"; 490: Commas (,) must be followed by white space. ࢐if($i·==·$rep_type) 487: Inline control structures are not allowed for·($i·=·0;·$i·<·7;·$i++) 507: Expected "for (...) {\n"; found "for (...)\n{\n" for·($i·=·0;·$i·<·7;·$i++) 507: Line indented incorrectly; expected 4 spaces, found 0 ࢐$wday·=·($i·+·$weekstarts)·%·7; 509: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐echo·"'.·day_name($wday)·.·"\n"; 512: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if·($rep_day[$wday])·echo·"·CHECKED"; 511: Inline control structures are not allowed else 520: Expected "} else {\n"; found "}\nelse\n{\n" ࢐$key·=·"rep_type_"·.·(isset($rep_type)·?·$rep_type·:·"0"); 522: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(isset($rep_type)·&&·($rep_type·!=·0)) 526: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if(isset($rep_type)·&&·($rep_type·!=·0)) 526: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$opt·=·""; 528: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 541: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 541: Commas (,) must be followed by white space. ࢐࢐if·($rep_type·==·2) 529: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐if·($rep_type·==·2) 529: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐//·Display·day·names·according·to·language·and·preferred·weekday·start. 531: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐for·($i·=·0;·$i·<·7;·$i++) 532: Expected "for (...) {\n"; found "for (...)\n {\n" ࢐࢐࢐for·($i·=·0;·$i·<·7;·$i++) 532: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$wday·=·($i·+·$weekstarts)·%·7; 534: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐if·($rep_opt[$wday])·$opt·.=·day_name($wday)·.·"·"; 535: Inline control structures are not allowed ࢐࢐if($opt) 538: Inline control structures are not allowed ࢐࢐࢐echo·"".get_string('rep_rep_day','block_mrbs')."$opt\n"; 539: Commas (,) must be followed by white space. if·(·(·(·$id==0·)·)·Xor·(·isset(·$rep_type·)·&&·(·$rep_type·!=·0·)·&&·(·"series"·==·$edit_type·)·)·) 550: Expected "if (...) {\n"; found "if (...)\n{\n" ?> 552: Line indented incorrectly; expected at least 4 spaces, found 0 554: Line indented incorrectly; expected at least 4 spaces, found 0 ·· 555: Line indented incorrectly; expected at least 4 spaces, found 1 ·· 555: Commas (,) must be followed by white space. ·· 555: Commas (,) must be followed by white space. ·"> 556: Line indented incorrectly; expected at least 4 spaces, found 1 557: Line indented incorrectly; expected at least 4 spaces, found 0 558: Line indented incorrectly; expected at least 4 spaces, found 0 558: Closing brace must be on a line by itself ····if($id){·//always·be·able·to·delete·entry·and·if·part·of·a·series·then·add·option·to·delete·entire·series. 571: Expected "if (...) {\n"; found "if(...){ //always be able to delete entry and if part of a series then add option to delete entire series.\n" ····if($id){·//always·be·able·to·delete·entry·and·if·part·of·a·series·then·add·option·to·delete·entire·series. 571: Line indented incorrectly; expected 0 spaces, found 4 ········echo·"" 573: Commas (,) must be followed by white space. ········if($rep_id)·{ 577: Expected "if (...) {\n"; found "if(...) {\n" ········if($rep_id)·{ 577: Line indented incorrectly; expected 4 spaces, found 8 ············echo·"" 581: Commas (,) must be followed by white space. "> 591: Member variable "HTTP_REFERER" must be all lower-case \n"; 596: Inline control structures are not allowed 601: "include" must be immediately followed by an open parenthesis 601: File is being unconditionally included; use "require" instead 601: A closing tag is not permitted at the end of a PHP file $thisurl·=·new·moodle_url('/blocks/mrbs/web/edit_entry.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 45: Line exceeds 100 characters; contains 113 characters ࢐$duration····=·$entry->end_time·-·$entry->start_time·-·cross_dst($entry->start_time,·$entry->end_time); 110: Line exceeds 100 characters; contains 104 characters $enable_periods·?·toPeriodString($start_min,·$duration,·$dur_units)·:·toTimeString($duration,·$dur_units); 215: Line exceeds 100 characters; contains 106 characters ····alert·(·""); 244: Line exceeds 100 characters; contains 105 characters ····alert·(·""); 249: Line exceeds 100 characters; contains 112 characters ····alert·(""); 258: Line exceeds 100 characters; contains 130 characters ··if·((!i1·||·(i1·&&·i2))·&&·document.forms["main"].rep_type·&&·document.forms["main"].rep_type[6].checked·&&·(!n·||·n·<·2))·{ 273: Line exceeds 100 characters; contains 126 characters ····alert(""); 274: Line exceeds 100 characters; contains 133 characters ····alert(""); 282: Line exceeds 100 characters; contains 123 characters ··"> 323: Line exceeds 100 characters; contains 111 characters ·· 326: Line exceeds 100 characters; contains 119 characters ··echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 345: Line exceeds 100 characters; contains 107 characters ··echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 347: Line exceeds 100 characters; contains 108 characters ··"·onChange="updateFreeRooms()"> 370: Line exceeds 100 characters; contains 106 characters this.document.writeln(":"); 406: Line exceeds 100 characters; contains 126 characters ࢐print·"this.document.writeln(\"············id."\\\">".$dbarea->area_name."\")\n"; 416: Line exceeds 100 characters; contains 121 characters print·"this.document.writeln(\"············".get_string('computerrooms','block_mrbs')."\")\n"; 419: Line exceeds 100 characters; contains 120 characters ····echo·"id."\">".s($dbroom->room_name)."·(".s($dbroom->description)."·Capacity:$dbroom->capacity)"; 441: Line exceeds 100 characters; contains 138 characters //If·this·is·an·imported·booking,·forcably·mark·it·as·edited·so·that·changes·are·not·overridden·on·next·import 456: Line exceeds 100 characters; contains 110 characters ····echo'·onClick="document.getElementById(\'nooccupied\').checked=!this.checked;·updateFreeRooms();">'; 471: Line exceeds 100 characters; contains 104 characters for($i·=·0;·$i<7;·$i++)·//manually·setting·this·to·7·since·that·is·how·many·repetition·types·there·are·-arb·quick·and·dirty·hack 483: Line exceeds 100 characters; contains 128 characters ·· 503: Line exceeds 100 characters; contains 132 characters ࢐࢐࢐echo·"".get_string('rep_rep_day','block_mrbs')."$opt\n"; 539: Line exceeds 100 characters; contains 119 characters ࢐࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 541: Line exceeds 100 characters; contains 128 characters ·· 555: Line exceeds 100 characters; contains 135 characters ····if($id){·//always·be·able·to·delete·entry·and·if·part·of·a·series·then·add·option·to·delete·entire·series. 571: Line exceeds 100 characters; contains 110 characters ········$delurl·=·new·moodle_url('/blocks/mrbs/web/del_entry.php',·array('id'=>$id,·'series'=>0,·'sesskey'=>sesskey())); 572: Line exceeds 100 characters; contains 120 characters ········echo·"" 573: Line exceeds 100 characters; contains 121 characters ············$delurl·=·new·moodle_url('/blocks/mrbs/web/del_entry.php',·array('id'=>$id,·'series'=>1,·'sesskey'=>sesskey(), 578: Line exceeds 100 characters; contains 122 characters ·············································································'day'=>$day,·'month'=>$month,·'year'=>$year)); 579: Line exceeds 100 characters; contains 123 characters ············echo·"" 581: Line exceeds 100 characters; contains 125 characters blocks/mrbs/web/edit_entry_handler.php ················if(!email_to_user($oldbookinguser,·$USER,·get_string('doublebookesubject',·'block_mrbs'),·get_string('doublebookebody',·'block_mrbs',·$langvars)))·{ 290: Line exceeds maximum limit of 140 characters; contains 164 characters ················if(!email_to_user($oldbookinguser,·$USER,·get_string('doublebookesubject',·'block_mrbs'),·get_string('doublebookebody',·'block_mrbs',·$langvars)))·{ 290: Expected "if (...) {\n"; found "if(...) {\n" ················if(!email_to_user($oldbookinguser,·$USER,·get_string('doublebookesubject',·'block_mrbs'),·get_string('doublebookebody',·'block_mrbs',·$langvars)))·{ 290: Line indented incorrectly; expected 12 spaces, found 16 ····················email_to_user($DB->get_record('user',·array('email'=>·$mrbs_admin_email)),·$USER,·get_string('doublebookefailsubject',·'block_mrbs'),·get_string('doublebookefailbody',·'block_mrbs',·$oldbookinguser->username).get_string('doublebookebody',·'block_mrbs',·$langvars)); 291: Line exceeds maximum limit of 140 characters; contains 285 characters 2: The opening '.·get_string('invalid_booking','block_mrbs')·.·'

      '); 91: Commas (,) must be followed by white space. ·····echo·get_string('must_set_name','block_mrbs'); 92: Commas (,) must be followed by white space. if·($description·==·'') 98: Expected "if (...) {\n"; found "if (...)\n{\n" ·····echo('

      '.·get_string('invalid_booking','block_mrbs')·.·'

      '); 101: Commas (,) must be followed by white space. ·····echo·get_string('must_set_description','block_mrbs'); 102: Commas (,) must be followed by white space. if(·$enable_periods·)·{ 110: Expected "if (...) {\n"; found "if(...) {\n" ࢐$resolution·=·60; 111: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$hour·=·12; 112: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$minute·=·$period; 113: Line indented incorrectly; expected at least 4 spaces, found 1 ····if(·$dur_units·==·"periods"·&&·($minute·+·$duration)·>·$max_periods·) 115: Expected "if (...) {\n"; found "if(...)\n {\n" ········} 118: Closing brace indented incorrectly; expected 4 spaces, found 8 ····if(·$dur_units·==·"days"·&&·$minute·==·0·) 119: Expected "if (...) {\n"; found "if(...)\n {\n" ········} 123: Closing brace indented incorrectly; expected 4 spaces, found 8 ····} 144: Closing brace indented incorrectly; expected 0 spaces, found 4 if($all_day) 149: Expected "if (...) {\n"; found "if(...)\n{\n" ····if(·$enable_periods·) 151: Expected "if (...) {\n"; found "if(...)\n {\n" ····else 156: Expected "} else {\n"; found "}\n else\n {\n" else 164: Expected "} else {\n"; found "}\nelse\n{\n" ····if·(!$twentyfourhour_format) 166: Expected "if (...) {\n"; found "if (...)\n {\n" ······if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 168: Expected "if (...) {\n"; found "if (...)\n {\n" ······if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 168: Line indented incorrectly; expected 8 spaces, found 6 ········$hour·+=·12; 170: Line indented incorrectly; expected at least 12 spaces, found 8 ······if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 172: Expected "if (...) {\n"; found "if (...)\n {\n" ······if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 172: Line indented incorrectly; expected 8 spaces, found 6 ········$hour·-=·12; 174: Line indented incorrectly; expected at least 12 spaces, found 8 ····if·(($tmp·=·$diff·%·$resolution)·!=·0·||·$diff·==·0) 184: Inline control structures are not allowed if(isset($rep_type)·&&·isset($rep_end_month)·&&·isset($rep_end_day)·&&·isset($rep_end_year))·{ 190: Expected "if (...) {\n"; found "if(...) {\n" ····}·else·{ 193: Closing brace indented incorrectly; expected 0 spaces, found 4 ····}·else·{ 193: Line indented incorrectly; expected 0 spaces, found 4 if(!isset($rep_day)) 197: Inline control structures are not allowed if·(($rep_type·==·2)·||·($rep_type·==·6)) 202: Inline control structures are not allowed ····for·($i·=·0;·$i·<·7;·$i++)·$rep_opt·.=·empty($rep_day[$i])·?·"0"·:·"1"; 203: Inline control structures are not allowed if·($id>0) 214: Expected "if (...) {\n"; found "if (...)\n{\n" ····if·($repeat_id·<·0) 218: Inline control structures are not allowed else 221: Inline control structures are not allowed ··//····}else{ 297: Line indented incorrectly; expected at least 4 spaces, found 2 //········//·If·the·user·hasn't·confirmed·they·want·to·double·book,·check·the·room·is·free. 298: Line indented incorrectly; expected at least 4 spaces, found 0 //····$err·.=·mrbsCheckFree($room_id,·$starttime,·$endtime-1,·$ignore_id,·0); 299: Line indented incorrectly; expected at least 4 spaces, found 0 //····} 300: Line indented incorrectly; expected at least 4 spaces, found 0 foreach·(·$rooms·as·$room_id·)·{ 233: Space found after opening bracket of FOREACH loop foreach·(·$rooms·as·$room_id·)·{ 233: Space found before closing bracket of FOREACH loop ··if·($rep_type·!=·0·&&·!empty($reps)) 234: Expected "if (...) {\n"; found "if (...)\n {\n" ··if·($rep_type·!=·0·&&·!empty($reps)) 234: Line indented incorrectly; expected 4 spaces, found 2 ····if(count($reps)·<·$max_rep_entrys) 236: Expected "if (...) {\n"; found "if(...)\n {\n" ····if(count($reps)·<·$max_rep_entrys) 236: Line indented incorrectly; expected 8 spaces, found 4 ········for($i·=·0;·$i·<·count($reps);·$i++) 239: Expected "for (...) {\n"; found "for(...)\n {\n" ········for($i·=·0;·$i·<·count($reps);·$i++) 239: Line indented incorrectly; expected 12 spaces, found 8 ࢐····//·calculate·diff·each·time·and·correct·where·events 241: Line indented incorrectly; expected at least 16 spaces, found 5 ࢐····//·cross·DST 242: Line indented incorrectly; expected at least 16 spaces, found 5 ············$diff·=·$endtime·-·$starttime; 243: Line indented incorrectly; expected at least 16 spaces, found 12 ············$diff·+=·cross_dst($reps[$i],·$reps[$i]·+·$diff); 244: Line indented incorrectly; expected at least 16 spaces, found 12 ············$tmp·=·mrbsCheckFree($room_id,·$reps[$i],·$reps[$i]·+·$diff,·$ignore_id,·$repeat_id); 245: Line indented incorrectly; expected at least 16 spaces, found 12 ············if(!empty($tmp))·{ 246: Expected "if (...) {\n"; found "if(...) {\n" ············if(!empty($tmp))·{ 246: Line indented incorrectly; expected 16 spaces, found 12 ················$err·=·$err·.·$tmp; 247: Line indented incorrectly; expected at least 20 spaces, found 16 ················$errtype·=·MRBS_ERR_DOUBLEBOOK; 248: Line indented incorrectly; expected at least 20 spaces, found 16 ····else 252: Expected "} else {\n"; found "}\n else\n {\n" ····else 252: Line indented incorrectly; expected 8 spaces, found 4 ········$err········.=·get_string('too_may_entrys','block_mrbs')·.·"

      "; 254: Line indented incorrectly; expected at least 12 spaces, found 8 ········$err········.=·get_string('too_may_entrys','block_mrbs')·.·"

      "; 254: Commas (,) must be followed by white space. ········$errtype·=·MRBS_ERR_TOOMANY; 255: Line indented incorrectly; expected at least 12 spaces, found 8 ········$hide_title··=·1; 256: Line indented incorrectly; expected at least 12 spaces, found 8 ··else 259: Expected "} else if (...) {\n"; found "}\n else\n if(...){\n" ··else 259: Inline control structures are not allowed ·····if(has_capability("block/mrbs:forcebook",get_context_instance(CONTEXT_SYSTEM))·and·$forcebook){ 260: Expected "if (...) {\n"; found "if(...){\n" ·····if(has_capability("block/mrbs:forcebook",get_context_instance(CONTEXT_SYSTEM))·and·$forcebook){ 260: Line indented incorrectly; expected 4 spaces, found 5 ·····if(has_capability("block/mrbs:forcebook",get_context_instance(CONTEXT_SYSTEM))·and·$forcebook){ 260: Commas (,) must be followed by white space. ····}·else·if($doublebook·and·has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM)))·{ 265: Closing brace indented incorrectly; expected 5 spaces, found 4 ····}·else·if($doublebook·and·has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM)))·{ 265: Expected "} else if (...) {\n"; found "} else if(...) {\n" ····}·else·if($doublebook·and·has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM)))·{ 265: Expected "if (...) {\n"; found "if(...) {\n" ·········require_once·"force_book.php"; 261: "require_once" must be immediately followed by an open parenthesis ·········$forcemoveoutput.=mrbsForceMove($room_id,$starttime,$endtime,$name,$id); 262: Commas (,) must be followed by white space. ·········$forcemoveoutput.=mrbsForceMove($room_id,$starttime,$endtime,$name,$id); 262: Commas (,) must be followed by white space. ·········$forcemoveoutput.=mrbsForceMove($room_id,$starttime,$endtime,$name,$id); 262: Commas (,) must be followed by white space. ·········$forcemoveoutput.=mrbsForceMove($room_id,$starttime,$endtime,$name,$id); 262: Commas (,) must be followed by white space. ········} 295: Closing brace indented incorrectly; expected 4 spaces, found 8 ············foreach($clashingbookings·as·$clashingbooking)·{ 279: Expected "foreach (...) {\n"; found "foreach(...) {\n" ············foreach($clashingbookings·as·$clashingbooking)·{ 279: Line indented incorrectly; expected 8 spaces, found 12 if(empty($err)) 303: Expected "if (...) {\n"; found "if(...)\n{\n" ····foreach·(·$rooms·as·$room_id·)·{ 305: Space found after opening bracket of FOREACH loop ····foreach·(·$rooms·as·$room_id·)·{ 305: Space found before closing bracket of FOREACH loop ········if($edit_type·==·"series") 306: Expected "if (...) {\n"; found "if(...)\n {\n" ················if·(·(·(($id>0)·&&·MAIL_ADMIN_ALL)·or·($id==0)·)·&&·(0·!=·$new_id)·) 319: Expected "if (...) {\n"; found "if (...)\n {\n" ····················if·(MAIL_DETAILS) 324: Expected "if (...) {\n"; found "if (...)\n {\n" ····················if·(·$id>0·) 335: Expected "if (...) {\n"; found "if (...)\n {\n" ············if($id>0)·{ 343: Expected "if (...) {\n"; found "if(...) {\n" ········else 347: Expected "} else {\n"; found "}\n else\n {\n" ············if·($repeat_id·>·0) 350: Inline control structures are not allowed ············else 352: Inline control structures are not allowed ················if·(·(·(($id>0)·&&·MAIL_ADMIN_ALL)·or·($id==0)·)·&&·(0·!=·$new_id)·) 366: Expected "if (...) {\n"; found "if (...)\n {\n" ····················if·(MAIL_DETAILS) 371: Expected "if (...) {\n"; found "if (...)\n {\n" ···················if·(·$id>0·) 382: Expected "if (...) {\n"; found "if (...)\n {\n" ···················if·(·$id>0·) 382: Line indented incorrectly; expected 20 spaces, found 19 ····················} 385: Closing brace indented incorrectly; expected 19 spaces, found 20 ····redirect($dayurl,$forcemoveoutput,20); 398: Commas (,) must be followed by white space. ····redirect($dayurl,$forcemoveoutput,20); 398: Commas (,) must be followed by white space. if(strlen($err)) 404: Expected "if (...) {\n"; found "if(...)\n{\n" ····echo·"

      "·.·get_string('sched_conflict','block_mrbs')·.·"

      "; 408: Commas (,) must be followed by white space. ····if(!isset($hide_title)) 409: Expected "if (...) {\n"; found "if(...)\n {\n" ········echo·get_string('conflict','block_mrbs'); 411: Commas (,) must be followed by white space. ····if(has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM))·&&·$errtype·==·MRBS_ERR_DOUBLEBOOK)·{ 416: Expected "if (...) {\n"; found "if(...) {\n" ····if(!isset($hide_title)) 450: Inline control structures are not allowed echo·"".get_string('returncal','block_mrbs')."

      "; 455: Commas (,) must be followed by white space. include·"trailer.php"; 457: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 457: File is being unconditionally included; use "require" instead ········$starttime·=·mktime($morningstarts,·0,·0,·$month,·$day··,·$year,·is_dst($month,·$day··,·$year)); 158: Line exceeds 100 characters; contains 104 characters ········$endtime···=·mktime($eveningends,·$end_minutes,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year)); 161: Line exceeds 100 characters; contains 109 characters ····$endtime···=·mktime($hour,·$minute,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year,·$hour))·+·($units·*·$duration); 179: Line exceeds 100 characters; contains 123 characters ····}·else·if($doublebook·and·has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM)))·{ 265: Line exceeds 100 characters; contains 110 characters ········$clashingbookings·=·$DB->get_records_sql($sql,·array($room_id,·$starttime,·$endtime,·$starttime,·$starttime,·$endtime,·$endtime)); 278: Line exceeds 100 characters; contains 138 characters ················$oldbookinguser·=·$DB->get_record('user',·array('username'=>·$clashingbooking->create_by)); 280: Line exceeds 100 characters; contains 107 characters ············$new_id·=·mrbsCreateRepeatingEntrys($starttime,·$endtime,···$rep_type,·$rep_enddate,·$rep_opt, 308: Line exceeds 100 characters; contains 106 characters ············add_to_log(SITEID,·'mrbs',·'add·booking',·$CFG->wwwroot.'blocks/mrbs/web/view_entry.php?id='.$new_id,·$name); 313: Line exceeds 100 characters; contains 121 characters ············if·(MAIL_ADMIN_ON_BOOKINGS·or·MAIL_AREA_ADMIN_ON_BOOKINGS·or·MAIL_ROOM_ADMIN_ON_BOOKINGS·or·MAIL_BOOKER)·{ 315: Line exceeds 100 characters; contains 118 characters ············add_to_log(SITEID,·'mrbs',·'edit·booking',·$CFG->wwwroot.'blocks/mrbs/web/view_entry.php?id='.$new_id,·$name); 360: Line exceeds 100 characters; contains 122 characters ············if·(MAIL_ADMIN_ON_BOOKINGS·or·MAIL_AREA_ADMIN_ON_BOOKINGS·or·MAIL_ROOM_ADMIN_ON_BOOKINGS·or·MAIL_BOOKER)·{ 362: Line exceeds 100 characters; contains 118 characters ····$dayurl·=·new·moodle_url('/blocks/mrbs/web/day.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day,·'area'=>$area)); 397: Line exceeds 100 characters; contains 124 characters ····if(has_capability('block/mrbs:doublebook',·get_context_instance(CONTEXT_SYSTEM))·&&·$errtype·==·MRBS_ERR_DOUBLEBOOK)·{ 416: Line exceeds 100 characters; contains 122 characters ········echo·''; 445: Line exceeds 100 characters; contains 103 characters ····//····sql_mutex_unlock("$tbl_entry"); 392: This comment is 67% valid code; is this commented out code? blocks/mrbs/web/force_book.php ····//this·is·so·that·if·a·booking·is·being·edited·(normally·extended)·and·forcing·the·booking·a·confusing·email·doesn't·get·sent·to·the·force·booker 51: Line exceeds maximum limit of 140 characters; contains 149 characters ········if($findroomresult·and·$DB->update_record('mrbs_entry',$booking)·and·$oldbookingowner=$DB->get_record('user',array('username'=>$oldbooking->create_by))){ 145: Line exceeds maximum limit of 140 characters; contains 161 characters ········if($findroomresult·and·$DB->update_record('mrbs_entry',$booking)·and·$oldbookingowner=$DB->get_record('user',array('username'=>$oldbooking->create_by))){ 145: Expected "if (...) {\n"; found "if(...){\n" ········if($findroomresult·and·$DB->update_record('mrbs_entry',$booking)·and·$oldbookingowner=$DB->get_record('user',array('username'=>$oldbooking->create_by))){ 145: Commas (,) must be followed by white space. ········if($findroomresult·and·$DB->update_record('mrbs_entry',$booking)·and·$oldbookingowner=$DB->get_record('user',array('username'=>$oldbooking->create_by))){ 145: Commas (,) must be followed by white space. ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Line exceeds maximum limit of 140 characters; contains 146 characters ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Commas (,) must be followed by white space. ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Commas (,) must be followed by white space. ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Commas (,) must be followed by white space. ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Commas (,) must be followed by white space. ············mail($cfg_mrbs->admin_email,get_string('bookingmoveerror','block_mrbs'),get_string('bookingmoveerrormessage','block_mrbs',$langvars)); 151: Commas (,) must be followed by white space. 2: The opening get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Commas (,) must be followed by white space. 62: Functions must not contain multiple empty lines in a row; found 2 empty lines ····foreach($oldbookings·as·$oldbooking){ 64: Expected "foreach (...) {\n"; found "foreach(...){\n" ········$today=mktime(0,0,0,date('n'),date('j'),date('Y')); 66: Commas (,) must be followed by white space. ········$today=mktime(0,0,0,date('n'),date('j'),date('Y')); 66: Commas (,) must be followed by white space. ········$today=mktime(0,0,0,date('n'),date('j'),date('Y')); 66: Commas (,) must be followed by white space. ········$today=mktime(0,0,0,date('n'),date('j'),date('Y')); 66: Commas (,) must be followed by white space. ········$today=mktime(0,0,0,date('n'),date('j'),date('Y')); 66: Commas (,) must be followed by white space. ········$shortname·=·clean_param($oldbooking->entryname,PARAM_TEXT); 77: Commas (,) must be followed by white space. ········if·($result=$DB->get_record_sql($sizequery,·array('5','50',·$shortname))){ 79: Expected "if (...) {\n"; found "if (...){\n" ········if·($result=$DB->get_record_sql($sizequery,·array('5','50',·$shortname))){ 79: Commas (,) must be followed by white space. ········}else{ 81: Expected "} else {\n"; found "}else{\n" ········$findroomresult=$DB->get_record_sql($findroomquery,$params); 122: Commas (,) must be followed by white space. ········$subject=get_string('bookingmoved','block_mrbs'); 124: Commas (,) must be followed by white space. ········$langvars->date=date('d/m/Y',$oldbooking->start_time); 131: Commas (,) must be followed by white space. ········if($oldbooking->type=='K'){ 140: Expected "if (...) {\n"; found "if(...){\n" ········}else{ 142: Expected "} else {\n"; found "}else{\n" ············$message=get_string('bookingmovedmessage','block_mrbs',$langvars); 146: Commas (,) must be followed by white space. ············$message=get_string('bookingmovedmessage','block_mrbs',$langvars); 146: Commas (,) must be followed by white space. ············$output.=·'
      '.get_string('bookingmovedshort','block_mrbs',$langvars); 147: Commas (,) must be followed by white space. ············$output.=·'
      '.get_string('bookingmovedshort','block_mrbs',$langvars); 147: Commas (,) must be followed by white space. ············email_to_user($oldbookingowner,$USER,$subject,$message); 148: Commas (,) must be followed by white space. ············email_to_user($oldbookingowner,$USER,$subject,$message); 148: Commas (,) must be followed by white space. ············email_to_user($oldbookingowner,$USER,$subject,$message); 148: Commas (,) must be followed by white space. ········}else{ 149: Expected "} else {\n"; found "}else{\n" ············$output.=·'
      '.get_string('bookingmoveerrorshort','block_mrbs',$langvars); 150: Commas (,) must be followed by white space. ············$output.=·'
      '.get_string('bookingmoveerrorshort','block_mrbs',$langvars); 150: Commas (,) must be followed by white space. ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$id,$room_id)); 58: Line exceeds 100 characters; contains 130 characters ········$oldbookings·=·$DB->get_records_sql($sql,array($starttime,$endtime,$starttime,$starttime,$endtime,$endtime,$room_id)); 60: Line exceeds 100 characters; contains 126 characters ········//············$findroomresult=get_record_sql($findroomquery,true); 108: This comment is 80% valid code; is this commented out code? blocks/mrbs/web/functions.php ············echo·'onclick="this.target=\'popup\';·return·openpopup(\''.$roomsearchurl.'\',·\'popup\',·\'toolbar=1,location=0,scrollbars,resizable,width=500,height=400\',·0);">'; 162: Line exceeds maximum limit of 140 characters; contains 177 characters ········if·('moodle'·==·$auth['type'])·{·//this·was·previously·for·the·db·authentication·type·but·I·am·hijacking·it·for·the·MRBS·Moodle·block·to·lookup·the·user's·email 739: Line exceeds maximum limit of 140 characters; contains 168 characters ········}·else·{·//Moodle·should·always·look·up·the·code·so·this·should·never·execute·especially·since·MAIL_USERNAME_SUFFIX·and·MAIL_DOMAIN·are·not·defined 752: Line exceeds maximum limit of 140 characters; contains 155 characters 2: The opening =·60)·{ 191: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($dur·>=·60)·{ 191: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$dur·/=·60; 192: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if($dur·>=·60)·{ 194: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐if($dur·>=·60)·{ 194: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$dur·/=·60; 195: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐if(($dur·>=·24)·&&·($dur·%·24·==·0))·{ 197: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐࢐if(($dur·>=·24)·&&·($dur·%·24·==·0))·{ 197: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$dur·/=·24; 198: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐if(($dur·>=·7)·&&·($dur·%·7·==·0))·{ 200: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐࢐࢐if(($dur·>=·7)·&&·($dur·%·7·==·0))·{ 200: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐࢐$dur·/=·7; 201: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐if(($dur·>=·52)·&&·($dur·%·52·==·0))·{ 203: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐࢐࢐࢐if(($dur·>=·52)·&&·($dur·%·52·==·0))·{ 203: Line indented incorrectly; expected 20 spaces, found 5 ࢐࢐࢐࢐࢐࢐$dur··/=·52; 204: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐࢐࢐࢐$units·=·get_string('years'); 205: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐࢐࢐}·else·{ 206: Line indented incorrectly; expected 20 spaces, found 5 ࢐࢐࢐࢐࢐࢐$units·=·get_string('weeks','block_mrbs'); 207: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐࢐࢐࢐$units·=·get_string('weeks','block_mrbs'); 207: Commas (,) must be followed by white space. ····················} 208: Closing brace indented incorrectly; expected 5 spaces, found 20 ࢐࢐࢐࢐}·else·{ 209: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐࢐$units·=·get_string('days'); 210: Line indented incorrectly; expected at least 20 spaces, found 5 ················} 211: Closing brace indented incorrectly; expected 4 spaces, found 16 ࢐࢐࢐}·else·{ 212: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$units·=·get_string('hours','block_mrbs'); 213: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$units·=·get_string('hours','block_mrbs'); 213: Commas (,) must be followed by white space. ············} 214: Closing brace indented incorrectly; expected 3 spaces, found 12 ࢐࢐}·else·{ 215: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$units·=·get_string('minutes'); 216: Line indented incorrectly; expected at least 12 spaces, found 3 ········} 217: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐}·else·{ 218: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$units·=·get_string('secs'); 219: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 220: Closing brace indented incorrectly; expected 1 spaces, found 4 function·toPeriodString($start_period,·&$dur,·&$units)·{ 224: function name "toPeriodString" must be lower-case letters only ࢐global·$enable_periods; 225: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$dur·/=·60; 230: Line indented incorrectly; expected at least 4 spaces, found 1 ····if(·$dur·>=·$max_periods·||·$start_period·==·0·)·{ 232: Expected "if (...) {\n"; found "if(...) {\n" ········if(·$start_period·==·0·&&·$dur·==·$max_periods·)·{ 233: Expected "if (...) {\n"; found "if(...) {\n" ········if(($dur·>=·24)·&&·is_int($dur))·{ 240: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐࢐$units·=·get_string('days'); 242: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$dur·*=·60; 245: Line indented incorrectly; expected at least 12 spaces, found 3 ············$units·=·get_string('periods','block_mrbs'); 247: Commas (,) must be followed by white space. ࢐࢐$units·=·get_string('periods','block_mrbs'); 251: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$units·=·get_string('periods','block_mrbs'); 251: Commas (,) must be followed by white space. function·genDateSelector($prefix,·$day,·$month,·$year,·$updatefreerooms=false,·$roomsearch=false)·{ 255: function name "genDateSelector" must be lower-case letters only ࢐echo·" 260: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·" 271: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·" 286: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$min·=·min($year,·date("Y"))·-·5; 292: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$max·=·max($year,·date("Y"))·+·5; 293: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐print·" 296: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐echo·" 299: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if($day···==·0)·$day·=·date("d"); 256: Inline control structures are not allowed ࢐if($month·==·0)·$month·=·date("m"); 257: Inline control structures are not allowed ࢐if($year··==·0)·$year·=·date("Y"); 258: Inline control structures are not allowed ····if($updatefreerooms){echo"onChange=\"updateFreeRooms()\"";} 262: Expected "if (...) {\n"; found "if(...){" ····if($updatefreerooms){echo"onChange=\"updateFreeRooms()\"";} 262: Closing brace must be on a line by itself ····if($roomsearch){echo"onChange=\"RoomSearch()\"";} 263: Expected "if (...) {\n"; found "if(...){" ····if($roomsearch){echo"onChange=\"RoomSearch()\"";} 263: Closing brace must be on a line by itself ࢐for($i·=·1;·$i·<=·31;·$i++)·{ 266: Expected "for (...) {\n"; found "for(...) {\n" ࢐for($i·=·1;·$i·<=·31;·$i++)·{ 266: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·" 267: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 269: Closing brace indented incorrectly; expected 1 spaces, found 4 ····if($updatefreerooms){echo",true";} 275: Expected "if (...) {\n"; found "if(...){" ····if($updatefreerooms){echo",true";} 275: Closing brace must be on a line by itself ····if($roomsearch){echo",false,true";} 276: Expected "if (...) {\n"; found "if(...){" ····if($roomsearch){echo",false,true";} 276: Closing brace must be on a line by itself ࢐for($i·=·1;·$i·<=·12;·$i++)·{ 279: Expected "for (...) {\n"; found "for(...) {\n" ࢐for($i·=·1;·$i·<=·12;·$i++)·{ 279: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐$m·=·userdate(mktime(0,·0,·0,·$i,·1,·$year)+date('Z',·mktime(0,0,0,$i,1,$year)),'%b','0'); 280: Commas (,) must be followed by white space. ࢐࢐print·" 282: Line indented incorrectly; expected at least 8 spaces, found 2 ····if($updatefreerooms){echo",true";} 289: Expected "if (...) {\n"; found "if(...){" ····if($updatefreerooms){echo",true";} 289: Closing brace must be on a line by itself ····if($roomsearch){echo",false,true";}·echo")\">"; 290: Expected "if (...) {\n"; found "if(...){" ····if($roomsearch){echo",false,true";}·echo")\">"; 290: Closing brace must be on a line by itself ࢐for($i·=·$min;·$i·<=·$max;·$i++) 295: Inline control structures are not allowed ࢐echo·$message; 310: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 311: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 311: "include" must be immediately followed by an open parenthesis ࢐exit; 312: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($need_header)·print_header_mrbs(0,·0,·0,·0); 309: Inline control structures are not allowed { 340: Opening brace should be on the same line as the declaration ࢐global·$DB; 341: Line indented incorrectly; expected at least 4 spaces, found 1 { 357: Opening brace should be on the same line as the declaration { 372: Opening brace should be on the same line as the declaration ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Commas (,) must be followed by white space. ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Commas (,) must be followed by white space. ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Commas (,) must be followed by white space. ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Commas (,) must be followed by white space. ࢐return·userdate(mktime(0,0,0,1,2+$daynumber,2000),·"%A"); 373: Commas (,) must be followed by white space. { 377: Opening brace should be on the same line as the declaration ····if·($twentyfourhour_format) 379: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐} 382: Closing brace indented incorrectly; expected 4 spaces, found 1 ࢐else 383: Expected "} else {\n"; found "}\n else\n {\n" ࢐else 383: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐return·"%I:%M%p"; 385: Line indented incorrectly; expected at least 8 spaces, found 2 { 390: Opening brace should be on the same line as the declaration ࢐$time·=·getdate($t); 393: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·I·have·made·the·separater·a·','·as·a·'-'·leads·to·an·ambiguious 397: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·display·in·report.php·when·showing·end·times. 398: Line indented incorrectly; expected at least 4 spaces, found 1 ····if(·$p_num·<·0·)·$p_num·=·0; 395: Inline control structures are not allowed ····if(·$p_num·>=·count($periods)·-·1·)·$p_num·=·count($periods·)·-·1; 396: Inline control structures are not allowed { 403: Opening brace should be on the same line as the declaration ࢐$time·=·getdate($t); 406: Line indented incorrectly; expected at least 4 spaces, found 1 ····if(·$p_num·<·0·)·$p_num·=·0; 408: Inline control structures are not allowed ····if(·$p_num·>=·count($periods)·-·1·)·$p_num·=·count($periods·)·-·1; 409: Inline control structures are not allowed { 414: Opening brace should be on the same line as the declaration ····if·($twentyfourhour_format) 417: Expected "if (...) {\n"; found "if (...)\n {\n" ········} 420: Closing brace indented incorrectly; expected 4 spaces, found 8 ࢐else 421: Expected "} else {\n"; found "}\n else\n {\n" ࢐else 421: Line indented incorrectly; expected 4 spaces, found 1 ········} 424: Closing brace indented incorrectly; expected 1 spaces, found 8 { 432: Opening brace should be on the same line as the declaration ࢐//·This·should·be·'static·$ecolors·=·array(...)'·but·that·crashes·PHP3.0.12! 433: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐static·$ecolors; 434: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·(!isset($ecolors))·$ecolors·=·array("A"=>"#FFCCFF",·"B"=>"#99CCCC", 435: Inline control structures are not allowed ࢐if·(isset($ecolors[$colclass])) 439: Inline control structures are not allowed ࢐else 441: Inline control structures are not allowed { 447: Opening brace should be on the same line as the declaration ࢐global·$typel; 448: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"\n"; 449: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$nct·=·0; 450: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"\n"; 464: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐for·($ct·=·"A";·$ct·<=·"Z";·$ct++) 451: Expected "for (...) {\n"; found "for (...)\n {\n" ࢐for·($ct·=·"A";·$ct·<=·"Z";·$ct++) 451: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐if·(!empty($typel[$ct])) 453: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐if·(!empty($typel[$ct])) 453: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐tdcell($ct); 460: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐echo·"$typel[$ct]\n"; 461: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐if·(++$nct·>·5) 455: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐࢐if·(++$nct·>·5) 455: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$nct·=·0; 457: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐echo·""; 458: Line indented incorrectly; expected at least 16 spaces, found 4 { 469: Opening brace should be on the same line as the declaration { 476: Opening brace should be on the same line as the declaration ࢐if·(($t-$am7)·%·$resolution·!=·0) 477: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐if·(($t-$am7)·%·$resolution·!=·0) 477: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐return·$t·+·$resolution·-·abs(((int)$t-(int) 479: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐else 482: Expected "} else {\n"; found "}\n else\n {\n" ࢐else 482: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐return·$t; 484: Line indented incorrectly; expected at least 8 spaces, found 2 { 491: Opening brace should be on the same line as the declaration ࢐$out_html·=·" 494: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$out_html·.=·" 504: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$out_html; 513: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐$selected·=·($area->id·==·$current)·?·"selected"·:·""; 500: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$out_html·.=·" 501: Line indented incorrectly; expected at least 8 spaces, found 2 { 517: Opening brace should be on the same line as the declaration ࢐$out_html·=·" 520: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$out_html·.=·" 530: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$out_html; 539: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐$selected·=·($room->id·==·$current)·?·"selected"·:·""; 526: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$out_html·.=·" 527: Line indented incorrectly; expected at least 8 spaces, found 2 { 549: Opening brace should be on the same line as the declaration ࢐//·entering·DST 554: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·leaving·DST 559: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(·$hour·!=·-1··&&·$hour·>·3) 551: Inline control structures are not allowed ࢐if(·!date(·"I",·mktime(12,·0,·0,·$month,·$day-1,·$year))·&& 555: Inline control structures are not allowed ࢐elseif(·date(·"I",·mktime(12,·0,·0,·$month,·$day-1,·$year))·&& 560: Usage of ELSEIF not allowed; use ELSE IF instead ࢐else 563: Inline control structures are not allowed { 570: Opening brace should be on the same line as the declaration ࢐//·entering·DST 572: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·leaving·DST 576: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$modification; 582: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(·!date(·"I",·$start)·&&··date(·"I",·$end)) 573: Inline control structures are not allowed ࢐elseif(··date(·"I",·$start)·&&·!date(·"I",·$end)) 577: Usage of ELSEIF not allowed; use ELSE IF instead ࢐else 579: Inline control structures are not allowed function·removeMailUnicode($string) 592: function name "removeMailUnicode" must be lower-case letters only { 593: Opening brace should be on the same line as the declaration ····if·($unicode_encoding) 596: Expected "if (...) {\n"; found "if (...)\n {\n" ········return·iconv("utf-8",·get_string('charset','block_mrbs'),·$string); 598: Commas (,) must be followed by white space. ····else 600: Expected "} else {\n"; found "}\n else\n {\n" function·getMailPeriodDateString($t,·$mod_time=0) 616: function name "getMailPeriodDateString" must be lower-case letters only { 617: Opening brace should be on the same line as the declaration function·getMailTimeDateString($t,·$inc_time=TRUE) 639: function name "getMailTimeDateString" must be lower-case letters only function·getMailTimeDateString($t,·$inc_time=TRUE) 639: TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" { 640: Opening brace should be on the same line as the declaration ····$ampm·=·date("a",$t); 644: Commas (,) must be followed by white space. ····if·($inc_time) 645: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($twentyfourhour_format) 647: Expected "if (...) {\n"; found "if (...)\n {\n" ········else 651: Expected "} else {\n"; found "}\n else\n {\n" ····else 656: Expected "} else {\n"; found "}\n else\n {\n" function·notifyAdminOnBooking($new_entry·,·$new_id)·{ 672: function name "notifyAdminOnBooking" must be lower-case letters only ················if·($email->area_admin_email·!=·NULL)·{ 698: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ········//·if·this·is·an·edited·entry,·we·already·have·area_admin_email, 703: Line indented incorrectly; expected at least 12 spaces, found 8 ········//·avoiding·a·database·hit. 704: Line indented incorrectly; expected at least 12 spaces, found 8 ···········if·(''·!=·$mail_previous['area_admin_email'])··{ 705: Expected "if (...) {\n"; found "if (...) {\n" ···········if·(''·!=·$mail_previous['area_admin_email'])··{ 705: Line indented incorrectly; expected 12 spaces, found 11 ···············$recipientlist[]·=·$mail_previous['area_admin_email']; 706: Line indented incorrectly; expected at least 16 spaces, found 15 ····if·(MAIL_ROOM_ADMIN_ON_BOOKINGS) 710: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($new_entry) 713: Expected "if (...) {\n"; found "if (...)\n {\n" ················if·($email->room_admin_email·!=·NULL)·{ 727: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" ········else·{·//·if·this·is·an·edited·entry,·we·already·have·room_admin_email,·avoiding·a·database·hit. 732: Expected "} else {\n"; found "}\n else { // if this is an edited entry, we already have room_admin_email, avoiding a database hit.\n" ···········if·(''·!=·$mail_previous['room_admin_email'])·{ 733: Line indented incorrectly; expected 12 spaces, found 11 ···············$recipientlist[]·=·$mail_previous['room_admin_email']; 734: Line indented incorrectly; expected at least 16 spaces, found 15 ····if·(sizeof($recipientlist)==0)·{ 765: The use of function sizeof() is forbidden; use count() instead ········return·FALSE; 766: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ····$subject·=·get_string('mail_subject_entry','block_mrbs',·$subjdetails); 772: Commas (,) must be followed by white space. ····if·($new_entry) 774: Expected "if (...) {\n"; found "if (...)\n {\n" ········$body·=·get_string('mail_body_new_entry','block_mrbs')·.·":·\n\n"; 776: Commas (,) must be followed by white space. ····else 778: Expected "} else {\n"; found "}\n else\n {\n" ········$body·=·get_string('mail_body_changed_entry','block_mrbs')·.·":·\n\n"; 780: Commas (,) must be followed by white space. ····if·(isset($url_base)·&&·($url_base·!=·"")) 783: Expected "if (...) {\n"; found "if (...)\n {\n" ····else 787: Expected "} else {\n"; found "}\n else\n {\n" ····if·($rep_type·>·0) 792: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(MAIL_DETAILS) 798: Expected "if (...) {\n"; found "if (...)\n {\n" ····$body·.=·"\n"; 925: Line indented incorrectly; expected at least 8 spaces, found 4 ········$body·.=·"\n"·.·get_string('namebooker','block_mrbs')·.·":·"; 800: Commas (,) must be followed by white space. ········$body·.=·get_string('room','block_mrbs')·.·":·"·. 810: Commas (,) must be followed by white space. ········if·(·$enable_periods·) 817: Expected "if (...) {\n"; found "if (...)\n {\n" ············$body·.=·get_string('start_date','block_mrbs')·.·":·"; 821: Commas (,) must be followed by white space. ········else 825: Expected "} else {\n"; found "}\n else\n {\n" ············$body·.=·get_string('start_date','block_mrbs')·.·":·"·. 828: Commas (,) must be followed by white space. ········$body·.=·get_string('duration','block_mrbs')·.·":·"·. 833: Commas (,) must be followed by white space. ········if·(·$enable_periods·) 838: Expected "if (...) {\n"; found "if (...)\n {\n" ············$body·.=·get_string('end_date','block_mrbs')·.·":·"; 843: Commas (,) must be followed by white space. ········else 847: Expected "} else {\n"; found "}\n else\n {\n" ············$body·.=·get_string('end_date','block_mrbs')·.·":·"·. 851: Commas (,) must be followed by white space. ········$body·.=·get_string('type','block_mrbs')·.·":·"; 856: Commas (,) must be followed by white space. ········if·($new_entry) 857: Expected "if (...) {\n"; found "if (...)\n {\n" ········else 861: Expected "} else {\n"; found "}\n else\n {\n" ········$body·.=·"\n"·.·get_string('createdby','block_mrbs')·.·":·"·. 868: Commas (,) must be followed by white space. ········$body·.=·"\n"·.·get_string('rep_type','block_mrbs'); 876: Commas (,) must be followed by white space. ········if·($new_entry) 877: Expected "if (...) {\n"; found "if (...)\n {\n" ············$body·.=·":·"·.·get_string('rep_type_'.$rep_type,'block_mrbs'); 879: Commas (,) must be followed by white space. ········else 881: Expected "} else {\n"; found "}\n else\n {\n" ············$body·.=··":·"·.·compareEntries(get_string('rep_type_'.$rep_type,'block_mrbs'), 884: Commas (,) must be followed by white space. ················get_string('rep_type_'.$temp,'block_mrbs'),·$new_entry); 885: Commas (,) must be followed by white space. ········if·($rep_type·>·0) 889: Expected "if (...) {\n"; found "if (...)\n {\n" ········$opt·=·""; 891: Line indented incorrectly; expected at least 12 spaces, found 8 ········if·(($rep_type·==·2)·||·($rep_type·==·6)) 892: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(($rep_type·==·2)·||·($rep_type·==·6)) 892: Line indented incorrectly; expected 12 spaces, found 8 ········//·Display·day·names·according·to·language·and·preferred·weekday·start. 894: Line indented incorrectly; expected at least 16 spaces, found 8 ········for·($i·=·0;·$i·<·7;·$i++) 895: Expected "for (...) {\n"; found "for (...)\n {\n" ········for·($i·=·0;·$i·<·7;·$i++) 895: Line indented incorrectly; expected 16 spaces, found 8 ············$daynum·=·($i·+·$weekstarts)·%·7; 897: Line indented incorrectly; expected at least 20 spaces, found 12 ············if·($rep_opt[$daynum])·$opt·.=·day_name($daynum)·.·"·"; 898: Inline control structures are not allowed ········if·($rep_type·==·6) 901: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($rep_type·==·6) 901: Line indented incorrectly; expected 12 spaces, found 8 ········$body·.=·"\n"·.·get_string('rep_num_weeks','block_mrbs'); 903: Line indented incorrectly; expected at least 16 spaces, found 8 ········$body·.=·"\n"·.·get_string('rep_num_weeks','block_mrbs'); 903: Commas (,) must be followed by white space. ········$body·.=··":·"·.·compareEntries($rep_num_weeks,·$mail_previous["rep_num_weeks"],·$new_entry); 904: Line indented incorrectly; expected at least 16 spaces, found 8 ········if($opt·||·$mail_previous["rep_opt"]) 907: Expected "if (...) {\n"; found "if(...)\n {\n" ········if($opt·||·$mail_previous["rep_opt"]) 907: Line indented incorrectly; expected 12 spaces, found 8 ········$body·.=·"\n"·.·get_string('rep_rep_day','block_mrbs'); 909: Line indented incorrectly; expected at least 16 spaces, found 8 ········$body·.=·"\n"·.·get_string('rep_rep_day','block_mrbs'); 909: Commas (,) must be followed by white space. ········$body·.=··":·"·.·compareEntries($opt,·$mail_previous["rep_opt"],·$new_entry); 910: Line indented incorrectly; expected at least 16 spaces, found 8 ············$body·.=·"\n"·.·get_string('rep_end_date','block_mrbs'); 913: Commas (,) must be followed by white space. ············if·($new_entry) 914: Expected "if (...) {\n"; found "if (...)\n {\n" ············else 918: Expected "} else {\n"; found "}\n else\n {\n" ················notice(get_string('no_user_with_email','block_mrbs',$recip)); 945: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',$recip)); 945: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',MAIL_FROM)); 947: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',MAIL_FROM)); 947: Commas (,) must be followed by white space. function·notifyAdminOnDelete($mail_previous) 963: function name "notifyAdminOnDelete" must be lower-case letters only { 964: Opening brace should be on the same line as the declaration ····if·(MAIL_AREA_ADMIN_ON_BOOKINGS) 969: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(''·!=·$mail_previous['area_admin_email']) 971: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(MAIL_ROOM_ADMIN_ON_BOOKINGS) 976: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(''·!=·$mail_previous['room_admin_email']) 978: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(MAIL_BOOKER) 983: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(sizeof($recipientlist)==0)·{ 999: The use of function sizeof() is forbidden; use count() instead ········return·FALSE; 1000: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ····$subject·=·get_string('mail_subject_delete','block_mrbs',·$subjdetails); 1006: Commas (,) must be followed by white space. ····$body·=·get_string('mail_body_del_entry','block_mrbs')·.·":·\n\n"; 1007: Commas (,) must be followed by white space. ····$body·.=·"\n"·.·get_string('namebooker','block_mrbs')·.·':·'; 1009: Commas (,) must be followed by white space. ····$body·.=·get_string('room','block_mrbs')·.·":·"; 1013: Commas (,) must be followed by white space. ····$body·.=·get_string('start_date','block_mrbs')·.·':·'; 1016: Commas (,) must be followed by white space. ····if·(·$enable_periods·) 1017: Expected "if (...) {\n"; found "if (...)\n {\n" ····else 1021: Expected "} else {\n"; found "}\n else\n {\n" ····$body·.=·get_string('duration','block_mrbs')·.·':·'·.·$mail_previous['duration']·.·'·'; 1025: Commas (,) must be followed by white space. ····if·(·$enable_periods·) 1027: Expected "if (...) {\n"; found "if (...)\n {\n" ········$body·.=·get_string('end_date','block_mrbs')·.·":·"; 1029: Commas (,) must be followed by white space. ····else 1032: Expected "} else {\n"; found "}\n else\n {\n" ········$body·.=·get_string('end_date','block_mrbs')·.·":·"·.·$mail_previous['end_date']; 1034: Commas (,) must be followed by white space. ····$body·.=·get_string('type','block_mrbs')·.·":·"; 1037: Commas (,) must be followed by white space. ····$body·.=·"\n"·.·get_string('createdby','block_mrbs')·.·":·"; 1040: Commas (,) must be followed by white space. ····$body·.=·"\n"·.·get_string('rep_type','block_mrbs'); 1043: Commas (,) must be followed by white space. ····$body·.=··":·"·.·get_string('rep_type_'.$temp,'block_mrbs'); 1045: Commas (,) must be followed by white space. ····if·($mail_previous['rep_type']·>·0) 1046: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($mail_previous['rep_type']·==·6) 1048: Expected "if (...) {\n"; found "if (...)\n {\n" ···········$body·.=·"\n"·.·get_string('rep_num_weeks','block_mrbs'); 1050: Line indented incorrectly; expected at least 12 spaces, found 11 ···········$body·.=·"\n"·.·get_string('rep_num_weeks','block_mrbs'); 1050: Commas (,) must be followed by white space. ···········$body·.=··":·"·.·$mail_previous["rep_num_weeks"]; 1051: Line indented incorrectly; expected at least 12 spaces, found 11 ········if($mail_previous["rep_opt"]) 1054: Expected "if (...) {\n"; found "if(...)\n {\n" ···········$body·.=·"\n"·.·get_string('rep_rep_day','block_mrbs'); 1056: Line indented incorrectly; expected at least 12 spaces, found 11 ···········$body·.=·"\n"·.·get_string('rep_rep_day','block_mrbs'); 1056: Commas (,) must be followed by white space. ···········$body·.=··"·"·.·$mail_previous["rep_opt"]; 1057: Line indented incorrectly; expected at least 12 spaces, found 11 ········$body·.=·"\n"·.·get_string('rep_end_date','block_mrbs'); 1060: Commas (,) must be followed by white space. ················notice(get_string('error_send_email','block_mrbs',$recip)); 1077: Commas (,) must be followed by white space. ················notice(get_string('error_send_email','block_mrbs',$recip)); 1077: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',$recip)); 1082: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',$recip)); 1082: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',MAIL_FROM)); 1084: Commas (,) must be followed by white space. ················notice(get_string('no_user_with_email','block_mrbs',MAIL_FROM)); 1084: Commas (,) must be followed by white space. function·getPreviousEntryData($id,·$series) 1102: function name "getPreviousEntryData" must be lower-case letters only { 1103: Opening brace should be on the same line as the declaration ····if·(1·==·$series) 1124: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(·$enable_periods·) 1156: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(1·!=·$series) 1162: Expected "if (...) {\n"; found "if (...)\n {\n" ········else 1174: Expected "} else {\n"; found "}\n // This is a serie\n else\n {\n" ········$mail_previous['rep_end_date']·= 1181: Line indented incorrectly; expected at least 12 spaces, found 8 ········$mail_previous['rep_opt']·=·""; 1188: Line indented incorrectly; expected at least 12 spaces, found 8 ········$mail_previous['rep_num_weeks']·=·$details->rep_num_weeks; 1222: Line indented incorrectly; expected at least 12 spaces, found 8 ················getMailTimeDateString($details->tbl_r_end_date,·FALSE); 1182: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ········switch($details->rep_type) 1189: Line indented incorrectly; expected 12 spaces, found 8 ········case·2: 1191: Line indented incorrectly; expected 16 spaces, found 8 ········case·6: 1192: Line indented incorrectly; expected 16 spaces, found 8 ············$rep_day[0]·=·$details->rep_opt[0]·!=·"0"; 1193: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[1]·=·$details->rep_opt[1]·!=·"0"; 1194: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[2]·=·$details->rep_opt[2]·!=·"0"; 1195: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[3]·=·$details->rep_opt[3]·!=·"0"; 1196: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[4]·=·$details->rep_opt[4]·!=·"0"; 1197: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[5]·=·$details->rep_opt[5]·!=·"0"; 1198: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[6]·=·$details->rep_opt[6]·!=·"0"; 1199: Line indented incorrectly; expected at least 20 spaces, found 12 ············if·($details->rep_type·==·6) 1201: Expected "if (...) {\n"; found "if (...)\n {\n" ············if·($details->rep_type·==·6) 1201: Line indented incorrectly; expected 20 spaces, found 12 ················$mail_previous['rep_num_weeks']·=·$details->rep_num_weeks; 1203: Line indented incorrectly; expected at least 24 spaces, found 16 ············else 1205: Expected "} else {\n"; found "}\n else\n {\n" ············else 1205: Line indented incorrectly; expected 20 spaces, found 12 ················$mail_previous['rep_num_weeks']·=·""; 1207: Line indented incorrectly; expected at least 24 spaces, found 16 ········default: 1212: Line indented incorrectly; expected 16 spaces, found 8 ············$rep_day·=·array(0,·0,·0,·0,·0,·0,·0); 1213: Line indented incorrectly; expected at least 20 spaces, found 12 ········for·($i·=·0;·$i·<·7;·$i++) 1215: Expected "for (...) {\n"; found "for (...)\n {\n" ········for·($i·=·0;·$i·<·7;·$i++) 1215: Line indented incorrectly; expected 12 spaces, found 8 ········$wday·=·($i·+·$weekstarts)·%·7; 1217: Line indented incorrectly; expected at least 16 spaces, found 8 ········if·($rep_day[$wday]) 1218: Inline control structures are not allowed ····else 1228: Expected "} else {\n"; found "}\n // If we don't use periods\n else\n {\n" ········if·(1·!=·$series) 1231: Expected "if (...) {\n"; found "if (...)\n {\n" ········else 1243: Expected "} else {\n"; found "}\n // This is a serie\n else\n {\n" ········$mail_previous['rep_end_date']·= 1250: Line indented incorrectly; expected at least 12 spaces, found 8 ········$mail_previous['rep_opt']·=·""; 1257: Line indented incorrectly; expected at least 12 spaces, found 8 ········$mail_previous['rep_num_weeks']·=·$details->rep_num_weeks; 1291: Line indented incorrectly; expected at least 12 spaces, found 8 ················getMailTimeDateString($details->tbl_r_end_date,·FALSE); 1251: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ········switch($details->rep_type) 1258: Line indented incorrectly; expected 12 spaces, found 8 ········case·2: 1260: Line indented incorrectly; expected 16 spaces, found 8 ········case·6: 1261: Line indented incorrectly; expected 16 spaces, found 8 ············$rep_day[0]·=·$details->rep_opt[0]·!=·"0"; 1262: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[1]·=·$details->rep_opt[1]·!=·"0"; 1263: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[2]·=·$details->rep_opt[2]·!=·"0"; 1264: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[3]·=·$details->rep_opt[3]·!=·"0"; 1265: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[4]·=·$details->rep_opt[4]·!=·"0"; 1266: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[5]·=·$details->rep_opt[5]·!=·"0"; 1267: Line indented incorrectly; expected at least 20 spaces, found 12 ············$rep_day[6]·=·$details->rep_opt[6]·!=·"0"; 1268: Line indented incorrectly; expected at least 20 spaces, found 12 ············if·($details->rep_type·==·6) 1270: Expected "if (...) {\n"; found "if (...)\n {\n" ············if·($details->rep_type·==·6) 1270: Line indented incorrectly; expected 20 spaces, found 12 ················$mail_previous['rep_num_weeks']·=·$details->rep_num_weeks; 1272: Line indented incorrectly; expected at least 24 spaces, found 16 ············else 1274: Expected "} else {\n"; found "}\n else\n {\n" ············else 1274: Line indented incorrectly; expected 20 spaces, found 12 ················$mail_previous['rep_num_weeks']·=·""; 1276: Line indented incorrectly; expected at least 24 spaces, found 16 ········default: 1281: Line indented incorrectly; expected 16 spaces, found 8 ············$rep_day·=·array(0,·0,·0,·0,·0,·0,·0); 1282: Line indented incorrectly; expected at least 20 spaces, found 12 ········for·($i·=·0;·$i·<·7;·$i++) 1284: Expected "for (...) {\n"; found "for (...)\n {\n" ········for·($i·=·0;·$i·<·7;·$i++) 1284: Line indented incorrectly; expected 12 spaces, found 8 ········$wday·=·($i·+·$weekstarts)·%·7; 1286: Line indented incorrectly; expected at least 16 spaces, found 8 ········if·($rep_day[$wday]) 1287: Inline control structures are not allowed function·compareEntries($new_value,·$previous_value,·$new_entry) 1312: function name "compareEntries" must be lower-case letters only { 1313: Opening brace should be on the same line as the declaration ····if·($new_entry) 1315: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·($new_value·!=·$previous_value) 1319: Expected "if (...) {\n"; found "if (...)\n {\n" function·unHtmlEntities($string) 1326: function name "unHtmlEntities" must be lower-case letters only { 1327: Opening brace should be on the same line as the declaration { 1334: Opening brace should be on the same line as the declaration ····if·($recipient_user=get_complete_user_data('email',$email))·{ 1335: Commas (,) must be followed by white space. function·to_hr_time($time){ 1350: Expected 1 space between the closing parenthesis and the opening brace; found 0 ····if·($cfg_mrbs->enable_periods){ 1352: Expected "if (...) {\n"; found "if (...){\n" ········$periods=explode("\n",$cfg_mrbs->periods); 1353: Commas (,) must be followed by white space. ········$period=intval(date('i',$time)); 1354: Commas (,) must be followed by white space. ····}else{ 1356: Expected "} else {\n"; found "}else{\n" ········return·date('G:i',$time); 1357: Commas (,) must be followed by white space. function·print_header_mrbs($day=NULL,·$month=NULL,·$year=NULL,·$area=NULL,·$userview·=·false)·//if·values·are·not·passed·assume·NULL 31: Line exceeds 100 characters; contains 132 characters ····$PAGE->requires->js('/blocks/mrbs/web/roomsearch.js',·true);·//·For·the·'ChangeOptionDays'·function 66: Line exceeds 100 characters; contains 103 characters ········$helpurl·=·new·moodle_url('/blocks/mrbs/web/help.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 104: Line exceeds 100 characters; contains 115 characters ········$adminurl·=·new·moodle_url('/blocks/mrbs/web/admin.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 107: Line exceeds 100 characters; contains 117 characters ········genDateSelector("",·$day,·$month,·$year);·//·Note:·The·1st·arg·must·match·the·last·arg·in·the·call·to·ChangeOptionDays·below. 136: Line exceeds 100 characters; contains 133 characters ····················ChangeOptionDays(document.Form1,·'');·//·Note:·The·2nd·arg·must·match·the·first·in·the·call·to·genDateSelector·above. 145: Line exceeds 100 characters; contains 137 characters ········echo·''.$helpstr.''; 167: Line exceeds 100 characters; contains 110 characters ················echo·''.$adminstr.''; 171: Line exceeds 100 characters; contains 120 characters ············echo·''.$reportstr.''; 173: Line exceeds 100 characters; contains 118 characters ············echo·''; 174: Line exceeds 100 characters; contains 111 characters ·*·@return·string···$string···string·converted·to·get_string('charset','block_mrbs')·[i.e.·the·character·set·of·the·MRBS·block·language·pack 590: Line exceeds 100 characters; contains 140 characters ········else·{·//·if·this·is·an·edited·entry,·we·already·have·room_admin_email,·avoiding·a·database·hit. 732: Line exceeds 100 characters; contains 104 characters ····················$recipientlist[]·=·str_replace(MAIL_USERNAME_SUFFIX,·'',·$create_by)·.·MAIL_DOMAIN; 755: Line exceeds 100 characters; contains 103 characters ····················$recipientlist[]·=·str_replace(MAIL_USERNAME_SUFFIX,·'',·$mail_previous['createdby'])·.·MAIL_DOMAIN; 759: Line exceeds 100 characters; contains 120 characters ········$body·.=··":·"·.·compareEntries($rep_num_weeks,·$mail_previous["rep_num_weeks"],·$new_entry); 904: Line exceeds 100 characters; contains 101 characters ····//·$recipients·=·''; 681: This comment is 58% valid code; is this commented out code? blocks/mrbs/web/gotoroom.php 2: The opening $day,·'month'=>$month,·'year'=>$year,·'room'=>$room)); 41: Line exceeds 100 characters; contains 126 characters $sql·=·"SELECT·area_id,·area_name·FROM·{mrbs_room}·AS·r·JOIN·{mrbs_area}·AS·a·ON·a.id·=·r.area_id·WHERE·room_name·=·?·OR·room_name·=·?"; 51: Line exceeds 100 characters; contains 136 characters ······························array('day'=>$day,·'month'=>$month,·'year'=>$year,·'area'=>$area->area_id)); 57: Line exceeds 100 characters; contains 106 characters ··································array('day'=>$day,·'month'=>$month,·'year'=>$year,·'roomnotfound'=>$room)); 61: Line exceeds 100 characters; contains 109 characters blocks/mrbs/web/help.php 2: The opening "·.·get_string('about_mrbs','block_mrbs')·.·"\n"; 54: Commas (,) must be followed by white space. echo·"

      ".get_string('mrbs','block_mrbs')."·-·".get_mrbs_version()."\n"; 55: Commas (,) must be followed by white space. echo·"
      "·.·get_string('system','block_mrbs')·.·php_uname()·.·"\n"; 57: Commas (,) must be followed by white space. echo·get_string('please_contact','block_mrbs')·.·'·"·.·get_string('for_any_questions','block_mrbs')·.·"\n"; 63: Commas (,) must be followed by white space. ····include·$CFG->dirroot.'/blocks/mrbs/lang/'.$USER->lang.'/help/site_faq.html'; 66: "include" must be immediately followed by an open parenthesis ····include·$CFG->dirroot.'/blocks/mrbs/lang/en/help/site_faq.html'; 68: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 71: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 71: File is being unconditionally included; use "require" instead $thisurl·=·new·moodle_url('/blocks/mrbs/web/help.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 42: Line exceeds 100 characters; contains 107 characters echo·"

      ".get_string('mrbs','block_mrbs')."·-·".get_mrbs_version()."\n"; 55: Line exceeds 100 characters; contains 117 characters //echo·"
      "·.·get_string('database','block_mrbs')·.·sql_version()·.·"\n"; 56: This comment is 48% valid code; is this commented out code? blocks/mrbs/web/index.php 2: The opening $year,·'month'=>$month)); 34: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐case·"week": 36: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$redirect·=·new·moodle_url('/blocks/mrbs/web/week.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day)); 37: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐default: 39: Line indented incorrectly; expected 4 spaces, found 1 ࢐$sql·=·"select·area_id·from·$tbl_room·where·id=$default_room"; 44: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$res·=·$DB->get_record('mrbs_room',·'area_id',·array('id'=>$default_room)); 45: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·(!empty($res))·{ 46: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$redirect·=·new·moodle_url('/blocks/mrbs/web/week.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day)); 37: Line exceeds 100 characters; contains 110 characters ········$redirect·=·new·moodle_url('/blocks/mrbs/web/day.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 40: Line exceeds 100 characters; contains 115 characters blocks/mrbs/web/mincals.php ········$returl·=·new·moodle_url('/blocks/mrbs/web/'.$isuser.$this->dmy.'.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day,·'area'=>$this->area)); 55: Line exceeds maximum limit of 140 characters; contains 153 characters ········$returl·=·new·moodle_url('/blocks/mrbs/web/'.$isuser.$this->dmy.'.php',·array('year'=>$year,·'month'=>$month,·'day'=>$day,·'area'=>$this->area)); 55: Line indented incorrectly; expected at least 12 spaces, found 8 ········//$prevMonth·=·$this->getCalendarLink($this->month·-·1·>···0·?·$this->month·-·1·:·12,·$this->month·-·1·>···0·?·$this->year·:·$this->year·-·1); 143: Line exceeds maximum limit of 140 characters; contains 150 characters ········//$prevMonth·=·$this->getCalendarLink($this->month·-·1·>···0·?·$this->month·-·1·:·12,·$this->month·-·1·>···0·?·$this->year·:·$this->year·-·1); 143: Line indented incorrectly; expected at least 12 spaces, found 8 ········//$nextMonth·=·$this->getCalendarLink($this->month·+·1·<=·12·?·$this->month·+·1·:··1,·$this->month·+·1·<=·12·?·$this->year·:·$this->year·+·1); 144: Line exceeds maximum limit of 140 characters; contains 150 characters ········//$nextMonth·=·$this->getCalendarLink($this->month·+·1·<=·12·?·$this->month·+·1·:··1,·$this->month·+·1·<=·12·?·$this->year·:·$this->year·+·1); 144: Line indented incorrectly; expected at least 12 spaces, found 8 ࢐࢐····#echo·"((".$this->day."·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInMonth)·>·(-6))·&&·(".$this->month."·==·($month·+·1))·&&·($first·!=·0))
      "; 187: Line exceeds maximum limit of 140 characters; contains 176 characters ࢐࢐····#echo·"((".$this->day."·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInMonth)·>·(-6))·&&·(".$this->month."·==·($month·+·1))·&&·($first·!=·0))
      "; 187: Line indented incorrectly; expected at least 28 spaces, found 6 ························elseif·(($this->day·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInPrevMonth)·>·(-6))·&&·($this->month·==·(($month·+·1)%12))·&&·($first·!=·0)) 190: Line exceeds maximum limit of 140 characters; contains 189 characters ························elseif·(($this->day·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInPrevMonth)·>·(-6))·&&·($this->month·==·(($month·+·1)%12))·&&·($first·!=·0)) 190: Usage of ELSEIF not allowed; use ELSE IF instead ························elseif·(($this->day·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInPrevMonth)·>·(-6))·&&·($this->month·==·(($month·+·1)%12))·&&·($first·!=·0)) 190: Member variable "daysInPrevMonth" must be all lower-case 2: The opening "; 221: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Commas (,) must be followed by white space. echo·$cal->getHTML(); 223: Line indented incorrectly; expected at least 4 spaces, found 0 echo·""; 224: Line indented incorrectly; expected at least 4 spaces, found 0 echo·""; 226: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Commas (,) must be followed by white space. echo·$cal->getHTML(); 228: Line indented incorrectly; expected at least 4 spaces, found 0 echo·""; 229: Line indented incorrectly; expected at least 4 spaces, found 0 echo·""; 231: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Line indented incorrectly; expected at least 4 spaces, found 0 $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Commas (,) must be followed by white space. $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Commas (,) must be followed by white space. echo·$cal->getHTML(); 233: Line indented incorrectly; expected at least 4 spaces, found 0 echo·""; 234: Line indented incorrectly; expected at least 4 spaces, found 0 class·Calendar 20: Line indented incorrectly; expected 4 spaces, found 0 ····var·$month; 22: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$month; 22: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$month; 22: Scope modifier not specified for member variable "$month" ····var·$year; 23: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$year; 23: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$year; 23: Scope modifier not specified for member variable "$year" ····var·$day; 24: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$day; 24: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$day; 24: Scope modifier not specified for member variable "$day" ····var·$h; 25: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$h; 25: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$h; 25: Scope modifier not specified for member variable "$h" ····var·$area; 26: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$area; 26: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$area; 26: Scope modifier not specified for member variable "$area" ····var·$room; 27: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$room; 27: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$room; 27: Scope modifier not specified for member variable "$room" ····var·$dmy; 28: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$dmy; 28: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$dmy; 28: Scope modifier not specified for member variable "$dmy" ····var·$usertt; 29: Line indented incorrectly; expected at least 8 spaces, found 4 ····var·$usertt; 29: The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected ····var·$usertt; 29: Scope modifier not specified for member variable "$usertt" ····function·Calendar($day,·$month,·$year,·$h,·$area,·$room,·$dmy,·$usertt) 31: method name "Calendar::Calendar" must be in lower-case letters only ····function·Calendar($day,·$month,·$year,·$h,·$area,·$room,·$dmy,·$usertt) 31: PHP4 style constructors are not allowed; use "__construct()" instead ····function·Calendar($day,·$month,·$year,·$h,·$area,·$room,·$dmy,·$usertt) 31: Line indented incorrectly; expected 8 spaces, found 4 ····function·Calendar($day,·$month,·$year,·$h,·$area,·$room,·$dmy,·$usertt) 31: No scope modifier specified for function "Calendar" ····{ 32: Opening brace should be on the same line as the declaration ········$this->day···=·$day; 33: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->month·=·$month; 34: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->year··=·$year; 35: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->h·····=·$h; 36: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->area··=·$area; 37: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->room··=·$room; 38: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->dmy···=·$dmy; 39: Line indented incorrectly; expected at least 12 spaces, found 8 ········$this->usertt=·$usertt; 40: Line indented incorrectly; expected at least 12 spaces, found 8 43: Functions must not contain multiple empty lines in a row; found 2 empty lines ····function·getCalendarLink($month,·$year) 45: method name "Calendar::getCalendarLink" must be in lower-case letters only ····function·getCalendarLink($month,·$year) 45: Line indented incorrectly; expected 8 spaces, found 4 ····function·getCalendarLink($month,·$year) 45: No scope modifier specified for function "getCalendarLink" ····{ 46: Opening brace should be on the same line as the declaration ········return·""; 47: Line indented incorrectly; expected at least 12 spaces, found 8 ····function·getDateLink($day,·$month,·$year)·{ 50: method name "Calendar::getDateLink" must be in lower-case letters only ····function·getDateLink($day,·$month,·$year)·{ 50: Line indented incorrectly; expected 8 spaces, found 4 ····function·getDateLink($day,·$month,·$year)·{ 50: No scope modifier specified for function "getDateLink" ········$isuser·=·''; 51: Line indented incorrectly; expected at least 12 spaces, found 8 ········return·$returl; 62: Line indented incorrectly; expected at least 12 spaces, found 8 ········if(!empty($this->usertt))·{ 52: Expected "if (...) {\n"; found "if(...) {\n" ········if(!empty($this->usertt))·{ 52: Line indented incorrectly; expected 12 spaces, found 8 ············$isuser='user'; 53: Line indented incorrectly; expected at least 16 spaces, found 12 ········if·(!empty($this->usertt))·{ 56: Line indented incorrectly; expected 12 spaces, found 8 ············$returl->param('user',·$this->usertt); 57: Line indented incorrectly; expected at least 16 spaces, found 12 ········if·(!empty($this->room))·{ 59: Line indented incorrectly; expected 12 spaces, found 8 ············$returl->param('room',·$this->room); 60: Line indented incorrectly; expected at least 16 spaces, found 12 64: Functions must not contain multiple empty lines in a row; found 2 empty lines ····function·getDaysInMonth($month,·$year) 66: method name "Calendar::getDaysInMonth" must be in lower-case letters only ····function·getDaysInMonth($month,·$year) 66: Line indented incorrectly; expected 8 spaces, found 4 ····function·getDaysInMonth($month,·$year) 66: No scope modifier specified for function "getDaysInMonth" ····{ 67: Opening brace should be on the same line as the declaration ········$days·=·array(31,·28,·31,·30,·31,·30,·31,·31,·30,·31,·30,·31); 73: Line indented incorrectly; expected at least 12 spaces, found 8 ········$d·=·$days[$month·-·1]; 75: Line indented incorrectly; expected at least 12 spaces, found 8 ········return·$d; 98: Line indented incorrectly; expected at least 12 spaces, found 8 ········if·($month·<·1·||·$month·>·12) 68: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($month·<·1·||·$month·>·12) 68: Line indented incorrectly; expected 12 spaces, found 8 ············return·0; 70: Line indented incorrectly; expected at least 16 spaces, found 12 ········if·($month·==·2) 77: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·($month·==·2) 77: Line indented incorrectly; expected 12 spaces, found 8 ············//·Check·for·leap·year 79: Line indented incorrectly; expected at least 16 spaces, found 12 ············//·Forget·the·4000·rule,·I·doubt·I'll·be·around·then... 80: Line indented incorrectly; expected at least 16 spaces, found 12 ············if·($year%4·==·0) 82: Expected "if (...) {\n"; found "if (...)\n {\n" ············if·($year%4·==·0) 82: Line indented incorrectly; expected 16 spaces, found 12 ················if·($year%100·==·0) 84: Expected "if (...) {\n"; found "if (...)\n {\n" ················if·($year%100·==·0) 84: Line indented incorrectly; expected 20 spaces, found 16 ····················if·($year%400·==·0) 86: Expected "if (...) {\n"; found "if (...)\n {\n" ····················if·($year%400·==·0) 86: Line indented incorrectly; expected 24 spaces, found 20 ························$d·=·29; 88: Line indented incorrectly; expected at least 28 spaces, found 24 ················else 91: Expected "} else {\n"; found "}\n else\n {\n" ················else 91: Line indented incorrectly; expected 20 spaces, found 16 ····················$d·=·29; 93: Line indented incorrectly; expected at least 24 spaces, found 20 ····function·getFirstDays() 101: method name "Calendar::getFirstDays" must be in lower-case letters only ····function·getFirstDays() 101: Line indented incorrectly; expected 8 spaces, found 4 ····function·getFirstDays() 101: No scope modifier specified for function "getFirstDays" ····{ 102: Opening brace should be on the same line as the declaration ······global·$weekstarts; 103: Line indented incorrectly; expected at least 12 spaces, found 6 ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Line indented incorrectly; expected at least 12 spaces, found 6 ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Commas (,) must be followed by white space. ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Commas (,) must be followed by white space. ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Commas (,) must be followed by white space. ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Commas (,) must be followed by white space. ······$basetime·=·mktime(12,0,0,6,11+$weekstarts,2000); 105: Commas (,) must be followed by white space. ······return·$s; 112: Line indented incorrectly; expected at least 12 spaces, found 6 ······for·($i·=·0,·$s·=·"";·$i·<·7;·$i++) 106: Expected "for (...) {\n"; found "for (...)\n {\n" ······for·($i·=·0,·$s·=·"";·$i·<·7;·$i++) 106: Line indented incorrectly; expected 12 spaces, found 6 ·········$show·=·$basetime·+·($i·*·24·*·60·*·60); 108: Line indented incorrectly; expected at least 16 spaces, found 9 ·········$fl·=·strftime('%a',·$show); 109: Line indented incorrectly; expected at least 16 spaces, found 9 ·········$s·.=·"$fl\n"; 110: Line indented incorrectly; expected at least 16 spaces, found 9 ····function·getHTML() 115: method name "Calendar::getHTML" must be in lower-case letters only ····function·getHTML() 115: Line indented incorrectly; expected 8 spaces, found 4 ····function·getHTML() 115: No scope modifier specified for function "getHTML" ····{ 116: Opening brace should be on the same line as the declaration ········global·$weekstarts; 117: Line indented incorrectly; expected at least 12 spaces, found 8 ········global·$day; 118: Line indented incorrectly; expected at least 12 spaces, found 8 ········global·$month; 119: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·=·""; 122: Line indented incorrectly; expected at least 12 spaces, found 8 ········$daysInMonth·=·$this->getDaysInMonth($this->month,·$this->year); 124: Line indented incorrectly; expected at least 12 spaces, found 8 ········$daysInMonth·=·$this->getDaysInMonth($this->month,·$this->year); 124: Member variable "daysInMonth" must be all lower-case ࢐//·$prevYear·is·the·current·year·unless·the·previous·month·is 125: Line indented incorrectly; expected at least 12 spaces, found 1 ࢐//·December·then·you·need·to·decrement·the·year 126: Line indented incorrectly; expected at least 12 spaces, found 1 ········$daysInPrevMonth·=·$this->getDaysInMonth($prevMonth,·$prevYear); 137: Line indented incorrectly; expected at least 12 spaces, found 8 ········$daysInPrevMonth·=·$this->getDaysInMonth($prevMonth,·$prevYear); 137: Member variable "daysInPrevMonth" must be all lower-case ········$daysInPrevMonth·=·$this->getDaysInMonth($prevMonth,·$prevYear); 137: Member variable "prevMonth" must be all lower-case ········$daysInPrevMonth·=·$this->getDaysInMonth($prevMonth,·$prevYear); 137: Member variable "prevYear" must be all lower-case ········$date·=·mktime(12,·0,·0,·$this->month,·1,·$this->year); 138: Line indented incorrectly; expected at least 12 spaces, found 8 ········$first·=·(strftime('%w',·$date)·+·7·-·$weekstarts)·%·7; 140: Line indented incorrectly; expected at least 12 spaces, found 8 ········$monthName·=·userdate($date,·"%B"); 141: Line indented incorrectly; expected at least 12 spaces, found 8 ········$monthName·=·userdate($date,·"%B"); 141: Member variable "monthName" must be all lower-case ········$s·.=·"\n"; 146: Line indented incorrectly; expected at least 12 spaces, found 8 ········//·prints·month·name·and·year 147: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"\n"; 148: Line indented incorrectly; expected at least 12 spaces, found 8 ········//$s·.=·""·.·(($prevMonth·==·"")·?·" "·:·"<<")··.·"\n"; 149: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"$monthName $this->year\n"; 150: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"$monthName $this->year\n"; 150: Member variable "monthName" must be all lower-case ········//$s·.=·""·.·(($nextMonth·==·"")·?·" "·:·">>")··.·"\n"; 151: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"\n"; 152: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"\n"; 154: Line indented incorrectly; expected at least 12 spaces, found 8 ········//·gets·days·of·week 155: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·$this->getFirstDays(); 156: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"\n"; 157: Line indented incorrectly; expected at least 12 spaces, found 8 ········$d·=·1·-·$first; 159: Line indented incorrectly; expected at least 12 spaces, found 8 ········#·this·is·used·to·highlight·days·in·upcoming·month 161: Line indented incorrectly; expected at least 12 spaces, found 8 ········$days_to_highlight·=·($d·+·7); 162: Line indented incorrectly; expected at least 12 spaces, found 8 ········$s·.=·"\n"; 211: Line indented incorrectly; expected at least 12 spaces, found 8 ········return·$s; 213: Line indented incorrectly; expected at least 12 spaces, found 8 ········if·(!isset($weekstarts))·$weekstarts·=·0; 121: Inline control structures are not allowed ࢐if(·$this->month·-·1·>·0·) 127: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if(·$this->month·-·1·>·0·) 127: Line indented incorrectly; expected 12 spaces, found 1 ࢐࢐$prevMonth·=·$this->month·-·1; 129: Line indented incorrectly; expected at least 16 spaces, found 2 ࢐࢐$prevMonth·=·$this->month·-·1; 129: Member variable "prevMonth" must be all lower-case ࢐࢐$prevYear·=·$this->year; 130: Line indented incorrectly; expected at least 16 spaces, found 2 ࢐࢐$prevYear·=·$this->year; 130: Member variable "prevYear" must be all lower-case ࢐else 132: Expected "} else {\n"; found "}\n else\n {\n" ࢐else 132: Line indented incorrectly; expected 12 spaces, found 1 ࢐࢐$prevMonth·=·12; 134: Line indented incorrectly; expected at least 16 spaces, found 2 ࢐࢐$prevMonth·=·12; 134: Member variable "prevMonth" must be all lower-case ࢐࢐$prevYear·=·$this->year·-1; 135: Line indented incorrectly; expected at least 16 spaces, found 2 ࢐࢐$prevYear·=·$this->year·-1; 135: Member variable "prevYear" must be all lower-case ········while·($d·<=·$daysInMonth) 164: Expected "while (...) {\n"; found "while (...)\n {\n" ········while·($d·<=·$daysInMonth) 164: Line indented incorrectly; expected 12 spaces, found 8 ········while·($d·<=·$daysInMonth) 164: Member variable "daysInMonth" must be all lower-case ············$s·.=·"\n"; 166: Line indented incorrectly; expected at least 16 spaces, found 12 ············$s·.=·"\n"; 208: Line indented incorrectly; expected at least 16 spaces, found 12 ············for·($i·=·0;·$i·<·7;·$i++) 168: Expected "for (...) {\n"; found "for (...)\n {\n" ············for·($i·=·0;·$i·<·7;·$i++) 168: Line indented incorrectly; expected 16 spaces, found 12 ················$s·.=·""; 170: Line indented incorrectly; expected at least 20 spaces, found 16 ················$s·.=·"\n"; 205: Line indented incorrectly; expected at least 20 spaces, found 16 ················$d++; 206: Line indented incorrectly; expected at least 20 spaces, found 16 ················if·($d·>·0·&&·$d·<=·$daysInMonth) 171: Expected "if (...) {\n"; found "if (...)\n {\n" ················if·($d·>·0·&&·$d·<=·$daysInMonth) 171: Line indented incorrectly; expected 20 spaces, found 16 ················if·($d·>·0·&&·$d·<=·$daysInMonth) 171: Member variable "daysInMonth" must be all lower-case ····················$link·=·$this->getDateLink($d,·$this->month,·$this->year); 173: Line indented incorrectly; expected at least 24 spaces, found 20 ····················$d_week·=·($d·-·7); 174: Line indented incorrectly; expected at least 24 spaces, found 20 ····················} 184: Line indented incorrectly; expected at least 24 spaces, found 20 ····················} 194: Line indented incorrectly; expected at least 24 spaces, found 20 ····················if·($link·==·"") 176: Inline control structures are not allowed ····················else·if·($this->dmy·==·'day') 178: Expected "if (...) {\n"; found "if (...)\n {\n" ····················else·if·($this->dmy·==·'day') 178: Line indented incorrectly; expected 24 spaces, found 20 ························if·(($d·==·$this->day)·and·($this->h)) 180: Inline control structures are not allowed ························else 182: Inline control structures are not allowed ····················else·if·($this->dmy·==·'week') 185: Expected "} else if (...) {\n"; found "}\n else if (...)\n {\n" ····················else·if·($this->dmy·==·'week') 185: Expected "if (...) {\n"; found "if (...)\n {\n" ····················else·if·($this->dmy·==·'week') 185: Line indented incorrectly; expected 24 spaces, found 20 ························if·(($this->day·<=·$d)·&&·($this->day·>·$d_week)·&&·($this->h)) 188: Inline control structures are not allowed ························else 192: Inline control structures are not allowed ····················elseif·($this->dmy·==·'month') 195: Usage of ELSEIF not allowed; use ELSE IF instead ························if·(·$this->h·) 196: Inline control structures are not allowed ························else 198: Inline control structures are not allowed ················else 201: Expected "} else {\n"; found "}\n else\n {\n" ················else 201: Line indented incorrectly; expected 20 spaces, found 16 ····················$s·.=·" "; 203: Line indented incorrectly; expected at least 24 spaces, found 20 ········//$s·.=·""·.·(($prevMonth·==·"")·?·" "·:·"<<")··.·"\n"; 149: Line exceeds 100 characters; contains 134 characters ········//$s·.=·""·.·(($prevMonth·==·"")·?·" "·:·"<<")··.·"\n"; 149: This comment is 52% valid code; is this commented out code? ········$s·.=·"$monthName $this->year\n"; 150: Line exceeds 100 characters; contains 114 characters ········//$s·.=·""·.·(($nextMonth·==·"")·?·" "·:·">>")··.·"\n"; 151: Line exceeds 100 characters; contains 134 characters ········//$s·.=·""·.·(($nextMonth·==·"")·?·" "·:·">>")··.·"\n"; 151: This comment is 52% valid code; is this commented out code? ····························$s·.=·"$d"; 181: Line exceeds 100 characters; contains 102 characters ····························$s·.=·"$d"; 189: Line exceeds 100 characters; contains 102 characters ····························$s·.=·"$d"; 191: Line exceeds 100 characters; contains 102 characters ····························$s·.=·"$d"; 197: Line exceeds 100 characters; contains 102 characters $cal·=·new·Calendar(date("d",$lastmonth),·date("m",$lastmonth),·date("Y",$lastmonth),·0,·$area,·$room,·$dmy,$usertt); 222: Line exceeds 100 characters; contains 117 characters $cal·=·new·Calendar(date("d",$thismonth),·date("m",$thismonth),·date("Y",$thismonth),·1,·$area,·$room,·$dmy,$usertt); 227: Line exceeds 100 characters; contains 117 characters $cal·=·new·Calendar(date("d",$nextmonth),·date("m",$nextmonth),·date("Y",$nextmonth),·0,·$area,·$room,·$dmy,$usertt); 232: Line exceeds 100 characters; contains 117 characters ········//$prevMonth·=·$this->getCalendarLink($this->month·-·1·>···0·?·$this->month·-·1·:·12,·$this->month·-·1·>···0·?·$this->year·:·$this->year·-·1); 143: This comment is 55% valid code; is this commented out code? ········//$nextMonth·=·$this->getCalendarLink($this->month·+·1·<=·12·?·$this->month·+·1·:··1,·$this->month·+·1·<=·12·?·$this->year·:·$this->year·+·1); 144: This comment is 57% valid code; is this commented out code? ࢐࢐····#echo·"((".$this->day."·<·$days_to_highlight)·&&·($d·<·$days_to_highlight)·&&·(($day·-·$daysInMonth)·>·(-6))·&&·(".$this->month."·==·($month·+·1))·&&·($first·!=·0))
      "; 187: This comment is 57% valid code; is this commented out code? blocks/mrbs/web/month.php $baseurl·=·new·moodle_url('/blocks/mrbs/web/month.php',·array('month'=>$month,·'year'=>$year));·//·Used·as·basis·for·URLs·throughout·this·file 46: Line exceeds maximum limit of 140 characters; contains 142 characters ················$d[$day_num]["data"][]·=·userdate($entry->start_time,·hour_min_format())·.·"~"·.·userdate($entry->end_time,·hour_min_format()); 247: Line exceeds maximum limit of 140 characters; contains 143 characters ················$d[$day_num]["data"][]·=·userdate($entry->start_time,·hour_min_format())·.·"~"·.·userdate($entry->end_time,·hour_min_format()); 247: Line indented incorrectly; expected at least 20 spaces, found 16 ············$viewentry_url·=·new·moodle_url('/blocks/mrbs/web/view_entry.php',·array('id'=>$d[$cday]['id'][$i],·'day'=>$cday,·'month'=>$month,·'year'=>$year)); 384: Line exceeds maximum limit of 140 characters; contains 159 characters 2: The opening ·no·change 91: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//··0·=>·entering·DST 92: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//··1·=>·leaving·DST 93: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$dst_change[$j]·=·is_dst($month,·$j,·$year); 94: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐$midnight[$j]·=·mktime(0,·0,·0,·$month,·$j,·$year,·is_dst($month,·$j,·$year,·0)); 96: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$midnight_tonight[$j]·=·mktime(23,·59,·59,·$month,·$j,·$year,·is_dst($month,·$j,·$year,·23)); 97: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐}·else·{ 98: Closing brace indented incorrectly; expected 4 spaces, found 1 ࢐}·else·{ 98: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$midnight[$j]·=·mktime(12,·0,·0,·$month,·$j,·$year,·is_dst($month,·$j,·$year,·0)); 99: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$midnight_tonight[$j]·=·mktime(12,·count($periods),·59,·$month,·$j,·$year,·is_dst($month,·$j,·$year,·23)); 100: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 101: Closing brace indented incorrectly; expected 1 spaces, found 4 ····echo·''.get_string('areas','block_mrbs').'
      '; 112: Commas (,) must be followed by white space. ····echo·''.get_string('rooms','block_mrbs')."
      "; 143: Commas (,) must be followed by white space. ····echo·$OUTPUT->heading(get_string('no_rooms_for_area','block_mrbs')); 177: Commas (,) must be followed by white space. ····include·"trailer.php"; 178: "include" must be immediately followed by an open parenthesis $yy·=·date("Y",$i); 191: Commas (,) must be followed by white space. $ym·=·date("n",$i); 192: Commas (,) must be followed by white space. $ty·=·date("Y",$i); 195: Commas (,) must be followed by white space. $tm·=·date("n",$i); 196: Commas (,) must be followed by white space. ····echo·'<<'.get_string('monthbefore','block_mrbs').''; 203: Commas (,) must be followed by white space. ····echo·''.get_string('gotothismonth','block_mrbs').''; 204: Commas (,) must be followed by white space. ····echo·''.get_string('monthafter','block_mrbs').'>>'; 205: Commas (,) must be followed by white space. $all_day·=·ereg_replace("·",·" ",·get_string('all_day','block_mrbs')); 214: The use of function ereg_replace() is forbidden $all_day·=·ereg_replace("·",·" ",·get_string('all_day','block_mrbs')); 214: Commas (,) must be followed by white space. ࢐//·Build·an·array·of·information·about·each·day·in·the·month. 219: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·The·information·is·stored·as: 220: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//··d[monthday]["id"][]·=·ID·of·each·entry,·for·linking. 221: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//··d[monthday]["data"][]·=·"start-stop"·times·or·"name"·of·each·entry. 222: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐} 304: Closing brace indented incorrectly; expected 4 spaces, found 1 ࢐····if·($debug_flag)·{ 228: Line indented incorrectly; expected 8 spaces, found 5 ········࢐echo·"
      DEBUG:·result·id·{$entry->id},·starts·{$entry->start_time},·ends·{$entry->end_time}\n"; 229: Line indented incorrectly; expected at least 12 spaces, found 9 ········} 231: Closing brace indented incorrectly; expected 5 spaces, found 8 ࢐····}·else·{ 271: Closing brace indented incorrectly; expected 8 spaces, found 5 ࢐····}·else·{ 271: Line indented incorrectly; expected 8 spaces, found 5 ············case·">·<·":·········//·Starts·after·midnight,·ends·before·midnight 245: Line indented incorrectly; expected 16 spaces, found 12 ············case·"=·<·":·········//·Starts·at·midnight,·ends·before·midnight 246: Line indented incorrectly; expected 16 spaces, found 12 ············case·">·=·":·········//·Starts·after·midnight,·ends·at·midnight 249: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·userdate($entry->start_time,·hour_min_format())·.·"~24:00"; 250: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·">·>·":·········//·Starts·after·midnight,·continues·tomorrow 252: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·userdate($entry->start_time,·hour_min_format())·.·"~====>"; 253: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"=·=·":·········//·Starts·at·midnight,·ends·at·midnight 255: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$all_day; 256: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"=·>·":·········//·Starts·at·midnight,·continues·tomorrow 258: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$all_day·.·"====>"; 259: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·<·":·········//·Starts·before·today,·ends·before·midnight 261: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<====~"·.·userdate($entry->end_time,·hour_min_format()); 262: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·=·":·········//·Starts·before·today,·ends·at·midnight 264: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<===="·.·$all_day; 265: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·>·":·········//·Starts·before·today,·continues·tomorrow 267: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<===="·.·$all_day·.·"====>"; 268: Line indented incorrectly; expected at least 20 spaces, found 16 ········} 303: Closing brace indented incorrectly; expected 5 spaces, found 8 ············$start_str·=·ereg_replace(" ",·"·",·period_time_string($entry->start_time)); 274: The use of function ereg_replace() is forbidden ············$end_str···=·ereg_replace(" ",·"·",·period_time_string($entry->end_time,·-1)); 275: The use of function ereg_replace() is forbidden ············case·">·<·":·········//·Starts·after·midnight,·ends·before·midnight 277: Line indented incorrectly; expected 16 spaces, found 12 ············case·"=·<·":·········//·Starts·at·midnight,·ends·before·midnight 278: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$start_str·.·"~"·.·$end_str; 279: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·">·=·":·········//·Starts·after·midnight,·ends·at·midnight 281: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$start_str·.·"~24:00"; 282: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·">·>·":·········//·Starts·after·midnight,·continues·tomorrow 284: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$start_str·.·"~====>"; 285: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"=·=·":·········//·Starts·at·midnight,·ends·at·midnight 287: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$all_day; 288: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"=·>·":·········//·Starts·at·midnight,·continues·tomorrow 290: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·$all_day·.·"====>"; 291: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·<·":·········//·Starts·before·today,·ends·before·midnight 293: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<====~"·.·$end_str; 294: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·=·":·········//·Starts·before·today,·ends·at·midnight 296: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<===="·.·$all_day; 297: Line indented incorrectly; expected at least 20 spaces, found 16 ············case·"<·>·":·········//·Starts·before·today,·continues·tomorrow 299: Line indented incorrectly; expected 16 spaces, found 12 ················$d[$day_num]["data"][]·=·"<===="·.·$all_day·.·"====>"; 300: Line indented incorrectly; expected at least 20 spaces, found 16 if·($debug_flag) 306: Expected "if (...) {\n"; found "if (...)\n{\n" ····for·($i·=·1;·$i·<=·$days_in_month;·$i++) 309: Expected "for (...) {\n"; found "for (...)\n {\n" ········if·(isset($d[$i]["id"])) 311: Expected "if (...) {\n"; found "if (...)\n {\n" ············for·($j·=·0;·$j·<·$n;·$j++) 315: Inline control structures are not allowed if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 325: Expected "if (...) {\n"; found "if (...) // If authorized in config.inc.php, include the javascript cursor management.\n {\n" ····} 334: Closing brace indented incorrectly; expected 0 spaces, found 4 ·······.·"\""·.·get_string('click_to_reserve','block_mrbs')·.·"\"" 332: Commas (,) must be followed by white space. for·($weekcol·=·0;·$weekcol·<·7;·$weekcol++) 338: Expected "for (...) {\n"; found "for (...)\n{\n" for·($weekcol·=·0;·$weekcol·<·$weekday_start;·$weekcol++) 345: Expected "for (...) {\n"; found "for (...)\n{\n" for·($cday·=·1;·$cday·<=·$days_in_month;·$cday++) 351: Expected "for (...) {\n"; found "for (...)\n{\n" ····if·($weekcol·==·0)·echo·"\n"; 353: Inline control structures are not allowed ····if·(isset($d[$cday]["id"][0])) 359: Expected "if (...) {\n"; found "if (...)\n {\n" ········for·($i·=·0;·$i·<·$n;·$i++) 365: Expected "for (...) {\n"; found "for (...)\n {\n" ············if·(·($i·==·11·&&·$n·>·12·&&·$monthly_view_entries_details·!=·"both")·or 367: Expected "if (...) {\n"; found "if (...)\n {\n" ············if·(·($i·>·0·&&·$i·%·2·==·0)·or 373: Expected "if (...) {\n"; found "if (...)\n {\n" ············else 378: Expected "} else {\n"; found "}\n else\n {\n" ····if·(++$weekcol·==·7)·$weekcol·=·0; 442: Inline control structures are not allowed if·($weekcol·>·0)·for·(;·$weekcol·<·7;·$weekcol++) 446: Inline control structures are not allowed if·($weekcol·>·0)·for·(;·$weekcol·<·7;·$weekcol++) 446: Expected "for (...) {\n"; found "for (...)\n{\n" include·"trailer.php"; 452: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 452: File is being unconditionally included; use "require" instead ࢐࢐$midnight_tonight[$j]·=·mktime(12,·count($periods),·59,·$month,·$j,·$year,·is_dst($month,·$j,·$year,·23)); 100: Line exceeds 100 characters; contains 108 characters ····echo·make_room_select_html('month.php',·$area,·$room,·$year,·$month,·$day);·//·from·functions.php 149: Line exceeds 100 characters; contains 101 characters ····echo·'<<'.get_string('monthbefore','block_mrbs').''; 203: Line exceeds 100 characters; contains 102 characters ····echo·''.get_string('gotothismonth','block_mrbs').''; 204: Line exceeds 100 characters; contains 107 characters ····echo·''.get_string('monthafter','block_mrbs').'>>'; 205: Line exceeds 100 characters; contains 112 characters ····$entries·=·$DB->get_records_select('mrbs_entry',·'room_id·=·?·AND·start_time·<=·?·AND·end_time·>·?', 224: Line exceeds 100 characters; contains 104 characters ·······································array($room,·$midnight_tonight[$day_num],·$midnight[$day_num]),·'start_time'); 225: Line exceeds 100 characters; contains 117 characters ········࢐echo·"
      DEBUG:·result·id·{$entry->id},·starts·{$entry->start_time},·ends·{$entry->end_time}\n"; 229: Line exceeds 100 characters; contains 106 characters ············switch·(cmp3($entry->start_time,·$midnight[$day_num])·.·cmp3($entry->end_time,·$midnight_tonight[$day_num]·+·1))·{ 244: Line exceeds 100 characters; contains 126 characters ············switch·(cmp3($entry->start_time,·$midnight[$day_num])·.·cmp3($entry->end_time,·$midnight_tonight[$day_num]·+·1))·{ 276: Line exceeds 100 characters; contains 126 characters if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 325: Line exceeds 100 characters; contains 101 characters ····$dayurl·=·new·moodle_url('/blocks/mrbs/web/day.php',·array('year'=>$year,·'month'=>$month,·'day'=>$cday,·'area'=>$area)); 354: Line exceeds 100 characters; contains 125 characters ····echo·"$cday \n"; 355: Line exceeds 100 characters; contains 119 characters ··································array('room'=>$room,·'area'=>$area,·'year'=>$year,·'month'=>$month,·'day'=>$cday)); 426: Line exceeds 100 characters; contains 117 characters ········echo·'pix_url('new',·'block_mrbs').'"·width="10"·height="10"·border="0">'; 432: Line exceeds 100 characters; contains 107 characters ············//$start_str·=·ereg_replace("·",·" ",·period_time_string($entry->start_time)); 272: This comment is 65% valid code; is this commented out code? ············//$end_str···=·ereg_replace("·",·" ",·period_time_string($entry->end_time,·-1)); 273: This comment is 67% valid code; is this commented out code? blocks/mrbs/web/mrbs_auth.php 2: The opening =·2) 68: Inline control structures are not allowed function·showAccessDenied($day,·$month,·$year,·$area) 81: function name "showAccessDenied" must be lower-case letters only { 82: Opening brace should be on the same line as the declaration ····global·$SERVER,·$OUTPUT; 83: Member variable "SERVER" must be all lower-case ····echo·$OUTPUT->box(get_string('accessdenied',·'block_mrbs').'
      '.get_string('norights',·'block_mrbs'),·'generalbox·boxaligncenter'); 86: Line exceeds 100 characters; contains 138 characters blocks/mrbs/web/mrbs_sql.php ····$next_month·=·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·+·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·<·date("n",·$time))·*·12; 278: Line exceeds maximum limit of 140 characters; contains 194 characters ····$next_month·=·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·+·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·<·date("n",·$time))·*·12; 278: Commas (,) must be followed by white space. ····$next_month·=·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·+·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+35,·date("Y",·$time)))·<·date("n",·$time))·*·12; 278: Commas (,) must be followed by white space. ····$days_jump·+=·7·*·(($_initial_weeknumber·==·5)·&&·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump,·date("Y",·$time)))·==·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump·+·7,·date("Y",·$time))))); 286: Line exceeds maximum limit of 140 characters; contains 230 characters ····$days_jump·+=·7·*·(($_initial_weeknumber·==·5)·&&·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump,·date("Y",·$time)))·==·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump·+·7,·date("Y",·$time))))); 286: Commas (,) must be followed by white space. ····$days_jump·+=·7·*·(($_initial_weeknumber·==·5)·&&·(date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump,·date("Y",·$time)))·==·date("n",·mktime(11,·0·,0,·date("n",·$time),·$day·+·$days_jump·+·7,·date("Y",·$time))))); 286: Commas (,) must be followed by white space. ࢐$ent·=·mrbsCreateRepeatEntry($starttime,·$endtime,·$rep_type,·$rep_enddate,·$rep_opt,·$room_id,·$owner,·$name,·$type,·$description,·$rep_num_weeks); 427: Line exceeds maximum limit of 140 characters; contains 149 characters ࢐$ent·=·mrbsCreateRepeatEntry($starttime,·$endtime,·$rep_type,·$rep_enddate,·$rep_opt,·$room_id,·$owner,·$name,·$type,·$description,·$rep_num_weeks); 427: Line indented incorrectly; expected at least 4 spaces, found 1 2: The opening ·?·AND·room_id·=·?·"; 41: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Get·the·room's·area·ID·for·linking·to·day,·week,·and·month·views: 60: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$area·=·mrbsGetRoomArea($room_id); 61: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Build·a·string·listing·all·the·conflicts: 63: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$err·=·""; 64: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$err; 90: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($ignore·>·0)·{ 45: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·id·<>·?"; 46: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 48: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·($repignore·>·0)·{ 49: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·repeat_id·<>·?"; 50: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 52: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·(empty($entries)) 56: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐if·(empty($entries)) 56: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐return·""; 58: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐for·($i·=·0;·($row·=·sql_row($res,·$i));·$i++) 65: Expected "for (...) {\n"; found "for (...)\n {\n" ࢐for·($i·=·0;·($row·=·sql_row($res,·$i));·$i++) 65: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$starts·=·getdate($entry->start); 67: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$param_ym·=·array('area'=>$area,·'year'=>$starts[year],·'month'=>$starts[mon]); 68: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$param_ym·=·array('area'=>$area,·'year'=>$starts[year],·'month'=>$starts[mon]); 68: Constants must be uppercase; expected YEAR but found year ࢐࢐$param_ym·=·array('area'=>$area,·'year'=>$starts[year],·'month'=>$starts[mon]); 68: Constants must be uppercase; expected MON but found mon ࢐࢐$param_ymd·=·array_merge($param_ym,·array('day'=>$starts[mday])); 69: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$param_ymd·=·array_merge($param_ym,·array('day'=>$starts[mday])); 69: Constants must be uppercase; expected MDAY but found mday ࢐࢐.·"·(·"·.·$startstr·.·")·" 84: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·"(".get_string('viewday','block_mrbs')."" 85: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·"(".get_string('viewday','block_mrbs')."" 85: Commas (,) must be followed by white space. ࢐࢐.·"·|·".get_string('viewweek','block_mrbs')."" 86: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·"·|·".get_string('viewweek','block_mrbs')."" 86: Commas (,) must be followed by white space. ࢐࢐.·"·|·".get_string('viewmonth','block_mrbs').")"; 87: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·"·|·".get_string('viewmonth','block_mrbs').")"; 87: Commas (,) must be followed by white space. ࢐࢐if(·$enable_periods·)·{ 71: Expected "if (...) {\n"; found "if(...) {\n" ࢐࢐if(·$enable_periods·)·{ 71: Line indented incorrectly; expected 8 spaces, found 2 ········࢐$p_num·=$starts['minutes']; 72: Line indented incorrectly; expected at least 12 spaces, found 9 ········࢐$startstr·=·userdate($entry->start,·'%A·%d·%B·%Y,·')·.·$periods[$p_num]; 73: Line indented incorrectly; expected at least 12 spaces, found 9 ········} 74: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐࢐else 75: Inline control structures are not allowed function·mrbsDelEntry($user,·$id,·$series,·$all) 106: function name "mrbsDelEntry" must be lower-case letters only { 107: Opening brace should be on the same line as the declaration ࢐global·$DB; 108: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$repeat_id·=·$DB->get_field('mrbs_entry',·'repeat_id',·array('id'=>$id)); 110: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$removed·=·0; 120: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$removed·>·0; 138: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($repeat_id·<·0) 111: Inline control structures are not allowed ࢐if($series)·{ 114: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($series)·{ 114: Line indented incorrectly; expected 4 spaces, found 1 ࢐}·else·{ 116: Line indented incorrectly; expected 4 spaces, found 1 ····} 118: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐} 132: Closing brace indented incorrectly; expected 4 spaces, found 1 ࢐࢐if(!getWritable($entry->create_by,·$user)) 123: Inline control structures are not allowed ࢐࢐if($series·&&·$entry->entry_type·==·2·&&·!$all) 126: Inline control structures are not allowed ࢐if·($repeat_id·>·0·&&·$DB->count_records('mrbs_entry',·array('repeat_id'=>$repeat_id))·==·0)·{ 134: Line indented incorrectly; expected 4 spaces, found 1 ····} 136: Closing brace indented incorrectly; expected 1 spaces, found 4 function·mrbsCreateSingleEntry($starttime,·$endtime,·$entry_type,·$repeat_id,·$room_id, 159: function name "mrbsCreateSingleEntry" must be lower-case letters only { 161: Opening brace should be on the same line as the declaration ࢐//·make·sure·that·any·entry·is·of·a·positive·duration 176: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·this·is·to·trap·potential·negative·duration·created·when·DST·comes 177: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·into·effect 178: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(·$endtime·>·$starttime·)·{ 179: Expected "if (...) {\n"; found "if(...) {\n" ࢐if(·$endtime·>·$starttime·)·{ 179: Line indented incorrectly; expected 4 spaces, found 1 ····} 187: Closing brace indented incorrectly; expected 1 spaces, found 4 function·mrbsCreateRepeatEntry($starttime,·$endtime,·$rep_type,·$rep_enddate,·$rep_opt, 211: function name "mrbsCreateRepeatEntry" must be lower-case letters only { 213: Opening brace should be on the same line as the declaration ࢐$add->start_time·=·࢐$starttime; 219: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->end_time·=·࢐$endtime; 220: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->rep_type·=·࢐$rep_type; 221: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->end_date·=࢐$rep_enddate; 222: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->room_id·=࢐····$room_id; 223: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->create_by·=࢐$owner; 224: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->type·=࢐࢐$type; 225: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$add->name·=࢐࢐$name; 226: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Optional·things,·pgsql·doesn't·like·empty·strings! 229: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$DB->insert_record('mrbs_repeat',·$add); 242: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·(!empty($rep_opt))·{ 230: Line indented incorrectly; expected 4 spaces, found 1 ····}·else·{ 232: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·(!empty($rep_num_weeks))·{ 238: Line indented incorrectly; expected 4 spaces, found 1 ····} 240: Closing brace indented incorrectly; expected 1 spaces, found 4 *·Find·the·same·day·of·the·week·in·next·month,·same·week·number. 246: Expected 1 space(s) before asterisk; 0 found * 247: Expected 1 space(s) before asterisk; 0 found *·Return·the·number·of·days·to·step·forward·for·a·"monthly·repeat, 248: Expected 1 space(s) before asterisk; 0 found *·corresponding·day"·serie·-·same·week·number·and·day·of·week·next·month. 249: Expected 1 space(s) before asterisk; 0 found *·This·function·always·returns·either·28·or·35. 250: Expected 1 space(s) before asterisk; 0 found *·For·dates·in·the·5th·week·of·a·month,·the·resulting·day·will·be·in·the·4th 251: Expected 1 space(s) before asterisk; 0 found *·week·of·the·next·month·if·no·5th·week·corresponding·day·exist. 252: Expected 1 space(s) before asterisk; 0 found *·:TODO:·thierry_bo·030510:·repeat·5th·week·entries·only·if·5th·week·exist. 253: Expected 1 space(s) before asterisk; 0 found *·If·we·want·a·5th·week·repeat·type,·only·5th·weeks·have·to·be·booked.·We·need 254: Expected 1 space(s) before asterisk; 0 found *·also·a·new·"monthly·repeat,·corresponding·day,·last·week·of·the·month"·type. 255: Expected 1 space(s) before asterisk; 0 found * 256: Expected 1 space(s) before asterisk; 0 found *·@param····integer·····$time···········timestamp·of·the·day·from·which·we·want·to·find 257: Expected 1 space(s) before asterisk; 0 found *·······································the·same·day·of·the·week·in·next·month,·same 258: Expected 1 space(s) before asterisk; 0 found *·······································week·number 259: Expected 1 space(s) before asterisk; 0 found *·@return···integer·····$days_jump······number·of·days·to·step·forward·to·find·the·next·occurence·(28·or·35) 260: Expected 1 space(s) before asterisk; 0 found *·@var······integer·····$days_in_month··number·of·days·in·month 261: Expected 1 space(s) before asterisk; 0 found *·@var······integer·····$day············day·of·the·month·(01·to·31) 262: Expected 1 space(s) before asterisk; 0 found *·@var······integer·····$weeknumber·····week·number·for·each·occurence·($time) 263: Expected 1 space(s) before asterisk; 0 found *·@var······boolean·····$temp1··········first·step·to·compute·$days_jump 264: Expected 1 space(s) before asterisk; 0 found *·@var······integer·····$next_month·····intermediate·next·month·number·(1·to·12) 265: Expected 1 space(s) before asterisk; 0 found *·@global···integer·····$_initial_weeknumber····used·only·for·5th·weeks·repeat·type 266: Expected 1 space(s) before asterisk; 0 found { 269: Opening brace should be on the same line as the declaration function·mrbsGetRepeatEntryList($time,·$enddate,·$rep_type,·$rep_opt,·$max_ittr,·$rep_num_weeks) 306: function name "mrbsGetRepeatEntryList" must be lower-case letters only { 307: Opening brace should be on the same line as the declaration ࢐$sec···=·date("s",·$time); 308: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$min···=·date("i",·$time); 309: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$hour··=·date("G",·$time); 310: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$day···=·date("d",·$time); 311: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$month·=·date("m",·$time); 312: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$year··=·date("Y",·$time); 313: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐global·$_initial_weeknumber; 315: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$_initial_weeknumber·=·(int)(($day·-·1)·/·7)·+·1; 316: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$week_num·=·0; 317: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$start_day·=·date('w',·mktime($hour,·$min,·$sec,·$month,·$day,·$year)); 318: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$cur_day·=·$start_day; 319: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$entrys·=·""; 321: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$entrys; 390: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐for($i·=·0;·$i·<·$max_ittr;·$i++) 322: Expected "for (...) {\n"; found "for(...)\n {\n" ࢐for($i·=·0;·$i·<·$max_ittr;·$i++) 322: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$time·=·mktime($hour,·$min,·$sec,·$month,·$day,·$year); 324: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$entrys[$i]·=·$time; 328: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if·($time·>·$enddate) 325: Inline control structures are not allowed ࢐࢐switch($rep_type) 330: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐//·Daily·repeat 332: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·Weekly·repeat 337: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·Monthly·repeat 347: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·Yearly·repeat 352: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·Monthly·repeat·on·same·week·number·and·day·of·week 357: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·n·Weekly·repeat 362: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·Unknown·repeat·option 384: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐case·1: 333: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$day·+=·1; 334: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐case·2: 338: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$j·=·$cur_day·=·date("w",·$entrys[$i]); 339: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐//·Skip·over·days·of·the·week·which·are·not·enabled: 340: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$day·+=·1; 344: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐while·(($j·=·($j·+·1)·%·7)·!=·$cur_day·&&·!$rep_opt[$j]) 341: Inline control structures are not allowed ࢐࢐࢐case·3: 348: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$month·+=·1; 349: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐case·4: 353: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$year·+=·1; 354: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐case·5: 358: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$day·+=·same_day_next_month($time); 359: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐case·6: 363: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐while·(1) 365: Expected "while (...) {\n"; found "while (...)\n {\n" ࢐࢐࢐࢐while·(1) 365: Line indented incorrectly; expected 16 spaces, found 4 ࢐࢐࢐࢐࢐$day++; 367: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐$cur_day·=·($cur_day·+·1)·%·7; 368: Line indented incorrectly; expected at least 20 spaces, found 5 ࢐࢐࢐࢐࢐if·(($cur_day·%·7)·==·$start_day) 370: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐࢐࢐࢐if·(($cur_day·%·7)·==·$start_day) 370: Line indented incorrectly; expected 20 spaces, found 5 ࢐࢐࢐࢐࢐࢐$week_num++; 372: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐࢐࢐if·(($week_num·%·$rep_num_weeks·==·0)·&& 375: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐࢐࢐࢐if·(($week_num·%·$rep_num_weeks·==·0)·&& 375: Line indented incorrectly; expected 20 spaces, found 5 ࢐࢐࢐࢐࢐࢐break; 378: Line indented incorrectly; expected at least 24 spaces, found 6 ࢐࢐࢐default: 385: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐return; 386: Line indented incorrectly; expected at least 16 spaces, found 4 function·mrbsCreateRepeatingEntrys($starttime,·$endtime,·$rep_type,·$rep_enddate,·$rep_opt, 412: function name "mrbsCreateRepeatingEntrys" must be lower-case letters only { 414: Opening brace should be on the same line as the declaration ࢐global·$max_rep_entrys; 415: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$reps·=·mrbsGetRepeatEntryList($starttime,·$rep_enddate,·$rep_type,·$rep_opt,·$max_rep_entrys,·$rep_num_weeks); 417: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐return·$ent; 443: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(count($reps)·>·$max_rep_entrys) 418: Inline control structures are not allowed ࢐if(empty($reps)) 421: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if(empty($reps)) 421: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$ent·=·mrbsCreateSingleEntry($starttime,·$endtime,·0,·0,·$room_id,·$owner,·$name,·$type,·$description); 423: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐return·$ent; 424: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐if($ent) 429: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if($ent) 429: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐for($i·=·0;·$i·<·count($reps);·$i++) 432: Expected "for (...) {\n"; found "for(...)\n {\n" ࢐࢐for($i·=·0;·$i·<·count($reps);·$i++) 432: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐//·calculate·diff·each·time·and·correct·where·events 434: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐//·cross·DST 435: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$diff·=·$endtime·-·$starttime; 436: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$diff·+=·cross_dst($reps[$i],·$reps[$i]·+·$diff); 437: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐mrbsCreateSingleEntry($reps[$i],·$reps[$i]·+·$diff,·1,·$ent, 439: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐࢐·$room_id,·$owner,·$name,·$type,·$description); 440: Line indented incorrectly; expected at least 12 spaces, found 5 function·mrbsGetEntryInfo($id) 456: function name "mrbsGetEntryInfo" must be lower-case letters only { 457: Opening brace should be on the same line as the declaration function·mrbsGetRoomArea($id) 462: function name "mrbsGetRoomArea" must be lower-case letters only { 463: Opening brace should be on the same line as the declaration ········$weekurl·=·new·moodle_url('/blocks/mrbs/web/week.php',·array_merge($param_ymd,·array('room'=>$room_id))); 80: Line exceeds 100 characters; contains 113 characters ········$monthurl·=·new·moodle_url('/blocks/mrbs/web/month.php',·array_merget($param_ym,·array('room'=>$room_id))); 81: Line exceeds 100 characters; contains 115 characters *·@return···integer·····$days_jump······number·of·days·to·step·forward·to·find·the·next·occurence·(28·or·35) 260: Line exceeds 100 characters; contains 108 characters ࢐$reps·=·mrbsGetRepeatEntryList($starttime,·$rep_enddate,·$rep_type,·$rep_opt,·$max_rep_entrys,·$rep_num_weeks); 417: Line exceeds 100 characters; contains 112 characters ࢐࢐$ent·=·mrbsCreateSingleEntry($starttime,·$endtime,·0,·0,·$room_id,·$owner,·$name,·$type,·$description); 423: Line exceeds 100 characters; contains 105 characters blocks/mrbs/web/report.php 2: The opening area_name)·.·"·-·"·.·s($item->room_name); 125: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$date·=·userdate($item->start_time,·"%d-%b-%Y"); 126: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·entries·to·be·sorted·on·area/room 127: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"


      \n"; 158: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Brief·Description·(title),·linked·to·view_entry: 160: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"" 162: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐.·s($item->name)·.·"\n"; 163: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐//·what·do·you·want·to·display·duration·or·end·date/time 165: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Description: 182: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('description')."·"·. 183: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐nl2br(s($item->description))·.·"\n"; 184: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐//·Entry·Type: 186: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$et·=·empty($typel[$item->type])·?·"?$item->type?"·:·$typel[$item->type]; 187: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('type','block_mrbs')."·$et\n"; 188: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('type','block_mrbs')."·$et\n"; 188: Commas (,) must be followed by white space. ࢐//·Created·by·and·last·update·timestamp: 189: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('createdby','block_mrbs')."·"·. 190: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('createdby','block_mrbs')."·"·. 190: Commas (,) must be followed by white space. ࢐࢐s($item->create_by)·.·",·".get_string('lastmodified')."·"·. 191: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐࢐time_date_string($item->timestamp)·.·"\n"; 192: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐echo·"\n"; 194: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(·$sortby·==·"r"·)·{ 128: Expected "if (...) {\n"; found "if(...) {\n" ࢐if(·$sortby·==·"r"·)·{ 128: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·remember·current·area/room·that·is·being·processed. 136: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·this·is·done·here·as·the·if·statement·above·needs·the·old 137: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·values 138: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if·($area_room·!=·$last_area_room)·{ 129: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐echo·"

      ".·get_string('room','block_mrbs')·.·":·"·.·$area_room·.·"

      \n"; 130: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐echo·"

      ".·get_string('room','block_mrbs')·.·":·"·.·$area_room·.·"

      \n"; 130: Commas (,) must be followed by white space. ········} 131: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐࢐if·($date·!=·$last_date·||·$area_room·!=·$last_area_room)·{ 132: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐echo·"

      ".·get_string('date')·.·"·"·.·$date·.·"

      \n"; 133: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$last_date·=·$date; 134: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐if·($area_room·!=·$last_area_room)·{ 139: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$last_area_room·=·$area_room; 140: Line indented incorrectly; expected at least 12 spaces, found 3 ········} 141: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐}·else·{·//·entries·to·be·sorted·on·start·date 142: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·remember·current·date·that·is·being·processed. 150: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·this·is·done·here·as·the·if·statement·above·needs·the·old 151: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·values 152: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if·($date·!=·$last_date)·{ 143: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐echo·"

      ".·get_string('date')·.·"·"·.·$date·.·"

      \n"; 144: Line indented incorrectly; expected at least 12 spaces, found 3 ········} 145: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐࢐if·($area_room·!=·$last_area_room··||·$date·!=·$last_date)·{ 146: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐echo·"

      ".·get_string('room','block_mrbs')·.·":·"·.·$area_room·.·"

      \n"; 147: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐echo·"

      ".·get_string('room','block_mrbs')·.·":·"·.·$area_room·.·"

      \n"; 147: Commas (,) must be followed by white space. ࢐࢐࢐$last_area_room·=·$area_room; 148: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐if·($date·!=·$last_date)·{ 153: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$last_date·=·$date; 154: Line indented incorrectly; expected at least 12 spaces, found 3 ········} 155: Closing brace indented incorrectly; expected 2 spaces, found 8 ࢐if(·$display·==·"d"·)·{ 166: Expected "if (...) {\n"; found "if(...) {\n" ࢐if(·$display·==·"d"·)·{ 166: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·Start·date/time·and·duration: 167: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·""·. 168: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐࢐(empty($enable_periods)·? 169: Line indented incorrectly; expected at least 8 spaces, found 3 ࢐࢐࢐࢐describe_span($item->start_time,·$item->end_time)·: 170: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐࢐࢐࢐describe_period_span($item->start_time,·$item->end_time))·. 171: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐࢐࢐"\n"; 172: Line indented incorrectly; expected at least 8 spaces, found 3 ࢐}·else·{ 173: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·Start·date/time·and·End·date/time: 174: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·""·. 175: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐࢐(empty($enable_periods)·? 176: Line indented incorrectly; expected at least 8 spaces, found 3 ࢐࢐࢐࢐start_to_end($item->start_time,·$item->end_time)·: 177: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐࢐࢐࢐start_to_end_period($item->start_time,·$item->end_time))·. 178: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐࢐࢐"\n"; 179: Line indented incorrectly; expected at least 8 spaces, found 3 ····} 180: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐global·$sumby; 203: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Use·brief·description·or·created·by·as·the·name: 204: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$room·=·s($item->area_name)·.·"
      "·.·s($item->room_name); 211: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Accumulate·the·number·of·bookings·for·this·room·and·name: 212: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐@$count[$room][$name]++; 213: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Accumulate·hours·used,·clipped·to·report·range·dates: 214: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐@$hours[$room][$name]·+=·(min((int)$item->end_time,·$report_end) 215: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐-·max((int)$item->start_time,·$report_start))·/·3600.0; 216: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐$room_hash[$room]·=·1; 217: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$name_hash[$name]·=·1; 218: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐global·$sumby; 223: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Use·brief·description·or·created·by·as·the·name: 227: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$room·=·s($item->area_name)·.·"
      "·.·s($item->room_name); 234: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Accumulate·the·number·of·bookings·for·this·room·and·name: 235: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐@$count[$room][$name]++; 236: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Accumulate·hours·used,·clipped·to·report·range·dates: 237: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐@$hours[$room][$name]·+=·($dur·%·$max_periods)·+·floor(·$dur/(24*60)·)·*·$max_periods; 239: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$name_hash[$name]·=·1; 241: Line indented incorrectly; expected at least 4 spaces, found 1 { 246: Opening brace should be on the same line as the declaration ࢐echo·"($count)·" 247: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐.·sprintf("%.2f",·$hours)·.·"\n"; 248: Line indented incorrectly; expected at least 4 spaces, found 1 { 255: Opening brace should be on the same line as the declaration ࢐global·$enable_periods; 256: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·and·row·indexes.·Use·the·rooms·and·names·hashes·built·by·accumulate(). 259: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·At·PHP4·we·could·use·array_keys(). 260: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐reset($room_hash); 261: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐ksort($rooms); 265: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐reset($name_hash); 266: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐ksort($names); 270: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$n_rooms·=·sizeof($rooms); 271: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$n_rooms·=·sizeof($rooms); 271: The use of function sizeof() is forbidden; use count() instead ࢐$n_names·=·sizeof($names); 272: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$n_names·=·sizeof($names); 272: The use of function sizeof() is forbidden; use count() instead ࢐echo·"

      ". 274: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·" \n"; 277: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"
      ".get_string('total')."\n"; 283: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$grand_count_total·=·0; 284: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$grand_hours_total·=·0; 285: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('total')."\n"; 313: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐cell($col_count_total[$c],·$col_hours_total[$c]); 315: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐cell($grand_count_total,·$grand_hours_total); 316: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"\n"; 317: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐while·(list($room_key)·=·each($room_hash))·{ 262: Line indented incorrectly; expected 4 spaces, found 1 ····} 264: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐while·(list($name_key)·=·each($name_hash))·{ 267: Line indented incorrectly; expected 4 spaces, found 1 ····} 269: Closing brace indented incorrectly; expected 1 spaces, found 4 ········(empty($enable_periods)·?·get_string('summary_header','block_mrbs')·:·get_string('summary_header_per','block_mrbs')). 275: Commas (,) must be followed by white space. ········(empty($enable_periods)·?·get_string('summary_header','block_mrbs')·:·get_string('summary_header_per','block_mrbs')). 275: Commas (,) must be followed by white space. ࢐for·($c·=·0;·$c·<·$n_rooms;·$c++)·{ 278: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·"$rooms[$c]\n"; 279: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$col_count_total[$c]·=·0; 280: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$col_hours_total[$c]·=·0.0; 281: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐for·($r·=·0;·$r·<·$n_names;·$r++)·{ 287: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$row_count_total·=·0; 288: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$row_hours_total·=·0.0; 289: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$name·=·$names[$r]; 290: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"$name\n"; 291: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐cell($row_count_total,·$row_hours_total); 308: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"\n"; 309: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$grand_count_total·+=·$row_count_total; 310: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$grand_hours_total·+=·$row_hours_total; 311: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐for·($c·=·0;·$c·<·$n_rooms;·$c++) 292: Expected "for (...) {\n"; found "for (...)\n {\n" ࢐࢐for·($c·=·0;·$c·<·$n_rooms;·$c++) 292: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$room·=·$rooms[$c]; 294: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐if·(isset($count[$room][$name])) 295: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐࢐࢐if·(isset($count[$room][$name])) 295: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐$count_val·=·$count[$room][$name]; 297: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$hours_val·=·$hours[$room][$name]; 298: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐cell($count_val,·$hours_val); 299: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$row_count_total·+=·$count_val; 300: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$row_hours_total·+=·$hours_val; 301: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$col_count_total[$c]·+=·$count_val; 302: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐࢐$col_hours_total[$c]·+=·$hours_val; 303: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐࢐}·else·{ 304: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐echo·" \n"; 305: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐for·($c·=·0;·$c·<·$n_rooms;·$c++) 314: Inline control structures are not allowed if(($day==0)·or·($month==0)·or·($year==0)) 321: Expected "if (...) {\n"; found "if(...)\n{\n" ࢐$day···=·date("d"); 323: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$month·=·date("m"); 324: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$year··=·date("Y"); 325: Line indented incorrectly; expected at least 4 spaces, found 1 if($area==0)·{ 330: Expected "if (...) {\n"; found "if(...) {\n" ࢐$area·=·get_default_area(); 331: Line indented incorrectly; expected at least 4 spaces, found 1 if·($From_day)·{ 341: Member variable "From_day" must be all lower-case ····$thisurl->param('From_day',·$From_day); 342: Member variable "From_day" must be all lower-case if·($From_month)·{ 344: Member variable "From_month" must be all lower-case ····$thisurl->param('From_month',·$From_month); 345: Member variable "From_month" must be all lower-case if·($From_year)·{ 347: Member variable "From_year" must be all lower-case ····$thisurl->param('From_year',·$From_year); 348: Member variable "From_year" must be all lower-case if·($To_day)·{ 350: Member variable "To_day" must be all lower-case ····$thisurl->param('To_day',·$To_day); 351: Member variable "To_day" must be all lower-case if·($To_month)·{ 353: Member variable "To_month" must be all lower-case ····$thisurl->param('To_month',·$To_month); 354: Member variable "To_month" must be all lower-case if·($To_year)·{ 356: Member variable "To_year" must be all lower-case ····$thisurl->param('To_year',·$To_year); 357: Member variable "To_year" must be all lower-case ࢐//·Resubmit·-·reapply·parameters·as·defaults. 397: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·Make·default·values·when·the·form·is·reused. 399: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$areamatch_default·=·s($areamatch); 400: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$roommatch_default·=·s($roommatch); 401: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$namematch_default·=·s($namematch); 403: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$descrmatch_default·=·s($descrmatch); 404: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·New·report·-·use·defaults. 408: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$areamatch_default·=·""; 409: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$roommatch_default·=·""; 410: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$typematch_default·=·array(); 411: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$namematch_default·=·""; 412: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$descrmatch_default·=·""; 413: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$From_day·=·$day; 415: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$From_day·=·$day; 415: Member variable "From_day" must be all lower-case ࢐$From_month·=·$month; 416: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$From_month·=·$month; 416: Member variable "From_month" must be all lower-case ࢐$From_year·=·$year; 417: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$From_year·=·$year; 417: Member variable "From_year" must be all lower-case ࢐$To_time·=·mktime(0,·0,·0,·$month,·$day·+·$default_report_days,·$year); 418: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$To_time·=·mktime(0,·0,·0,·$month,·$day·+·$default_report_days,·$year); 418: Member variable "To_time" must be all lower-case ࢐$To_day···=·date("d",·$To_time); 419: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$To_day···=·date("d",·$To_time); 419: Member variable "To_day" must be all lower-case ࢐$To_day···=·date("d",·$To_time); 419: Member variable "To_time" must be all lower-case ࢐$To_month·=·date("m",·$To_time); 420: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$To_month·=·date("m",·$To_time); 420: Member variable "To_month" must be all lower-case ࢐$To_month·=·date("m",·$To_time); 420: Member variable "To_time" must be all lower-case ࢐$To_year··=·date("Y",·$To_time); 421: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$To_year··=·date("Y",·$To_time); 421: Member variable "To_year" must be all lower-case ࢐$To_year··=·date("Y",·$To_time); 421: Member variable "To_time" must be all lower-case ?> 430: Line indented incorrectly; expected at least 4 spaces, found 0

      431: Line indented incorrectly; expected at least 4 spaces, found 0

      431: Commas (,) must be followed by white space. 432: Line indented incorrectly; expected at least 4 spaces, found 0 433: Line indented incorrectly; expected at least 4 spaces, found 0 434: Line indented incorrectly; expected at least 4 spaces, found 0 434: Commas (,) must be followed by white space. 438: Line indented incorrectly; expected at least 4 spaces, found 0 438: Commas (,) must be followed by white space. 442: Line indented incorrectly; expected at least 4 spaces, found 0 442: Commas (,) must be followed by white space. 446: Line indented incorrectly; expected at least 4 spaces, found 0 446: Commas (,) must be followed by white space. 450: Line indented incorrectly; expected at least 4 spaces, found 0 450: Commas (,) must be followed by white space.
      461: Line indented incorrectly; expected at least 4 spaces, found 0 ?> 461: Commas (,) must be followed by white space. 462: Line indented incorrectly; expected at least 4 spaces, found 0 463: Line indented incorrectly; expected at least 4 spaces, found 0 463: Commas (,) must be followed by white space. 467: Line indented incorrectly; expected at least 4 spaces, found 0 467: Commas (,) must be followed by white space. 471: Line indented incorrectly; expected at least 4 spaces, found 0 471: Commas (,) must be followed by white space. 475: Line indented incorrectly; expected at least 4 spaces, found 0 475: Commas (,) must be followed by white space. 484: Line indented incorrectly; expected at least 4 spaces, found 0 484: Commas (,) must be followed by white space. 491: Line indented incorrectly; expected at least 4 spaces, found 0 491: Commas (,) must be followed by white space. 498: Line indented incorrectly; expected at least 4 spaces, found 0 498: Commas (,) must be followed by white space. "> 506: Line indented incorrectly; expected at least 4 spaces, found 0 "> 506: Commas (,) must be followed by white space. 507: Line indented incorrectly; expected at least 4 spaces, found 0 508: Line indented incorrectly; expected at least 4 spaces, found 0 509: Line indented incorrectly; expected at least 4 spaces, found 0 436: Member variable "From_day" must be all lower-case ···· 436: Member variable "From_month" must be all lower-case ···· 436: Member variable "From_year" must be all lower-case ···· 440: Member variable "To_day" must be all lower-case ···· 440: Member variable "To_month" must be all lower-case ···· 440: Member variable "To_year" must be all lower-case foreach(·$typel·as·$key·=>·$val·) 454: Expected "foreach (...) {\n"; found "foreach(...)\n{\n" foreach(·$typel·as·$key·=>·$val·) 454: Line indented incorrectly; expected 4 spaces, found 0 foreach(·$typel·as·$key·=>·$val·) 454: Space found after opening bracket of FOREACH loop foreach(·$typel·as·$key·=>·$val·) 454: Space found before closing bracket of FOREACH loop ࢐if·(!empty($val)·) 456: Inline control structures are not allowed ······"·.·get_string('report_only','block_mrbs');?> 478: Commas (,) must be followed by white space. ······"·.·get_string('summary_only','block_mrbs');?> 480: Commas (,) must be followed by white space. ······"·.·get_string('report_and_summary','block_mrbs');?> 482: Commas (,) must be followed by white space. ······".·get_string('room','block_mrbs');?> 487: Commas (,) must be followed by white space. ······".·get_string('sort_rep_time','block_mrbs');?> 489: Commas (,) must be followed by white space. ······".·get_string('rep_dsp_dur','block_mrbs');?> 494: Commas (,) must be followed by white space. ······".·get_string('rep_dsp_end','block_mrbs');?> 496: Commas (,) must be followed by white space. ······"·.·get_string('sum_by_descrip','block_mrbs');?> 501: Commas (,) must be followed by white space. ······"·.·get_string('sum_by_creator','block_mrbs');?> 503: Commas (,) must be followed by white space. ࢐//·Start·and·end·times·are·also·used·to·clip·the·times·for·summary·info. 515: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$report_start·=·mktime(0,·0,·0,·$From_month+0,·$From_day+0,·$From_year+0); 516: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$report_start·=·mktime(0,·0,·0,·$From_month+0,·$From_day+0,·$From_year+0); 516: Member variable "From_month" must be all lower-case ࢐$report_start·=·mktime(0,·0,·0,·$From_month+0,·$From_day+0,·$From_year+0); 516: Member variable "From_day" must be all lower-case ࢐$report_start·=·mktime(0,·0,·0,·$From_month+0,·$From_day+0,·$From_year+0); 516: Member variable "From_year" must be all lower-case ࢐$report_end·=·mktime(0,·0,·0,·$To_month+0,·$To_day+1,·$To_year+0); 517: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$report_end·=·mktime(0,·0,·0,·$To_month+0,·$To_day+1,·$To_year+0); 517: Member variable "To_month" must be all lower-case ࢐$report_end·=·mktime(0,·0,·0,·$To_month+0,·$To_day+1,·$To_year+0); 517: Member variable "To_day" must be all lower-case ࢐$report_end·=·mktime(0,·0,·0,·$To_month+0,·$To_day+1,·$To_year+0); 517: Member variable "To_year" must be all lower-case //···SQL·result·will·contain·the·following·columns: 519: Line indented incorrectly; expected at least 4 spaces, found 0 //·Col·Index··Description: 520: Line indented incorrectly; expected at least 4 spaces, found 0 //···1··[0]···Entry·ID,·not·displayed·--·used·for·linking·to·View·script. 521: Line indented incorrectly; expected at least 4 spaces, found 0 //···2··[1]···Start·time·as·Unix·time_t 522: Line indented incorrectly; expected at least 4 spaces, found 0 //···3··[2]···End·time·as·Unix·time_t 523: Line indented incorrectly; expected at least 4 spaces, found 0 //···4··[3]···Entry·name·or·short·description,·must·be·HTML·escaped 524: Line indented incorrectly; expected at least 4 spaces, found 0 //···5··[4]···Entry·description,·must·be·HTML·escaped 525: Line indented incorrectly; expected at least 4 spaces, found 0 //···6··[5]···Type,·single·char·mapped·to·a·string 526: Line indented incorrectly; expected at least 4 spaces, found 0 //···7··[6]···Created·by·(user·name·or·IP·addr),·must·be·HTML·escaped 527: Line indented incorrectly; expected at least 4 spaces, found 0 //···8··[7]···Creation·timestamp,·converted·to·Unix·time_t·by·the·database 528: Line indented incorrectly; expected at least 4 spaces, found 0 //···9··[8]···Area·name,·must·be·HTML·escaped 529: Line indented incorrectly; expected at least 4 spaces, found 0 //··10··[9]···Room·name,·must·be·HTML·escaped 530: Line indented incorrectly; expected at least 4 spaces, found 0 ࢐$sql·=·"SELECT·e.id,·e.start_time,·e.end_time,·e.name,·e.description,·" 532: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐.·"e.type,·e.create_by,·e.timestamp,·a.area_name,·r.room_name" 533: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐࢐.·"·FROM·{mrbs_entry}·e,·{mrbs_area}·a,·{mrbs_room}·r" 534: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐࢐.·"·WHERE·e.room_id·=·r.id·AND·r.area_id·=·a.id" 535: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐࢐.·"·AND·e.start_time·<·?·AND·e.end_time·>·?"; 536: Line indented incorrectly; expected at least 4 spaces, found 2 ࢐//·echo·"

      DEBUG:·SQL:··$sql·\n"; 586: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$nmatch·=·count($rep); 589: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·(!empty($areamatch))·{ 539: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·"·.··$DB->sql_like("a.area_name",·'?',·false); 540: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 542: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·(!empty($roommatch))·{ 543: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·"·.··$DB->sql_like("r.room_name",·'?',·false); 544: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 546: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·(!empty($typematch))·{ 547: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·"; 548: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐if(·count(·$typematch·)·>·1·) 549: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐࢐if(·count(·$typematch·)·>·1·) 549: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$or_array·=·array(); 551: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$sql·.=·"(".·implode(·"·OR·",·$or_array·)·.")"; 556: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐foreach·(·$typematch·as·$type·){ 552: Expected "foreach (...) {\n"; found "foreach (...){\n" ࢐࢐࢐foreach·(·$typematch·as·$type·){ 552: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐foreach·(·$typematch·as·$type·){ 552: Space found after opening bracket of FOREACH loop ࢐࢐࢐foreach·(·$typematch·as·$type·){ 552: Space found before closing bracket of FOREACH loop ࢐࢐࢐࢐$or_array[]·=·"e.type·=·?"; 553: Line indented incorrectly; expected at least 16 spaces, found 4 ࢐࢐else 558: Expected "} else {\n"; found "}\n else\n {\n" ࢐࢐else 558: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$sql·.=·"e.type·=·?"; 560: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐if·(!empty($namematch))·{ 564: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·"·.··$DB->sql_like("e.name",·'?',·false); 565: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 567: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·(!empty($descrmatch))·{ 568: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$sql·.=·"·AND·"·.··$DB->sql_like("e.description",·'?',·false); 569: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 571: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if(·$sortby·==·"r"·)··{ 578: Expected "if (...) {\n"; found "if(...) {\n" ࢐if(·$sortby·==·"r"·)··{ 578: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·Order·by·Area,·Room,·Start·date/time 579: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$sql·.=·"·ORDER·BY·a.area_name,·r.room_name,·e.start_time"; 580: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐}·else·{ 581: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·Order·by·Start·date/time,·Area,·Room 582: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$sql·.=·"·ORDER·BY·e.start_time,·a.area_name,·r.room_name"; 583: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 584: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if·($nmatch·==·0)·{ 590: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·"

      "·.·get_string('nothingtodisplay')·.·"\n"; 591: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐}·else·{ 592: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐$last_area_room·=·""; 593: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐$last_date·=·""; 594: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"

      "·.·$nmatch·.·"·" 595: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·($nmatch·==·1·?·get_string('entry_found','block_mrbs')·:·get_string('entries_found','block_mrbs')) 596: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐.·($nmatch·==·1·?·get_string('entry_found','block_mrbs')·:·get_string('entries_found','block_mrbs')) 596: Commas (,) must be followed by white space. ࢐࢐.·($nmatch·==·1·?·get_string('entry_found','block_mrbs')·:·get_string('entries_found','block_mrbs')) 596: Commas (,) must be followed by white space. ࢐࢐.··"\n"; 597: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐} 613: Closing brace indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐if·($summarize·&·1)·{ 600: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐࢐reporton($item,·$last_area_room,·$last_date,·$sortby,·$display); 601: Line indented incorrectly; expected at least 16 spaces, found 4 ············} 602: Closing brace indented incorrectly; expected 3 spaces, found 12 ࢐࢐࢐if·($summarize·&·2)·{ 604: Line indented incorrectly; expected 12 spaces, found 3 ············} 612: Closing brace indented incorrectly; expected 3 spaces, found 12 ࢐࢐if·($summarize·&·2)·{ 614: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐do_summary($count,·$hours,·$room_hash,·$name_hash); 615: Line indented incorrectly; expected at least 12 spaces, found 3 ········} 616: Closing brace indented incorrectly; expected 2 spaces, found 8 include·"trailer.php"; 620: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 620: File is being unconditionally included; use "require" instead ࢐࢐࢐echo·"

      ".·get_string('room','block_mrbs')·.·":·"·.·$area_room·.·"

      \n"; 147: Line exceeds 100 characters; contains 101 characters ········(empty($enable_periods)·?·get_string('summary_header','block_mrbs')·:·get_string('summary_header_per','block_mrbs')). 275: Line exceeds 100 characters; contains 125 characters $thisurl·=·new·moodle_url('/blocks/mrbs/web/report.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 328: Line exceeds 100 characters; contains 109 characters "> 506: Line exceeds 100 characters; contains 135 characters ࢐࢐.·($nmatch·==·1·?·get_string('entry_found','block_mrbs')·:·get_string('entries_found','block_mrbs')) 596: Line exceeds 100 characters; contains 102 characters ࢐//·echo·"

      DEBUG:·SQL:··$sql·\n"; 586: This comment is 60% valid code; is this commented out code? blocks/mrbs/web/request_vacate.php $message="$USER->firstname·$USER->lastname·requests·that·you·move·$description·from·room·$room_name,·$start_date.·Please·contact·them·to·discuss·this.\n\n[Give·a·reason]"; 32: Line exceeds maximum limit of 140 characters; contains 171 characters ·if·(has_capability('block/mrbs:editmrbs',·get_context_instance(CONTEXT_SYSTEM))or·has_capability('block/mrbs:administermrbs',·get_context_instance(CONTEXT_SYSTEM)))·{ 34: Line exceeds maximum limit of 140 characters; contains 167 characters ·if·(has_capability('block/mrbs:editmrbs',·get_context_instance(CONTEXT_SYSTEM))or·has_capability('block/mrbs:administermrbs',·get_context_instance(CONTEXT_SYSTEM)))·{ 34: Line indented incorrectly; expected 0 spaces, found 1 2: The opening description=$name; 23: Line indented incorrectly; expected at least 4 spaces, found 1 } 59: Closing brace indented incorrectly; expected 1 spaces, found 0 ····echo'

      '.get_string('requestvacate','block_mrbs').' 35: Commas (,) must be followed by white space. ········if·($usehtmleditor)·{ 41: Line indented incorrectly; expected 4 spaces, found 8 ············print_textarea($usehtmleditor,·15,·350,·0,·0,·'message',·get_string('requestvacatemessage_html','block_mrbs',$messagelang)); 42: Commas (,) must be followed by white space. ············print_textarea($usehtmleditor,·15,·350,·0,·0,·'message',·get_string('requestvacatemessage_html','block_mrbs',$messagelang)); 42: Commas (,) must be followed by white space. ········}·else·{ 44: Line indented incorrectly; expected 4 spaces, found 8 ············print_textarea(false,·5,·34,·0,·0,·'message',·get_string('requestvacatemessage','block_mrbs',$messagelang)); 45: Commas (,) must be followed by white space. ············print_textarea(false,·5,·34,·0,·0,·'message',·get_string('requestvacatemessage','block_mrbs',$messagelang)); 45: Commas (,) must be followed by white space. ····echo'

      '.get_string('requestvacate','block_mrbs').' 35: Line exceeds 100 characters; contains 129 characters ············print_textarea($usehtmleditor,·15,·350,·0,·0,·'message',·get_string('requestvacatemessage_html','block_mrbs',$messagelang)); 42: Line exceeds 100 characters; contains 136 characters ············print_textarea(false,·5,·34,·0,·0,·'message',·get_string('requestvacatemessage','block_mrbs',$messagelang)); 45: Line exceeds 100 characters; contains 120 characters ········//'.get_string('requestvacatemessage','block_mrbs',$messagelang).' 49: Line exceeds 100 characters; contains 128 characters blocks/mrbs/web/request_vacate_send.php if·(!has_capability('block/mrbs:editmrbs',·get_context_instance(CONTEXT_SYSTEM))·&&·!has_capability('block/mrbs:administermrbs',·get_context_instance(CONTEXT_SYSTEM)))·{ 24: Line exceeds maximum limit of 140 characters; contains 169 characters 2: The opening ·12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Line exceeds maximum limit of 140 characters; contains 300 characters ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Expected "if (...) {\n"; found "if (...){ " ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Line indented incorrectly; expected 4 spaces, found 0 ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Closing brace must be on a line by itself ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Expected "} else {\n"; found "} else { " ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Line indented incorrectly; expected 4 spaces, found 0 ·······12)){·echo·($start_hour·-·12);}·else·{·echo·$start_hour;}·?>"·MAXLENGTH=2·onChange="RoomSearch()">:"·MAXLENGTH=2·onChange="RoomSearch()"> 111: Closing brace must be on a line by itself ········onClick="OnAllDayClick()">·onClick="OnAllDayClick()">·onClick="OnAllDayClick()">·'.get_string('area','block_mrbs').'Room'.get_string('description').''.get_string('capacity','block_mrbs').'';?> 189: Line exceeds maximum limit of 140 characters; contains 237 characters ····'.get_string('area','block_mrbs').'Room'.get_string('description').''.get_string('capacity','block_mrbs').'';?> 189: Commas (,) must be followed by white space. ····'.get_string('area','block_mrbs').'Room'.get_string('description').''.get_string('capacity','block_mrbs').'';?> 189: Commas (,) must be followed by white space. 2: The opening 68: Expected "if (...) {\n"; found "if(...) { ?>\n" ···· 71: Closing brace must be on a line by itself ······ 103: Commas (,) must be followed by white space. ······ 103: Commas (,) must be followed by white space. ···· 109: Expected "if (...) {\n"; found "if(...) { ?>\n" ···· 122: Closing brace must be on a line by itself ···· 122: Line indented incorrectly; expected 4 spaces, found 0 ····if·(!$twentyfourhour_format) 113: Expected "if (...) {\n"; found "if (...)\n {\n" ······$checked·=·($start_hour·<·12)·?·"checked"·:·""; 115: Line indented incorrectly; expected at least 8 spaces, found 6 ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Line indented incorrectly; expected at least 8 spaces, found 6 ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Commas (,) must be followed by white space. ······$checked·=·($start_hour·>=·12)·?·"checked"·:·""; 117: Line indented incorrectly; expected at least 8 spaces, found 6 ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Line indented incorrectly; expected at least 8 spaces, found 6 ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Commas (,) must be followed by white space. ···· 123: Line indented incorrectly; expected at least 8 spaces, found 4 ···· 123: Commas (,) must be followed by white space. ······ 124: Line indented incorrectly; expected at least 8 spaces, found 6 ····?> 134: Line indented incorrectly; expected at least 8 spaces, found 4 ···· 137: Line indented incorrectly; expected at least 8 spaces, found 4 139: Line indented incorrectly; expected at least 8 spaces, found 0 ···· 140: Closing brace must be on a line by itself ····foreach·($periods·as·$p_num·=>·$p_val) 127: Expected "foreach (...) {\n"; found "foreach (...)\n {\n" ········if(·(·isset(·$period·)·&&·$period·==·$p_num·)·||·$p_num·==·$start_min) 130: Inline control structures are not allowed ···· 141: Commas (,) must be followed by white space. ····if(·$enable_periods·) 145: Inline control structures are not allowed ····else 147: Inline control structures are not allowed ····while·(list(,$unit)·=·each($units)) 150: Expected "while (...) {\n"; found "while (...)\n {\n" ····while·(list(,$unit)·=·each($units)) 150: Line indented incorrectly; expected 0 spaces, found 4 ····while·(list(,$unit)·=·each($units)) 150: Commas (,) must be followed by white space. ········if·($dur_units·==·get_string($unit,'block_mrbs'))·echo·"·SELECTED"; 153: Inline control structures are not allowed ········if·($dur_units·==·get_string($unit,'block_mrbs'))·echo·"·SELECTED"; 153: Commas (,) must be followed by white space. ········echo·"·onChange=\"RoomSearch()\">".get_string($unit,'block_mrbs'); 154: Commas (,) must be followed by white space. ········if·($all_day)·echo·'';·?> 159: Inline control structures are not allowed ···· 163: Commas (,) must be followed by white space. ···· 168: Commas (,) must be followed by white space. ···· 173: Commas (,) must be followed by white space. ···· 178: Commas (,) must be followed by white space. var·langRoomsFree=''; 193: Commas (,) must be followed by white space. var·langNoRooms=''; 194: Commas (,) must be followed by white space. ······echo·"".userdate(mktime(1,0,0,1,1,2000),·"%p"); 116: Line exceeds 100 characters; contains 111 characters ······echo·"".userdate(mktime(13,0,0,1,1,2000),·"%p"); 118: Line exceeds 100 characters; contains 112 characters ······"·onChange="RoomSearch()"·onKeyUp="RoomSearch()"> 142: Line exceeds 100 characters; contains 128 characters blocks/mrbs/web/roomsearch_ss.php ········$list.=$room->area_name.',id.'&period='.$period.'&year='.$year.'&month='.$month.'&day='.$day.'&duration='.$diff.'\')">'.$room->room_name.','.$room->description.','.$room->capacity."\n"; 160: Line exceeds maximum limit of 140 characters; contains 256 characters 2: The opening ·$max_periods·) 51: Expected "if (...) {\n"; found "if(...)\n {\n" ············if(·$dur_units·==·"periods"·&&·($minute·+·$duration)·>·$max_periods·) 51: Line indented incorrectly; expected 4 spaces, found 12 ············if(·$dur_units·==·"days"·&&·$minute·==·0·) 55: Expected "if (...) {\n"; found "if(...)\n {\n" ············if(·$dur_units·==·"days"·&&·$minute·==·0·) 55: Line indented incorrectly; expected 4 spaces, found 12 ····switch($dur_units) 65: Line indented incorrectly; expected 0 spaces, found 4 ········case·"years": 67: Line indented incorrectly; expected 4 spaces, found 8 ········case·"weeks": 69: Line indented incorrectly; expected 4 spaces, found 8 ········case·"days": 71: Line indented incorrectly; expected 4 spaces, found 8 ········case·"hours": 73: Line indented incorrectly; expected 4 spaces, found 8 ········case·"periods": 75: Line indented incorrectly; expected 4 spaces, found 8 ········case·"minutes": 76: Line indented incorrectly; expected 4 spaces, found 8 ········case·"seconds": 78: Line indented incorrectly; expected 4 spaces, found 8 ····if(isset($all_day)·&&·($all_day·==·"yes")) 85: Expected "if (...) {\n"; found "if(...)\n {\n" ····if(isset($all_day)·&&·($all_day·==·"yes")) 85: Line indented incorrectly; expected 0 spaces, found 4 ········if(·$enable_periods·) 87: Expected "if (...) {\n"; found "if(...)\n {\n" ········if(·$enable_periods·) 87: Line indented incorrectly; expected 4 spaces, found 8 ········else 92: Expected "} else {\n"; found "}\n else\n {\n" ········else 92: Line indented incorrectly; expected 4 spaces, found 8 ····else 100: Expected "} else {\n"; found "}\n else\n {\n" ····else 100: Line indented incorrectly; expected 0 spaces, found 4 ········if·(!$twentyfourhour_format) 102: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(!$twentyfourhour_format) 102: Line indented incorrectly; expected 4 spaces, found 8 ··········if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 104: Expected "if (...) {\n"; found "if (...)\n {\n" ··········if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 104: Line indented incorrectly; expected 8 spaces, found 10 ··········if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 108: Expected "if (...) {\n"; found "if (...)\n {\n" ··········if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 108: Line indented incorrectly; expected 8 spaces, found 10 ········if·(($tmp·=·$diff·%·$resolution)·!=·0·||·$diff·==·0) 119: Inline control structures are not allowed if($computer)·{ 141: Expected "if (...) {\n"; found "if(...) {\n" if($teaching)·{ 145: Expected "if (...) {\n"; found "if(...) {\n" if($special)·{ 149: Expected "if (...) {\n"; found "if(...) {\n" if(!empty($rooms))·{ 157: Expected "if (...) {\n"; found "if(...) {\n" ····foreach·($rooms·as·$room){ 159: Expected "foreach (...) {\n"; found "foreach (...){\n" ············$starttime·=·mktime($morningstarts,·0,·0,·$month,·$day··,·$year,·is_dst($month,·$day··,·$year)); 94: Line exceeds 100 characters; contains 108 characters ············$endtime···=·mktime($eveningends,·$end_minutes,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year)); 97: Line exceeds 100 characters; contains 113 characters ········$starttime·=·mktime($hour,·$minute,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year,·$hour)); 114: Line exceeds 100 characters; contains 104 characters ········$endtime···=·mktime($hour,·$minute,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year,·$hour))·+·($units·*·$duration); 115: Line exceeds 100 characters; contains 127 characters $sql·.=·"·FROM·{mrbs_room}·r·JOIN·{mrbs_area}·a·on·r.area_id=a.id·WHERE·(·SELECT·COUNT(*)·FROM·{mrbs_entry}·e·"; 126: Line exceeds 100 characters; contains 112 characters blocks/mrbs/web/search.php ࢐echo·""·.·get_string('records','block_mrbs')·.·($search_pos+1)·.·get_string('through','block_mrbs')·.·($search_pos+$num_records)·.·get_string('of','block_mrbs')·.·$total·.·"
      "; 132: Line exceeds maximum limit of 140 characters; contains 187 characters ࢐echo·""·.·get_string('records','block_mrbs')·.·($search_pos+1)·.·get_string('through','block_mrbs')·.·($search_pos+$num_records)·.·get_string('of','block_mrbs')·.·$total·.·"
      "; 132: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""·.·get_string('records','block_mrbs')·.·($search_pos+1)·.·get_string('through','block_mrbs')·.·($search_pos+$num_records)·.·get_string('of','block_mrbs')·.·$total·.·"
      "; 132: Commas (,) must be followed by white space. ࢐echo·""·.·get_string('records','block_mrbs')·.·($search_pos+1)·.·get_string('through','block_mrbs')·.·($search_pos+$num_records)·.·get_string('of','block_mrbs')·.·$total·.·"
      "; 132: Commas (,) must be followed by white space. ࢐echo·""·.·get_string('records','block_mrbs')·.·($search_pos+1)·.·get_string('through','block_mrbs')·.·($search_pos+$num_records)·.·get_string('of','block_mrbs')·.·$total·.·"
      "; 132: Commas (,) must be followed by white space. 2: The opening "·.·get_string('advanced_search','block_mrbs')·.·"

      "; 61: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"

      "·.·get_string('advanced_search','block_mrbs')·.·"

      "; 61: Commas (,) must be followed by white space. ࢐echo·""; 62: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·get_string('search_for','block_mrbs')·.·"·
      "; 63: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·get_string('search_for','block_mrbs')·.·"·
      "; 63: Commas (,) must be followed by white space. ࢐echo·get_string('from').·"·"; 64: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐genDateSelector·("",·$day,·$month,·$year); 65: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"
      "; 66: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 67: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 67: "include" must be immediately followed by an open parenthesis ࢐echo·""; 68: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""; 69: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐exit; 70: Line indented incorrectly; expected at least 4 spaces, found 1 if·(!$search_str) 73: Expected "if (...) {\n"; found "if (...)\n{\n" ࢐echo·"

      "·.·get_string('invalid_search','block_mrbs')·.·"

      "; 75: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"

      "·.·get_string('invalid_search','block_mrbs')·.·"

      "; 75: Commas (,) must be followed by white space. ࢐include·"trailer.php"; 76: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 76: "include" must be immediately followed by an open parenthesis ࢐exit; 77: Line indented incorrectly; expected at least 4 spaces, found 1 echo·"

      "·.·get_string('search_results','block_mrbs')·.·"·\"".s($search_str)."\"

      \n"; 81: Commas (,) must be followed by white space. if(!$total)·{ 96: Expected "if (...) {\n"; found "if(...) {\n" ࢐$total·=·$DB->count_records_select('mrbs_entry',·$sql_pred,·$params); 97: Line indented incorrectly; expected at least 4 spaces, found 1 if($total·<=·0)·{ 101: Expected "if (...) {\n"; found "if(...) {\n" ࢐echo·""·.·get_string('nothingtodisplay')·.·"\n"; 102: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 103: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐include·"trailer.php"; 103: "include" must be immediately followed by an open parenthesis ࢐exit; 104: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$search_pos·=·0; 108: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$search_pos·=·$total·-·($total·%·$search["count"]); 110: Line indented incorrectly; expected at least 4 spaces, found 1 if($has_prev·||·$has_next) 130: Expected "if (...) {\n"; found "if(...)\n{\n" ࢐//·display·a·"Previous"·button·if·necessary 134: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""·.·get_string('previous')·.·""; 141: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·print·a·separator·for·Next·and·Previous 147: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo("·|·"); 148: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·display·a·"Previous"·button·if·necessary 150: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".·get_string('next')·.""; 157: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if($has_prev) 135: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if($has_prev) 135: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·'out(true,·array('search_pos',·$pos)).'">'; 138: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐if($has_prev)·{ 143: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($has_prev)·{ 143: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·""; 144: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 145: Closing brace indented incorrectly; expected 1 spaces, found 4 ࢐if($has_next) 151: Expected "if (...) {\n"; found "if(...)\n {\n" ࢐if($has_next) 151: Line indented incorrectly; expected 4 spaces, found 1 ࢐if($has_next)·{ 159: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($has_next)·{ 159: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐echo·""; 160: Line indented incorrectly; expected at least 8 spaces, found 2 ····} 161: Closing brace indented incorrectly; expected 1 spaces, found 4 ···· 167: Commas (,) must be followed by white space. ···· 168: Commas (,) must be followed by white space. ···· 169: Commas (,) must be followed by white space. ···· 170: Commas (,) must be followed by white space. ···· 172: Commas (,) must be followed by white space. ࢐echo·""; 177: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('view')."\n"; 178: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""·.·s($entry->create_by)·.·"\n"; 179: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""·.·s($entry->name)·.·"\n"; 180: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""·.·s($entry->description)·.·"\n"; 182: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·generate·a·link·to·the·day.php 183: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$link·=·getdate($entry->start_time); 184: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·""; 188: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"\n"; 195: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if(empty($enable_periods)){ 189: Expected "if (...) {\n"; found "if(...){\n" ࢐if(empty($enable_periods)){ 189: Line indented incorrectly; expected 4 spaces, found 1 ····}·else·{ 191: Closing brace indented incorrectly; expected 1 spaces, found 4 ········list(,$link_str)·=·period_date_string($entry->start_time); 192: Commas (,) must be followed by white space. include·"trailer.php"; 199: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 199: File is being unconditionally included; use "require" instead $search_str·=·optional_param('search_str',·0,·PARAM_TEXT);·//may·break·some·searches·due·to·over-checking·-ab. 27: Line exceeds 100 characters; contains 110 characters $thisurl·=·new·moodle_url('/blocks/mrbs/web/search.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year)); 39: Line exceeds 100 characters; contains 109 characters echo·"

      "·.·get_string('search_results','block_mrbs')·.·"·\"".s($search_str)."\"

      \n"; 81: Line exceeds 100 characters; contains 119 characters ·····························array('day'=>$link['mday'],·'month'=>$link['mon'],·'year'=>$link['year'], 186: Line exceeds 100 characters; contains 102 characters blocks/mrbs/web/session_php.php /*****************************************************************************\ 2: Line 1 of the opening comment must start "// This file is part of". *·············································································* 3: Line 2 of the opening comment must start "//". *···File·name·······session_php.php···········································* 4: Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify". *·············································································* 5: Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by". *···Description·····Use·PHP·built-in·sessions·handling························* 6: Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or". *·············································································* 7: Line 6 of the opening comment must start "// (at your option) any later version.". *···Notes···········To·use·this·authentication·scheme,·set·in·················* 8: Line 7 of the opening comment must start "//". *···················config.inc.php:···········································* 9: Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,". *·······················$auth["session"]··=·"php";····························* 10: Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of". *·············································································* 11: Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the". *·············································································* 12: Line 11 of the opening comment must start "// GNU General Public License for more details.". *···History···································································* 13: Line 12 of the opening comment must start "//". *····2003/11/09·JFL·Created·this·file·········································* 14: Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License". *····Remaining·history·in·ChangeLog·and·CVS·logs······························* 15: Line 14 of the opening comment must start "// along with Moodle. If not, see .". global·$PHP_SELF,·$USER; 20: Member variable "PHP_SELF" must be all lower-case if·(isset($cookie_path_override)) 22: Expected "if (...) {\n"; found "if (...)\n{\n" else 26: Expected "} else {\n"; found "}\nelse\n{\n" ····$cookie_path·=·$PHP_SELF; 28: Member variable "PHP_SELF" must be all lower-case ····$cookie_path·=·ereg_replace('[^/]*$',·'',·$cookie_path); 29: The use of function ereg_replace() is forbidden if·(isset($Action)·&&·($Action·==·"SetName")) 38: Expected "if (...) {\n"; found "if (...)\n{\n" if·(isset($Action)·&&·($Action·==·"SetName")) 38: Member variable "Action" must be all lower-case if·(isset($Action)·&&·($Action·==·"SetName")) 38: Member variable "Action" must be all lower-case ····if·($NewUserName·==·"")·{ 41: Member variable "NewUserName" must be all lower-case ············global·$HTTP_SESSION_VARS; 47: Member variable "HTTP_SESSION_VARS" must be all lower-case ············$HTTP_SESSION_VARS·=·array(); 48: Member variable "HTTP_SESSION_VARS" must be all lower-case ········$NewUserName·=·$NewUserName; 51: Member variable "NewUserName" must be all lower-case ········$NewUserName·=·$NewUserName; 51: Member variable "NewUserName" must be all lower-case ········$NewUserPassword·=·$NewUserPassword; 52: Member variable "NewUserPassword" must be all lower-case ········$NewUserPassword·=·$NewUserPassword; 52: Member variable "NewUserPassword" must be all lower-case ········if·(!authValidateUser($NewUserName,·$NewUserPassword))·{ 53: Member variable "NewUserName" must be all lower-case ········if·(!authValidateUser($NewUserName,·$NewUserPassword))·{ 53: Member variable "NewUserPassword" must be all lower-case ············printLoginForm($TargetURL); 56: Member variable "TargetURL" must be all lower-case ············$_SESSION["UserName"]·=·$NewUserName; 61: Member variable "NewUserName" must be all lower-case ············global·$HTTP_SESSION_VARS; 63: Member variable "HTTP_SESSION_VARS" must be all lower-case ············$HTTP_SESSION_VARS["UserName"]·=·$NewUserName; 64: Member variable "HTTP_SESSION_VARS" must be all lower-case ············$HTTP_SESSION_VARS["UserName"]·=·$NewUserName; 64: Member variable "NewUserName" must be all lower-case ····header·("Location:·$TargetURL");·/*·Redirect·browser·to·initial·page·*/ 68: Member variable "TargetURL" must be all lower-case ····echo·"

      Please·click·here·if·you're·not·redirected·automatically·to·the·page·you·requested.

      \n"; 74: Member variable "TargetURL" must be all lower-case function·printLoginForm($TargetURL) 84: function name "printLoginForm" must be lower-case letters only function·printLoginForm($TargetURL) 84: Member variable "TargetURL" must be all lower-case { 85: Opening brace should be on the same line as the declaration ···$SESSION->wantsurl·=·$TargetURL; 87: Line indented incorrectly; expected at least 4 spaces, found 3 ···$SESSION->wantsurl·=·$TargetURL; 87: Member variable "TargetURL" must be all lower-case ···require_login(); 88: Line indented incorrectly; expected at least 4 spaces, found 3 ····global·$PHP_SELF; 86: Member variable "PHP_SELF" must be all lower-case function·authGet() 98: function name "authGet" must be lower-case letters only { 99: Opening brace should be on the same line as the declaration ····global·$PHP_SELF,·$QUERY_STRING; 100: Member variable "PHP_SELF" must be all lower-case ····global·$PHP_SELF,·$QUERY_STRING; 100: Member variable "QUERY_STRING" must be all lower-case ····echo·"

      ".get_string('norights','block_mrbs')."

      \n"; 104: Commas (,) must be followed by white space. ····$TargetURL·=·basename($PHP_SELF); 106: Member variable "TargetURL" must be all lower-case ····$TargetURL·=·basename($PHP_SELF); 106: Member variable "PHP_SELF" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 107: Inline control structures are not allowed ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 107: Member variable "QUERY_STRING" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 107: Member variable "TargetURL" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 107: Member variable "TargetURL" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 107: Member variable "QUERY_STRING" must be all lower-case ····printLoginForm($TargetURL); 108: Member variable "TargetURL" must be all lower-case function·getUserName() 113: function name "getUserName" must be lower-case letters only {·global·$USER; 114: Opening brace should be on the same line as the declaration ···return·$USER->username; 115: Line indented incorrectly; expected at least 4 spaces, found 3 /* 116: Line indented incorrectly; expected at least 4 spaces, found 0 */ 128: Line indented incorrectly; expected at least 4 spaces, found 0 function·PrintLogonBox() 132: function name "PrintLogonBox" must be lower-case letters only { 133: Opening brace should be on the same line as the declaration ····global·$PHP_SELF,·$QUERY_STRING,·$CFG,·$user_list_link,·$user_link,·$day,·$month; 134: Member variable "PHP_SELF" must be all lower-case ····global·$PHP_SELF,·$QUERY_STRING,·$CFG,·$user_list_link,·$user_link,·$day,·$month; 134: Member variable "QUERY_STRING" must be all lower-case ····$TargetURL·=·basename($PHP_SELF); 137: Member variable "TargetURL" must be all lower-case ····$TargetURL·=·basename($PHP_SELF); 137: Member variable "PHP_SELF" must be all lower-case ····if·(isset($url_base)·&&·($url_base·!=·""))·$TargetURL·=·$url_base·.·'/'·.·$TargetURL; 138: Inline control structures are not allowed ····if·(isset($url_base)·&&·($url_base·!=·""))·$TargetURL·=·$url_base·.·'/'·.·$TargetURL; 138: Member variable "TargetURL" must be all lower-case ····if·(isset($url_base)·&&·($url_base·!=·""))·$TargetURL·=·$url_base·.·'/'·.·$TargetURL; 138: Member variable "TargetURL" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 139: Inline control structures are not allowed ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 139: Member variable "QUERY_STRING" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 139: Member variable "TargetURL" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 139: Member variable "TargetURL" must be all lower-case ····if·(isset($QUERY_STRING))·$TargetURL·=·$TargetURL·.·"?"·.·$QUERY_STRING; 139: Member variable "QUERY_STRING" must be all lower-case ····if·(isset($user)) 141: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐·····"·/> 160: Line indented incorrectly; expected at least 8 spaces, found 5 165: Line indented incorrectly; expected at least 8 spaces, found 0 "·.·get_string('you_are','block_mrbs')."·" 153: Commas (,) must be followed by white space. ·········.·get_string('show_my_entries','block_mrbs')·.·"\">"·.·get_string('you_are','block_mrbs')."·" 153: Commas (,) must be followed by white space. ࢐··········"·/> 156: Member variable "TargetURL" must be all lower-case else 169: Expected "} else {\n"; found "}\nelse\n {\n" else 169: Line indented incorrectly; expected 4 spaces, found 0 ?> 171: Line indented incorrectly; expected at least 8 spaces, found 0 ࢐··
      173: Line indented incorrectly; expected at least 8 spaces, found 3 ࢐·····"·/> 177: Line indented incorrectly; expected at least 8 spaces, found 5 182: Line indented incorrectly; expected at least 8 spaces, found 0 "·/> 175: Member variable "TargetURL" must be all lower-case ?> 187: A closing tag is not permitted at the end of a PHP file ····echo·"

      Please·click·here·if·you're·not·redirected·automatically·to·the·page·you·requested.

      \n"; 74: Line exceeds 100 characters; contains 131 characters ·········.·get_string('show_my_entries','block_mrbs')·.·"\">"·.·get_string('you_are','block_mrbs')."·" 153: Line exceeds 100 characters; contains 102 characters //session_start(); 32: This comment is 75% valid code; is this commented out code? /* 116: This comment is 71% valid code; is this commented out code? blocks/mrbs/web/trailer.php 2: The opening
      ".get_string('viewday','block_mrbs').":\n"; 21: Line indented incorrectly; expected at least 4 spaces, found 0 echo·"


      ".get_string('viewday','block_mrbs').":\n"; 21: Commas (,) must be followed by white space. echo·"
      ".get_string('viewweek','block_mrbs').":\n"; 53: Line indented incorrectly; expected at least 4 spaces, found 0 echo·"
      ".get_string('viewweek','block_mrbs').":\n"; 53: Commas (,) must be followed by white space. $ctime·=·mktime(0,·0,·0,·$month,·$day,·$year); 59: Line indented incorrectly; expected at least 4 spaces, found 0 //·How·many·days·to·skip·back·to·first·day·of·week: 60: Line indented incorrectly; expected at least 4 spaces, found 0 $skipback·=·(date("w",·$ctime)·-·$weekstarts·+·7)·%·7; 61: Line indented incorrectly; expected at least 4 spaces, found 0 echo·"
      ".get_string('viewmonth','block_mrbs').":\n"; 87: Line indented incorrectly; expected at least 4 spaces, found 0 echo·"
      ".get_string('viewmonth','block_mrbs').":\n"; 87: Commas (,) must be followed by white space. echo·"
      "; 102: Line indented incorrectly; expected at least 4 spaces, found 0 $thisurl·=·new·moodle_url($PAGE->url,·array('pview'=>1)); 103: Line indented incorrectly; expected at least 4 spaces, found 0 echo·'

      '·.·get_string('ppreview','block_mrbs')·.·'

      '; 104: Line indented incorrectly; expected at least 4 spaces, found 0 echo·'

      '·.·get_string('ppreview','block_mrbs')·.·'

      '; 104: Commas (,) must be followed by white space. if(!isset($year)) 23: Inline control structures are not allowed if(!isset($month)) 26: Inline control structures are not allowed if(!isset($day)) 29: Inline control structures are not allowed if·(empty($area)) 32: Inline control structures are not allowed else 34: Inline control structures are not allowed for($i·=·-6;·$i·<=·7;·$i++) 37: Expected "for (...) {\n"; found "for(...)\n{\n" for($i·=·-6;·$i·<=·7;·$i++) 37: Line indented incorrectly; expected 4 spaces, found 0 ࢐$ctime·=·mktime(0,·0,·0,·$month,·$day·+·$i,·$year); 39: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$str·=·userdate($ctime,·empty($dateformat)?·"%b·%d"·:·"%d·%b"); 41: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cyear··=·date("Y",·$ctime); 43: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cmonth·=·date("m",·$ctime); 44: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cday···=·date("d",·$ctime); 45: Line indented incorrectly; expected at least 8 spaces, found 1 ····$url·=·new·moodle_url('/blocks/mrbs/web/day.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth,·'day'=>$cday),·$params)); 48: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐echo·"$str\n"; 49: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if·($i·!=·-6)·echo·"·|·"; 46: Inline control structures are not allowed ࢐if·($i·==·0)·echo·'[·'; 47: Inline control structures are not allowed ࢐if·($i·==·0)·echo·']·'; 50: Inline control structures are not allowed if·(!empty($room))·{ 55: Line indented incorrectly; expected 4 spaces, found 0 ····$params['room']·=·$room; 56: Line indented incorrectly; expected at least 8 spaces, found 4 for·($i·=·-4;·$i·<=·4;·$i++) 63: Expected "for (...) {\n"; found "for (...)\n{\n" for·($i·=·-4;·$i·<=·4;·$i++) 63: Line indented incorrectly; expected 4 spaces, found 0 ࢐$ctime·=·mktime(0,·0,·0,·$month,·$day·+·7·*·$i·-·$skipback,·$year); 65: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cweek··=·date("W",·$ctime); 67: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cday···=·date("d",·$ctime); 68: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cmonth·=·date("m",·$ctime); 69: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cyear··=·date("Y",·$ctime); 70: Line indented incorrectly; expected at least 8 spaces, found 1 ····$url·=·new·moodle_url('/blocks/mrbs/web/week.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth,·'day'=>$cday),·$params)); 82: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐echo·"$str\n"; 83: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if·($i·!=·-4)·echo·"·|·"; 71: Inline control structures are not allowed ࢐if·($view_week_number) 73: Expected "if (...) {\n"; found "if (...)\n {\n" ࢐if·($view_week_number) 73: Line indented incorrectly; expected 8 spaces, found 1 ࢐࢐$str·=·$cweek; 75: Line indented incorrectly; expected at least 12 spaces, found 2 ࢐else 77: Expected "} else {\n"; found "}\n else\n {\n" ࢐else 77: Line indented incorrectly; expected 8 spaces, found 1 ࢐࢐$str·=·userdate($ctime,·empty($dateformat)?·"%b·%d"·:·"%d·%b"); 79: Line indented incorrectly; expected at least 12 spaces, found 2 ࢐if·($i·==·0)·echo·'[·'; 81: Inline control structures are not allowed ࢐if·($i·==·0)·echo·']·'; 84: Inline control structures are not allowed for·($i·=·-2;·$i·<=·6;·$i++) 88: Expected "for (...) {\n"; found "for (...)\n{\n" for·($i·=·-2;·$i·<=·6;·$i++) 88: Line indented incorrectly; expected 4 spaces, found 0 ࢐$ctime·=·mktime(0,·0,·0,·$month·+·$i,·1,·$year); 90: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$str·=·userdate($ctime,·"%b·%Y"); 91: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cmonth·=·date("m",·$ctime); 93: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐$cyear··=·date("Y",·$ctime); 94: Line indented incorrectly; expected at least 8 spaces, found 1 ····$url·=·new·moodle_url('/blocks/mrbs/web/month.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth),·$params)); 97: Line indented incorrectly; expected at least 8 spaces, found 4 ࢐echo·"$str\n"; 98: Line indented incorrectly; expected at least 8 spaces, found 1 ࢐if·($i·!=·-2)·echo·"·|·"; 95: Inline control structures are not allowed ࢐if·($i·==·0)·echo·'[·'; 96: Inline control structures are not allowed ࢐if·($i·==·0)·echo·']·'; 99: Inline control structures are not allowed ····$url·=·new·moodle_url('/blocks/mrbs/web/day.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth,·'day'=>$cday),·$params)); 48: Line exceeds 100 characters; contains 131 characters ····$url·=·new·moodle_url('/blocks/mrbs/web/week.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth,·'day'=>$cday),·$params)); 82: Line exceeds 100 characters; contains 132 characters ····$url·=·new·moodle_url('/blocks/mrbs/web/month.php',·array_merge(array('year'=>$cyear,·'month'=>$cmonth),·$params)); 97: Line exceeds 100 characters; contains 119 characters echo·'

      '·.·get_string('ppreview','block_mrbs')·.·'

      '; 104: Line exceeds 100 characters; contains 101 characters blocks/mrbs/web/updatefreerooms.js 37: Functions must not contain multiple empty lines in a row; found 2 empty lines ··············for·(i=0;i·$max_periods·) 45: Expected "if (...) {\n"; found "if(...)\n {\n" ············if(·$dur_units·==·"periods"·&&·($minute·+·$duration)·>·$max_periods·) 45: Line indented incorrectly; expected 4 spaces, found 12 ············if(·$dur_units·==·"days"·&&·$minute·==·0·) 49: Expected "if (...) {\n"; found "if(...)\n {\n" ············if(·$dur_units·==·"days"·&&·$minute·==·0·) 49: Line indented incorrectly; expected 4 spaces, found 12 ····switch($dur_units) 59: Line indented incorrectly; expected 0 spaces, found 4 ········case·"years": 61: Line indented incorrectly; expected 4 spaces, found 8 ········case·"weeks": 63: Line indented incorrectly; expected 4 spaces, found 8 ········case·"days": 65: Line indented incorrectly; expected 4 spaces, found 8 ········case·"hours": 67: Line indented incorrectly; expected 4 spaces, found 8 ········case·"periods": 69: Line indented incorrectly; expected 4 spaces, found 8 ········case·"minutes": 70: Line indented incorrectly; expected 4 spaces, found 8 ········case·"seconds": 72: Line indented incorrectly; expected 4 spaces, found 8 ····if(isset($all_day)·&&·($all_day·==·"yes")) 79: Expected "if (...) {\n"; found "if(...)\n {\n" ····if(isset($all_day)·&&·($all_day·==·"yes")) 79: Line indented incorrectly; expected 0 spaces, found 4 ········if(·$enable_periods·) 81: Expected "if (...) {\n"; found "if(...)\n {\n" ········if(·$enable_periods·) 81: Line indented incorrectly; expected 4 spaces, found 8 ········else 86: Expected "} else {\n"; found "}\n else\n {\n" ········else 86: Line indented incorrectly; expected 4 spaces, found 8 ····else 94: Expected "} else {\n"; found "}\n else\n {\n" ····else 94: Line indented incorrectly; expected 0 spaces, found 4 ········if·(!$twentyfourhour_format) 96: Expected "if (...) {\n"; found "if (...)\n {\n" ········if·(!$twentyfourhour_format) 96: Line indented incorrectly; expected 4 spaces, found 8 ··········if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 98: Expected "if (...) {\n"; found "if (...)\n {\n" ··········if·(isset($ampm)·&&·($ampm·==·"pm")·&&·($hour<12)) 98: Line indented incorrectly; expected 8 spaces, found 10 ··········if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 102: Expected "if (...) {\n"; found "if (...)\n {\n" ··········if·(isset($ampm)·&&·($ampm·==·"am")·&&·($hour>11)) 102: Line indented incorrectly; expected 8 spaces, found 10 ········if·(($tmp·=·$diff·%·$resolution)·!=·0·||·$diff·==·0) 113: Inline control structures are not allowed if(!empty($day)){ 125: Expected "if (...) {\n"; found "if(...){\n" if($area=='IT'){ 143: Expected "if (...) {\n"; found "if(...){\n" }else{ 145: Expected "} else {\n"; found "}else{\n" if(!empty($rooms))·{ 155: Expected "if (...) {\n"; found "if(...) {\n" ····foreach·($rooms·as·$room){ 157: Expected "foreach (...) {\n"; found "foreach (...){\n" ············$starttime·=·mktime($morningstarts,·0,·0,·$month,·$day··,·$year,·is_dst($month,·$day··,·$year)); 88: Line exceeds 100 characters; contains 108 characters ············$endtime···=·mktime($eveningends,·$end_minutes,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year)); 91: Line exceeds 100 characters; contains 113 characters ········$starttime·=·mktime($hour,·$minute,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year,·$hour)); 108: Line exceeds 100 characters; contains 104 characters ········$endtime···=·mktime($hour,·$minute,·0,·$month,·$day,·$year,·is_dst($month,·$day,·$year,·$hour))·+·($units·*·$duration); 109: Line exceeds 100 characters; contains 127 characters ········$list.=·$room->id.','.$room->room_name.'·('.$room->description.'·Capacity:'.$room->capacity.')'."\n"; 158: Line exceeds 100 characters; contains 109 characters blocks/mrbs/web/userweek.php $baseurl·=·new·moodle_url('/blocks/mrbs/web/userweek.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year));·//·Used·as·the·basis·for·URLs·throughout·this·file 76: Line exceeds maximum limit of 140 characters; contains 162 characters 2: The opening ·0) 68: Expected "if (...) {\n"; found "if (...)\n{\n" if·(!$user·||·!has_capability('block/mrbs:viewalltt',get_context_instance(CONTEXT_SYSTEM)))·{ 102: Commas (,) must be followed by white space. $TTUSER·=·$DB->get_record('user',·array('id'=>$user)); 105: Member variable "TTUSER" must be all lower-case ····$dst_change[$j]·=·is_dst($month,$day+$j,$year); 115: Commas (,) must be followed by white space. ····$dst_change[$j]·=·is_dst($month,$day+$j,$year); 115: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Commas (,) must be followed by white space. echo·''.get_string('ttfor','block_mrbs').$TTUSER->firstname.'·'.$TTUSER->lastname.''; 133: Commas (,) must be followed by white space. echo·''.get_string('ttfor','block_mrbs').$TTUSER->firstname.'·'.$TTUSER->lastname.''; 133: Member variable "TTUSER" must be all lower-case echo·''.get_string('ttfor','block_mrbs').$TTUSER->firstname.'·'.$TTUSER->lastname.''; 133: Member variable "TTUSER" must be all lower-case $i=·mktime(12,0,0,$month,$day-7,$year); 138: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 138: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 138: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 138: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 138: Commas (,) must be followed by white space. $yy·=·date("Y",$i); 139: Commas (,) must be followed by white space. $ym·=·date("m",$i); 140: Commas (,) must be followed by white space. $yd·=·date("d",$i); 141: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 143: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 143: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 143: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 143: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 143: Commas (,) must be followed by white space. $ty·=·date("Y",$i); 144: Commas (,) must be followed by white space. $tm·=·date("m",$i); 145: Commas (,) must be followed by white space. $td·=·date("d",$i); 146: Commas (,) must be followed by white space. ······<<·".get_string('weekbefore','block_mrbs')." 156: Commas (,) must be followed by white space. ······".get_string('gotothisweek','block_mrbs')." 157: Commas (,) must be followed by white space. ······".get_string('weekafter','block_mrbs').">>"; 159: Commas (,) must be followed by white space. for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 164: Space found before second semicolon of FOR loop for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 164: Space found before semicolon; expected ");" but found ") ;" ····$params·=·array($TTUSER->id,·$TTUSER->username,·$pm7[$j],·$am7[$j]); 174: Member variable "TTUSER" must be all lower-case ····$params·=·array($TTUSER->id,·$TTUSER->username,·$pm7[$j],·$am7[$j]); 174: Member variable "TTUSER" must be all lower-case ····if·($debug_flag)·echo·"
      DEBUG:·query=$sql\n"; 185: Inline control structures are not allowed ········for·($t·=·$start_t;·$t·<=·$end_t;·$t·+=·$resolution) 210: Expected "for (...) {\n"; found "for (...)\n {\n" ··········//checks·for·double·bookings 212: Line indented incorrectly; expected at least 12 spaces, found 10 ··········if(empty($d[$j][date($format,$t)])){ 213: Expected "if (...) {\n"; found "if(...){\n" ··········if(empty($d[$j][date($format,$t)])){ 213: Line indented incorrectly; expected 12 spaces, found 10 ··········if(empty($d[$j][date($format,$t)])){ 213: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["id"]····=·$entry->id; 214: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["id"]····=·$entry->id; 214: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["color"]·=·$entry->type; 215: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["color"]·=·$entry->type; 215: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["data"]··=·""; 216: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["data"]··=·""; 216: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["long_descr"]··=·""; 217: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["long_descr"]··=·""; 217: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["double_booked"]··=·false; 218: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["double_booked"]··=·false; 218: Commas (,) must be followed by white space. ··········}·else·{ 219: Line indented incorrectly; expected 12 spaces, found 10 ··············$d[$j][date($format,$t)]["id"]····.=·','.$entry->id; 220: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["id"]····.=·','.$entry->id; 220: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["data"]··.=·"\n"; 221: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["data"]··.=·"\n"; 221: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["long_descr"]··.=·","; 222: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["long_descr"]··.=·","; 222: Commas (,) must be followed by white space. ··············$d[$j][date($format,$t)]["double_booked"]··=·true; 223: Line indented incorrectly; expected at least 16 spaces, found 14 ··············$d[$j][date($format,$t)]["double_booked"]··=·true; 223: Commas (,) must be followed by white space. ········if·($entry->end_time·<·$am7[$j]) 229: Expected "if (...) {\n"; found "if (...)\n {\n" ············$d[$j][date($format,$am7[$j])]["data"]·.=·$entry->name; 231: Commas (,) must be followed by white space. ············$d[$j][date($format,$am7[$j])]["long_descr"]·.=·$entry->description; 232: Commas (,) must be followed by white space. ········else 234: Expected "} else {\n"; found "}\n else\n {\n" ············$d[$j][date($format,$start_t)]["data"]·.=·$entry->name; 236: Commas (,) must be followed by white space. ············$d[$j][date($format,$start_t)]["long_descr"]·.=·$entry->description; 237: Commas (,) must be followed by white space. ····if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 246: Expected "if (...) {\n"; found "if (...) // If authorized in config.inc.php, include the javascript cursor management.\n {\n" ····if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 246: Line indented incorrectly; expected 0 spaces, found 4 ············} 255: Closing brace indented incorrectly; expected 4 spaces, found 12 ···············.·((FALSE·!=·$times_right_side)·?·"true"·:·"false")·.·",·" 251: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ···············.·"\""·.·get_string('click_to_reserve','block_mrbs')·.·"\"" 253: Commas (,) must be followed by white space. echo·"
      ".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 261: Commas (,) must be followed by white space. if·(empty($dateformat)) 262: Inline control structures are not allowed else 264: Inline control structures are not allowed for·($j·=·0;·$j<=($num_of_days-1)·;·$j++) 266: Expected "for (...) {\n"; found "for (...)\n{\n" for·($j·=·0;·$j<=($num_of_days-1)·;·$j++) 266: Space found before second semicolon of FOR loop for·($j·=·0;·$j<=($num_of_days-1)·;·$j++) 266: Space found before semicolon; expected ");" but found ") ;" ····echo·''; 272: Commas (,) must be followed by white space. if·(·FALSE·!=·$times_right_side·) 276: Expected "if (...) {\n"; found "if (...)\n{\n" if·(·FALSE·!=·$times_right_side·) 276: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ····.·(·$enable_periods··?·get_string('period','block_mrbs')·:·get_string('time')·) 279: Commas (,) must be followed by white space. ····if(·$enable_periods·){ 308: Expected "if (...) {\n"; found "if(...){\n" ········echo·''; 313: Commas (,) must be followed by white space. ····if·($timetohighlight·==·$time_t) 318: Inline control structures are not allowed ····else 320: Inline control structures are not allowed ····for·($thisday·=·0;·$thisday<=($num_of_days-1)·;·$thisday++) 324: Expected "for (...) {\n"; found "for (...)\n {\n" ····for·($thisday·=·0;·$thisday<=($num_of_days-1)·;·$thisday++) 324: Space found before second semicolon of FOR loop ····for·($thisday·=·0;·$thisday<=($num_of_days-1)·;·$thisday++) 324: Space found before semicolon; expected ");" but found ") ;" ········if(isset($d[$thisday][$time_t]["id"])) 338: Expected "if (...) {\n"; found "if(...)\n {\n" ············if($double_booked)·$color='DoubleBooked'; 345: Inline control structures are not allowed ········if(!isset($id))·{ 364: Expected "if (...) {\n"; found "if(...) {\n" ············$hour·=·date("H",$t); 365: Commas (,) must be followed by white space. ············$minute··=·date("i",$t); 366: Commas (,) must be followed by white space. ············$descrs=split("\n",$descr); 383: The use of function split() is forbidden ············$descrs=split("\n",$descr); 383: Commas (,) must be followed by white space. ············$long_descrs=split(",",$long_descr); 384: The use of function split() is forbidden ············$long_descrs=split(",",$long_descr); 384: Commas (,) must be followed by white space. ············$ids=split(",",$id); 385: The use of function split() is forbidden ············$ids=split(",",$id); 385: Commas (,) must be followed by white space. ········if·(isset($descrs)){ 391: Expected "if (...) {\n"; found "if (...){\n" ············for($i=0;$i0)echo'
      '; 394: Inline control structures are not allowed ········}else{ 400: Expected "} else {\n"; found "}else{\n" ····if·(·FALSE·!=·$times_right_side·) 411: Expected "if (...) {\n"; found "if (...)\n {\n" ····if·(·FALSE·!=·$times_right_side·) 411: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ········if(·$enable_periods·) 413: Expected "if (...) {\n"; found "if(...)\n {\n" ············echo·''; 417: Commas (,) must be followed by white space. ········else 420: Expected "} else {\n"; found "}\n else\n {\n" ············echo·''; 423: Commas (,) must be followed by white space. if·(($day==0)·or·($month==0)·or·($year==0))·//I·think·we·should·separate·these·out·and·handle·each·variable·independently·-ab 44: Line exceeds 100 characters; contains 125 characters ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 116: Line exceeds 100 characters; contains 126 characters ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 117: Line exceeds 100 characters; contains 120 characters echo·''.get_string('ttfor','block_mrbs').$TTUSER->firstname.'·'.$TTUSER->lastname.''; 133: Line exceeds 100 characters; contains 107 characters ······".get_string('gotothisweek','block_mrbs')." 157: Line exceeds 100 characters; contains 104 characters ····$sql·=·"SELECT·DISTINCT·e.start_time,·e.end_time,·e.type,·concat(e.name,'·Rm:',r.room_name)·name,·e.id,·e.description 166: Line exceeds 100 characters; contains 121 characters ············echo·"
      DEBUG:·result·$i,·id·$entry->id,·starts·$entry->start_time,·ends·$entry->end_time\n"; 189: Line exceeds 100 characters; contains 107 characters ····if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 246: Line exceeds 100 characters; contains 105 characters echo·"
      ".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 261: Line exceeds 100 characters; contains 116 characters //include·"trailer.php"; 434: This comment is 75% valid code; is this commented out code? blocks/mrbs/web/version.php 2: The opening 29: A closing tag is not permitted at the end of a PHP file blocks/mrbs/web/view_entry.php ࢐࢐echo·"".get_string('rep_num_weeks','block_mrbs').get_string('rep_for_nweekly','block_mrbs')."$rep_num_weeks\n"; 258: Line exceeds maximum limit of 140 characters; contains 147 characters ࢐࢐echo·"".get_string('rep_num_weeks','block_mrbs').get_string('rep_for_nweekly','block_mrbs')."$rep_num_weeks\n"; 258: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐echo·"".get_string('rep_num_weeks','block_mrbs').get_string('rep_for_nweekly','block_mrbs')."$rep_num_weeks\n"; 258: Commas (,) must be followed by white space. ࢐࢐echo·"".get_string('rep_num_weeks','block_mrbs').get_string('rep_for_nweekly','block_mrbs')."$rep_num_weeks\n"; 258: Commas (,) must be followed by white space. ········$editurl·=·new·moodle_url('/blocks/mrbs/web/edit_entry.php',·array('id'=>$id,·'edit_type'=>'series',·'day'=>$day,·'month'=>$month,·'year'=>$year)); 283: Line exceeds maximum limit of 140 characters; contains 155 characters ········echo·''.get_string('deleteentry','block_mrbs').""; 291: Line exceeds maximum limit of 140 characters; contains 155 characters ········echo·''.get_string('deleteentry','block_mrbs').""; 291: Commas (,) must be followed by white space. ········echo·''.get_string('deleteentry','block_mrbs').""; 291: Commas (,) must be followed by white space. ········$delurl·=·new·moodle_url('/blocks/mrbs/web/del_entry.php',·array('id'=>$id,·'series'=>1,·'sesskey'=>sesskey(),·'day'=>$day,·'month'=>$month,·'year'=>$year)); 299: Line exceeds maximum limit of 140 characters; contains 165 characters ········echo·''.get_string('deleteseries','block_mrbs').""; 300: Line exceeds maximum limit of 140 characters; contains 156 characters ········echo·''.get_string('deleteseries','block_mrbs').""; 300: Commas (,) must be followed by white space. ········echo·''.get_string('deleteseries','block_mrbs').""; 300: Commas (,) must be followed by white space. 2: The opening get_record('mrbs_entry',array('id'=>$id)))·{ 32: Expected "if (...) {\n"; found "if(...) {\n" if($record=$DB->get_record('mrbs_entry',array('id'=>$id)))·{ 32: Commas (,) must be followed by white space. ····if(strtolower($record->create_by)==strtolower($USER->username))·{ 33: Expected "if (...) {\n"; found "if(...) {\n" if(($day==0)·or·($month==0)·or·($year==0))·{ 39: Expected "if (...) {\n"; found "if(...) {\n" ࢐$day···=·date("d"); 40: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$month·=·date("m"); 41: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$year··=·date("Y"); 42: Line indented incorrectly; expected at least 4 spaces, found 1 if($area)·{ 47: Expected "if (...) {\n"; found "if(...) {\n" ࢐$sql·=·"SELECT·e.name, 90: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐list(·$start_period,·$start_date)·=··period_date_string($booking->start_time); 130: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_type·····=·$booking->rep_type; 144: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_end_date·=·userdate($booking->end_date,·'%A·%d·%B·%Y'); 145: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_opt······=·$booking->rep_opt; 146: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐$rep_num_weeks·=·$booking->num_weeks; 147: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·I·also·need·to·set·$id·to·the·value·of·a·single·entry·as·it·is·a 148: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·single·entry·from·a·series·that·is·used·by·del_entry.php·and 149: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·edit_entry.php 150: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·So·I·will·look·for·the·first·entry·in·the·series·where·the·entry·is 151: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐//·as·per·the·original·series·settings 152: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐࢐//·if·all·entries·in·series·have·been·modified·then 155: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·as·a·fallback·position·just·select·the·first·entry 156: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·in·the·series 157: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·hopefully·this·code·will·never·be·reached·as 158: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·this·page·will·display·the·start·time·of·the·series 159: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐//·but·edit_entry.php·will·display·the·start·time·of·the·entry 160: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐} 162: Closing brace indented incorrectly; expected 4 spaces, found 1 ࢐$repeat_id·=·$booking->repeat_id; 166: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐if·($repeat_id·!=·0)·{ 167: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐࢐$rep_type·····=·$repeat->rep_type; 170: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_end_date·=·userdate($repeat->end_date,·'%A·%d·%B·%Y'); 171: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_opt······=·$repeat->rep_opt; 172: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐$rep_num_weeks·=·$repeat->rep_num_weeks; 173: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐} 174: Closing brace indented incorrectly; expected 8 spaces, found 2 ····if·($course·=·$DB->get_record('course',array('shortname'=>$name)))·{ 188: Line indented incorrectly; expected 0 spaces, found 4 ····if·($course·=·$DB->get_record('course',array('shortname'=>$name)))·{ 188: Commas (,) must be followed by white space. ····}·else·{ 200: Line indented incorrectly; expected 0 spaces, found 4 ········ 212: Commas (,) must be followed by white space. ········ 216: Commas (,) must be followed by white space. ········ 220: Commas (,) must be followed by white space. ········ 224: Commas (,) must be followed by white space. ········ 228: Commas (,) must be followed by white space. ········ 232: Commas (,) must be followed by white space. ········ 240: Commas (,) must be followed by white space. ········ 241: Commas (,) must be followed by white space. ࢐$opt·=·""; 247: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 263: Line indented incorrectly; expected at least 4 spaces, found 1 ࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 263: Commas (,) must be followed by white space. ࢐if·(($rep_type·==·2)·||·($rep_type·==·6))·{ 248: Line indented incorrectly; expected 4 spaces, found 1 ࢐࢐//·Display·day·names·according·to·language·and·preferred·weekday·start. 249: Line indented incorrectly; expected at least 8 spaces, found 2 ࢐࢐for·($i·=·0;·$i·<·7;·$i++)·{ 250: Line indented incorrectly; expected 8 spaces, found 2 ࢐࢐࢐$daynum·=·($i·+·$weekstarts)·%·7; 251: Line indented incorrectly; expected at least 12 spaces, found 3 ࢐࢐࢐if·($rep_opt[$daynum])·{ 252: Line indented incorrectly; expected 12 spaces, found 3 ࢐࢐࢐····$opt·.=·day_name($daynum)·.·"·"; 253: Line indented incorrectly; expected at least 16 spaces, found 7 ࢐if·($rep_type·==·6)࢐{ 257: Expected "if (...) {\n"; found "if (...) {\n" ࢐if·($rep_type·==·6)࢐{ 257: Line indented incorrectly; expected 4 spaces, found 1 ࢐if($opt)·{ 260: Expected "if (...) {\n"; found "if(...) {\n" ࢐if($opt)·{ 260: Line indented incorrectly; expected 4 spaces, found 1 ࢐····echo·"".get_string('rep_rep_day','block_mrbs')."$opt\n"; 261: Line indented incorrectly; expected at least 8 spaces, found 5 ࢐····echo·"".get_string('rep_rep_day','block_mrbs')."$opt\n"; 261: Commas (,) must be followed by white space. ········echo·''.·get_string('editentry','block_mrbs')·.""; 277: Commas (,) must be followed by white space. ····if($repeat_id)·{ 279: Expected "if (...) {\n"; found "if(...) {\n" ····if($repeat_id·||·$series·)·{ 282: Expected "if (...) {\n"; found "if(...) {\n" ········echo·''.get_string('editseries','block_mrbs').""; 284: Commas (,) must be followed by white space. ····if($repeat_id)·{ 294: Expected "if (...) {\n"; found "if(...) {\n" ····if($repeat_id·||·$series·)·{ 298: Expected "if (...) {\n"; found "if(...) {\n" ····include·"request_vacate.php"; 310: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 313: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 313: File is being unconditionally included; use "require" instead $thisurl·=·new·moodle_url('/blocks/mrbs/web/view_entry.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year,·'id'=>$id)); 45: Line exceeds 100 characters; contains 124 characters ࢐࢐࢐FROM··{mrbs_repeat}·re·left·join·{user}·u·on·u.username·=·re.create_by,·{mrbs_room}·r,·{mrbs_area}·a 85: Line exceeds 100 characters; contains 103 characters ····$entry·=·$DB->get_records('mrbs_entry',·array('repeat_id'=>$id,·'entry_type'=>1),·'start_time',·'id',·0,·1); 153: Line exceeds 100 characters; contains 112 characters $enable_periods·?·toPeriodString($start_period,·$duration,·$dur_units)·:·toTimeString($duration,·$dur_units); 178: Line exceeds 100 characters; contains 109 characters ࢐echo·"".get_string('rep_end_date','block_mrbs')."$rep_end_date\n"; 263: Line exceeds 100 characters; contains 101 characters ········$delurl·=·new·moodle_url('/blocks/mrbs/web/del_entry.php',·array('id'=>$id,·'series'=>0,·'sesskey'=>sesskey())); 290: Line exceeds 100 characters; contains 120 characters blocks/mrbs/web/week.php $baseurl·=·new·moodle_url('/blocks/mrbs/web/week.php',·array('day'=>$day,·'month'=>$month,·'year'=>$year));·//·Used·as·the·basis·for·URLs·throughout·this·file 73: Line exceeds maximum limit of 140 characters; contains 158 characters 2: The opening ·0) 65: Expected "if (...) {\n"; found "if (...)\n{\n" ····$dst_change[$j]·=·is_dst($month,$day+$j,$year); 104: Commas (,) must be followed by white space. ····$dst_change[$j]·=·is_dst($month,$day+$j,$year); 104: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Commas (,) must be followed by white space. ····echo·"".get_string('areas','block_mrbs')."
      "; 116: Commas (,) must be followed by white space. ····echo·"".get_string('rooms','block_mrbs')."
      "; 146: Commas (,) must be followed by white space. ····echo·"

      ".get_string('no_rooms_for_area','block_mrbs')."

      "; 180: Commas (,) must be followed by white space. ····include·"trailer.php"; 181: "include" must be immediately followed by an open parenthesis $i=·mktime(12,0,0,$month,$day-7,$year); 191: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 191: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 191: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 191: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day-7,$year); 191: Commas (,) must be followed by white space. $yy·=·date("Y",$i); 192: Commas (,) must be followed by white space. $ym·=·date("m",$i); 193: Commas (,) must be followed by white space. $yd·=·date("d",$i); 194: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 196: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 196: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 196: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 196: Commas (,) must be followed by white space. $i=·mktime(12,0,0,$month,$day+7,$year); 196: Commas (,) must be followed by white space. $ty·=·date("Y",$i); 197: Commas (,) must be followed by white space. $tm·=·date("m",$i); 198: Commas (,) must be followed by white space. $td·=·date("d",$i); 199: Commas (,) must be followed by white space. ······<<·".get_string('weekbefore','block_mrbs')." 209: Commas (,) must be followed by white space. ······".get_string('gotothisweek','block_mrbs')." 210: Commas (,) must be followed by white space. ······".get_string('weekafter','block_mrbs').">>"; 212: Commas (,) must be followed by white space. for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 217: Space found before second semicolon of FOR loop for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 217: Space found before semicolon; expected ");" but found ") ;" ············$d[$j][date($format,$t)]["id"]····=·$entry->id; 254: Commas (,) must be followed by white space. ············$d[$j][date($format,$t)]["color"]·=·$entry->type; 255: Commas (,) must be followed by white space. ············$d[$j][date($format,$t)]["data"]··=·""; 256: Commas (,) must be followed by white space. ············$d[$j][date($format,$t)]["long_descr"]··=·""; 257: Commas (,) must be followed by white space. ············$d[$j][date($format,$am7[$j])]["data"]·=·$entry->name; 263: Commas (,) must be followed by white space. ············$d[$j][date($format,$am7[$j])]["long_descr"]·=·$entry->description; 264: Commas (,) must be followed by white space. ············$d[$j][date($format,$start_t)]["data"]·=·$entry->name; 266: Commas (,) must be followed by white space. ············$d[$j][date($format,$start_t)]["long_descr"]·=·$entry->description; 267: Commas (,) must be followed by white space. if·($debug_flag) 272: Expected "if (...) {\n"; found "if (...)\n{\n" ····print_r(·$dst_change·); 276: The use of function print_r() is forbidden ····foreach(·$am7·as·$am7_val) 279: Inline control structures are not allowed ····foreach(·$am7·as·$am7_val) 279: Space found after opening bracket of FOREACH loop ····foreach(·$pm7·as·$pm7_val) 282: Inline control structures are not allowed ····foreach(·$pm7·as·$pm7_val) 282: Space found after opening bracket of FOREACH loop ····if·(gettype($d)·==·"array") 286: Inline control structures are not allowed ····while·(list($w_k,·$w_v)·=·each($d)) 287: Inline control structures are not allowed ········while·(list($t_k,·$t_v)·=·each($w_v)) 288: Inline control structures are not allowed ············while·(list($k_k,·$k_v)·=·each($t_v)) 289: Inline control structures are not allowed ····else·echo·"d·is·not·an·array!\n"; 291: Inline control structures are not allowed if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 297: Expected "if (...) {\n"; found "if (...) // If authorized in config.inc.php, include the javascript cursor management.\n {\n" ····} 306: Closing brace indented incorrectly; expected 0 spaces, found 4 ············.·((FALSE·!=·$times_right_side)·?·"true"·:·"false")·.·",·" 302: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ············.·"\""·.·get_string('click_to_reserve','block_mrbs')·.·"\"" 304: Commas (,) must be followed by white space. echo·"
      ".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 312: Commas (,) must be followed by white space. for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 318: Space found before second semicolon of FOR loop for·($j·=·0;·$j<=($num_of_days-1)·;·$j++)·{ 318: Space found before semicolon; expected ");" but found ") ;" ····echo·''; 323: Commas (,) must be followed by white space. if·(·FALSE·!=·$times_right_side·)·{ 327: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ····.·(·$enable_periods··?·get_string('period','block_mrbs')·:·get_string('time')·) 329: Commas (,) must be followed by white space. ····if(·$enable_periods·)·{ 358: Expected "if (...) {\n"; found "if(...) {\n" ········echo·''; 363: Commas (,) must be followed by white space. ····for·($thisday·=·0;·$thisday<=($num_of_days-1)·;·$thisday++)·{ 375: Space found before second semicolon of FOR loop ····for·($thisday·=·0;·$thisday<=($num_of_days-1)·;·$thisday++)·{ 375: Space found before semicolon; expected ");" but found ") ;" ········if(isset($d[$thisday][$time_t]["id"]))·{ 388: Expected "if (...) {\n"; found "if(...) {\n" ········if(!isset($id))·{ 411: Expected "if (...) {\n"; found "if(...) {\n" ············$hour·=·date("H",$t); 412: Commas (,) must be followed by white space. ············$minute··=·date("i",$t); 413: Commas (,) must be followed by white space. ················if(·$enable_periods·)·{ 425: Expected "if (...) {\n"; found "if(...) {\n" ········}·elseif·($descr·!=·"")·{ 440: Usage of ELSEIF not allowed; use ELSE IF instead ····if·(·FALSE·!=·$times_right_side·)·{ 454: TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" ········if(·$enable_periods·)·{ 455: Expected "if (...) {\n"; found "if(...) {\n" ············echo·''; 458: Commas (,) must be followed by white space. ············echo·''; 462: Commas (,) must be followed by white space. include·"trailer.php"; 473: "include" must be immediately followed by an open parenthesis include·"trailer.php"; 473: File is being unconditionally included; use "require" instead ····$am7[$j]=mktime($morningstarts,$morningstarts_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 105: Line exceeds 100 characters; contains 126 characters ····$pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends)); 106: Line exceeds 100 characters; contains 120 characters ············echo·'out(true,·array('area'=>$area,·'room'=>$dbroom->id))).'"·title="'.$dbroom->room_name.'">'; 156: Line exceeds 100 characters; contains 130 characters ······".get_string('gotothisweek','block_mrbs')." 210: Line exceeds 100 characters; contains 104 characters ············echo·"
      DEBUG:·result·$i,·id·$entry->id,·starts·$entry->start_time,·ends·$entry->end_time\n"; 233: Line exceeds 100 characters; contains 107 characters if·($javascript_cursor)·//·If·authorized·in·config.inc.php,·include·the·javascript·cursor·management. 297: Line exceeds 100 characters; contains 101 characters echo·"
      ".($enable_periods·?·get_string('period','block_mrbs')·:·get_string('time')).""; 312: Line exceeds 100 characters; contains 116 characters ····················echo·'out(true,·array('period'=>$time_t_stripped))).'">'; 426: Line exceeds 100 characters; contains 101 characters ····················echo·'out(true,·array('hour'=>$hour,·'minute'=>$minute))).'">'; 428: Line exceeds 100 characters; contains 107 characters ················echo·'pix_url('new',·'block_mrbs').'"·width="10"·height="10"·border="0">'; 430: Line exceeds 100 characters; contains 115 characters blocks/mrbs/web/xbLib.js if·(doAlert)·alert("Started·xbLib.js·v4"); 13: Inline control structures are not allowed ····if·(!node)·return·null; 23: Inline control structures are not allowed ····if·(!node)·return; 45: Inline control structures are not allowed ····if·(!node)·return·null; 69: Inline control structures are not allowed ····if·(node.childNodes)·return·node.childNodes;࢐//·DOM-compliant·browsers 70: Inline control structures are not allowed ····if·(node.children)·return·node.children;࢐࢐//·Pre-DOM·browsers·like·Opera·6 71: Inline control structures are not allowed ····if·(!node)·return·null; 76: Inline control structures are not allowed ····if·(!siblings)·return·null; 78: Inline control structures are not allowed ····if·(!node)·return·null; 83: Inline control structures are not allowed ····if·(!siblings)·return·null; 85: Inline control structures are not allowed if·(document.getElementById)·//·DOM·level·2 90: Inline control structures are not allowed else·if·(document.layers)࢐··//·NS·4 92: Inline control structures are not allowed else·if·(document.all)࢐࢐··//·IE·4 94: Inline control structures are not allowed else 96: Inline control structures are not allowed ····if·(document.styleSheets)·for·(var·i=0;·i·0)·return·null; 276: Inline control structures are not allowed ࢐if·(!rule.style)·return·null; 279: Inline control structures are not allowed ····if·(rule.cssText)࢐࢐࢐//·Alternative·for·IE6 282: Inline control structures are not allowed ····if·(test_table·&&·test_table.onclick)·useJS·=·true;·//·If·the·browser·supports·click·event·handlers·on·tables,·then·use·JavaScript. 352: Inline control structures are not allowed ····if·(useCssClass)࢐࢐࢐//·DOM-compliant·browsers 361: Inline control structures are not allowed ····else࢐࢐࢐࢐࢐//·Pre-DOM·browsers·like·Opera·6 363: Inline control structures are not allowed ····if·(highlight_method!="bgcolor")·highlightColor·=·xbForEachCssRule(SearchTdHighlight,·0); 373: Inline control structures are not allowed ····if·(useCssClass)࢐࢐࢐·//·DOM-compliant·browsers 387: Inline control structures are not allowed ····else࢐࢐࢐࢐·//·Pre-DOM·browsers·like·Opera·6 393: Inline control structures are not allowed ············if·(colorClass·==·"highlight")·colorClass·=·highlightColor;·//·Cannot·use·the·CSS·color·class.·Use·the·color·computed·above. 397: Inline control structures are not allowed ····if·(cell.isActive)·return;࢐//·Prevent·problems·with·reentrancy.·(It·happens·on·slow·systems) 412: Inline control structures are not allowed ····if·(statusBarMsg)·window.status·=·statusBarMsg;·//·Write·into·the·status·bar. 414: Inline control structures are not allowed ࢐{·if·(tdCell.tagName·==·"TD")·break;·} 417: Inline control structures are not allowed ····if·(!tdCell)·return; 418: Inline control structures are not allowed ········if·(leftMostCell)·HighlightNode(leftMostCell); 424: Inline control structures are not allowed ········while·(rightMostCell·&&·(rightMostCell.tagName·!=·"TD"))·rightMostCell·=·rightMostCell.previousSibling; 431: Inline control structures are not allowed ········if·(rightMostCell)·HighlightNode(rightMostCell); 432: Inline control structures are not allowed ····if·(!cell.isActive)·return;·//·Prevent·problems·with·reentrancy. 438: Inline control structures are not allowed ࢐{·if·(tdCell.tagName·==·"TD")·break;·} 443: Inline control structures are not allowed ····if·(!tdCell)·return; 444: Inline control structures are not allowed ········if·(leftMostCell)·SetNodeColorClass(leftMostCell,·leftMostCell.oldColorClass); 450: Inline control structures are not allowed ········while·(rightMostCell·&&·(rightMostCell.tagName·!=·"TD"))·rightMostCell·=·rightMostCell.previousSibling; 457: Inline control structures are not allowed ········if·(rightMostCell)·SetNodeColorClass(rightMostCell,·rightMostCell.oldColorClass); 458: Inline control structures are not allowed ····if·(node.tagName)·tag·=·node.tagName;࢐࢐//·DOM-compliant·tag·name. 472: Inline control structures are not allowed ····else·if·(node.nodeName)·tag·=·node.nodeName;࢐//·Implicit·nodes,·such·as·#text. 473: Inline control structures are not allowed ····if·(tag·&&·(tag.toUpperCase()·==·"A"))·return·node; 474: Inline control structures are not allowed ····if·(link)·window.location·=·link.href; 483: Inline control structures are not allowed ········if·(!show_plus_link)·document.write(" \n");·//·This·will·hide·the·(+)·link. 498: Inline control structures are not allowed ········if·(!show_plus_link)·document.write(""); 506: Inline control structures are not allowed if·(doAlert)·alert("Ended·xbLib.js"); 515: Inline control structures are not allowed Checks code against some aspects of the Moodle coding guidelines. Enter a path relative to the Moodle code root, for example: local/codechecker. You can enter either a specific PHP file, or to a folder to check all the files it contains. Path to check Skip Navigation Skip Settings Moodle Docs for this pageMoodle Docs for this page You are logged in as Anthony Borrow (Logout) Home This page is: General type: admin. Context System (context id 1). Page type local-codechecker-index. Purge all caches Navigation Settings Undock all