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·'
'.get_string('name').':·
';
121: Line exceeds 100 characters; contains 101 characters
····echo·'
'.get_string('description').':·
';
122: Line exceeds 100 characters; contains 108 characters
····echo·'
'.get_string('capacity','block_mrbs').':·
';
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·"
";
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·=·"
\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·"
";
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·=·"
";
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·'
';
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: 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: 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'
".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
····
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·"