Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(98 errors, 36 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

course/format/event/classes/observer.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#14) Commas (,) must be followed by white space.
(#15) Whitespace found at end of line
(#19) Variable "cur_event" must not contain underscores.
(#19) Commas (,) must be followed by white space.
(#19) Expected 1 space before "=>"; 0 found
(#19) Expected 1 space after "=>"; 0 found
(#21) Variable "event_timestart" must not contain underscores.
(#21) Variable "cur_event" must not contain underscores.
(#22) Variable "event_timeend" must not contain underscores.
(#22) Variable "event_timestart" must not contain underscores.
(#22) Variable "cur_event" must not contain underscores.
(#24) Commas (,) must be followed by white space.
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#26) Variable "event_timestart" must not contain underscores.
(#27) Variable "event_timeend" must not contain underscores.
(#28) Variable "cur_event" must not contain underscores.
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) This comment is 82% valid code; is this commented out code?
(#30) No space found before comment text; expected "// echo "<pre>";print_r($course);exit;" but found "//echo "<pre>";print_r($course);exit;"
(#36) This comment is 68% valid code; is this commented out code?
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Whitespace found at end of line
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) This comment is 82% valid code; is this commented out code?
(#42) No space found before comment text; expected "// echo "<pre>";print_r($event);exit;" but found "//echo "<pre>";print_r($event);exit;"
(#43) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#44) Whitespace found at end of line
(#48) Commas (,) must be followed by white space.
(#49) Whitespace found at end of line
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) This comment is 82% valid code; is this commented out code?
(#53) No space found before comment text; expected "// echo "<pre>";print_r($event);exit;" but found "//echo "<pre>";print_r($event);exit;"
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) This comment is 75% valid code; is this commented out code?
(#55) No space found before comment text; expected "// $cur_event = $DB->get_record('event',array('id'=>$event->objectid));" but found "//$cur_event = $DB->get_record('event',array('id'=>$event->objectid));"
(#57) Commas (,) must be followed by white space.
(#57) Expected 1 space before "=>"; 0 found
(#57) Expected 1 space after "=>"; 0 found
(#66) Expected 1 space before "=>"; 0 found
(#66) Expected 1 space after "=>"; 0 found
(#66) Commas (,) must be followed by white space.
(#66) Line exceeds maximum limit of 180 characters; contains 227 characters
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 82% valid code; is this commented out code?
(#71) No space found before comment text; expected "// echo "<pre>";print_r($course);exit;" but found "//echo "<pre>";print_r($course);exit;"
course/format/event/db/events.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#15) Spaces must be used to indent lines; tabs are not allowed
(#15) Tab found within whitespace
course/format/event/format.php
(#43) Expected 1 space after ">="; 0 found
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
course/format/event/lang/en/format_event.php
(#2) The opening <?php tag must be followed by exactly one newline.
course/format/event/lib.php
(#155) Inline comments must start with a capital letter, digit or 3-dots sequence
(#155) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) Inline comments must start with a capital letter, digit or 3-dots sequence
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#188) Visibility must be declared on method "ajax_section_move"
(#230) Variable "arr_locations" must not contain underscores.
(#231) Variable "sel_locations" must not contain underscores.
(#232) Variable "arr_locations" must not contain underscores.
(#233) Variable "sel_locations" must not contain underscores.
(#284) Variable "sel_locations" must not contain underscores.
(#287) This comment is 75% valid code; is this commented out code?
(#287) Inline comments must start with a capital letter, digit or 3-dots sequence
(#287) No space found before comment text; expected "// echo "<pre>";" but found "//echo "<pre>";"
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#288) This comment is 84% valid code; is this commented out code?
(#288) No space found before comment text; expected "// print_r($courseformatoptions);print_r($courseformatoptionsedit);exit;" but found "//print_r($courseformatoptions);print_r($courseformatoptionsedit);exit;"
(#349) Commas (,) must be followed by white space.
(#350) This comment is 63% valid code; is this commented out code?
(#362) Whitespace found at end of line
(#363) Expected "if (...) {\n"; found "if(...){\n"
(#366) Whitespace found at end of line
(#368) Variable "cur_course" must not contain underscores.
(#371) Whitespace found at end of line
(#372) Inline comments must start with a capital letter, digit or 3-dots sequence
(#372) Inline comments must end in full-stops, exclamation marks, or question marks
(#372) No space found before comment text; expected "// remove events" but found "//remove events"
(#373) Expected "if (...) {\n"; found "if(...){\n"
(#375) Variable "remove_events" must not contain underscores.
(#375) Commas (,) must be followed by white space.
(#378) Variable "remove_events" must not contain underscores.
(#380) Inline comments must start with a capital letter, digit or 3-dots sequence
(#380) Inline comments must end in full-stops, exclamation marks, or question marks
(#380) This comment is 82% valid code; is this commented out code?
(#380) No space found before comment text; expected "// echo "<pre>";print_r($listevents);exit;" but found "//echo "<pre>";print_r($listevents);exit;"
(#381) Whitespace found at end of line
(#389) Expected 1 space before "=>"; 0 found
(#389) Expected 1 space after "=>"; 0 found
(#389) Commas (,) must be followed by white space.
(#389) Line exceeds maximum limit of 180 characters; contains 227 characters
course/format/event/renderer.php
(#46) Line exceeds 132 characters; contains 135 characters
(#47) Line exceeds 132 characters; contains 139 characters
(#83) Inline comments must start with a capital letter, digit or 3-dots sequence
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) This comment is 78% valid code; is this commented out code?
(#83) No space found before comment text; expected "// echo "<pre>";print_r($course);" but found "//echo "<pre>";print_r($course);"
course/format/event/settings.php
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#28) Line indented incorrectly; expected at least 4 spaces, found 1
(#29) Whitespace found at end of line
(#30) Commas (,) must be followed by white space.

Javascript coding style problems

(3 errors, 27 warnings)

This section shows the coding style problems detected in the code by eslint [More info]

course/format/event/format.js
(#19) Identifier 'get_config' is not in camel case. (camelcase)
(#21) Identifier 'container_node' is not in camel case. (camelcase)
(#21) Extra space after key 'container_node'. (key-spacing)
(#22) Extra space after key 'container_class'. (key-spacing)
(#22) Identifier 'container_class' is not in camel case. (camelcase)
(#23) Extra space after key 'section_node'. (key-spacing)
(#23) Identifier 'section_node' is not in camel case. (camelcase)
(#24) Extra space after key 'section_class'. (key-spacing)
(#24) Identifier 'section_class' is not in camel case. (camelcase)
(#26) Missing semicolon. (semi)
(#28) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#36) Identifier 'swap_sections' is not in camel case. (camelcase)
(#38) Extra space after key 'COURSECONTENT'. (key-spacing)
(#39) Extra space after key 'SECTIONADDMENUS'. (key-spacing)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#42) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#44) Infix operators must be spaced. (space-infix-ops)
(#45) Missing semicolon. (semi)
(#47) Expected JSDoc for 'response' but found 'sectionfrom'. (valid-jsdoc)
(#47) Expected JSDoc for 'sectionlist' but found 'response'. (valid-jsdoc)
(#47) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#47) Expected JSDoc for 'sectionfrom' but found 'sectionto'. (valid-jsdoc)
(#56) Identifier 'process_sections' is not in camel case. (camelcase)
(#58) Extra space after key 'SECTIONNAME'. (key-spacing)
(#61) Extra space after key 'SECTIONLEFTSIDE'. (key-spacing)
(#78) Infix operators must be spaced. (space-infix-ops)
(#83) Infix operators must be spaced. (space-infix-ops)
(#88) Missing semicolon. (semi)

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(9 errors, 1 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

course/format/event/classes/observer.php
(#2) File-level phpdocs block is not found
(#35) Function format_event_observer::course_deleted is not documented
(#47) Function format_event_observer::course_created is not documented
(#10) Phpdocs for function format_event_observer::course_updated has incomplete parameters list
(#3) Class format_event_observer does not have @copyright tag
(#3) Class format_event_observer does not have @license tag
(#3) Package is not specified for class format_event_observer. It is also not specified in file-level phpdocs
course/format/event/db/events.php
(#3) File-level phpdocs block is not found
course/format/event/lang/en/format_event.php
(#2) Empty line found after PHP open tag
course/format/event/lib.php
(#453) Function format_event::section_action is not documented

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]