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

(127 errors, 79 warnings)

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

local/checkmarkreport/checkmarkreport.class.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) "require_once" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must start with a capital letter, digit or 3-dots sequence
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) This comment is 62% valid code; is this commented out code?
(#161) No space found before comment text; expected "// $grd = $resultkrb->grades[$user->id];" but found "//$grd = $resultkrb->grades[$user->id];"
(#174) The use of the AS keyword to alias tables is bad for cross-db
(#178) The use of the AS keyword to alias tables is bad for cross-db
(#183) The use of the AS keyword to alias tables is bad for cross-db
(#187) The use of the AS keyword to alias tables is bad for cross-db
(#217) The use of the AS keyword to alias tables is bad for cross-db
(#218) The use of the AS keyword to alias tables is bad for cross-db
(#220) The use of the AS keyword to alias tables is bad for cross-db
(#222) The use of the AS keyword to alias tables is bad for cross-db
(#228) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#232) Inline comments must end in full-stops, exclamation marks, or question marks
(#242) The use of the AS keyword to alias tables is bad for cross-db
(#243) The use of the AS keyword to alias tables is bad for cross-db
(#245) The use of the AS keyword to alias tables is bad for cross-db
(#246) The use of the AS keyword to alias tables is bad for cross-db
(#291) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#327) Expected 1 space after "?"; newline found
(#331) Expected 1 space after "?"; newline found
(#335) Expected 1 space after "?"; newline found
(#338) Expected 1 space after "?"; newline found
(#348) This comment is 58% valid code; is this commented out code?
(#352) Line exceeds 132 characters; contains 145 characters
(#362) Inline comments must start with a capital letter, digit or 3-dots sequence
(#362) Inline comments must end in full-stops, exclamation marks, or question marks
(#362) This comment is 62% valid code; is this commented out code?
(#362) No space found before comment text; expected "// debugging("<pre>".print_r($returndata, true)."</pre>", DEBUG_DEVELOPER);" but found "//debugging("<pre>".print_r($returndata, true)."</pre>", DEBUG_DEVELOPER);"
(#375) The use of the AS keyword to alias tables is bad for cross-db
(#376) The use of the AS keyword to alias tables is bad for cross-db
(#378) The use of the AS keyword to alias tables is bad for cross-db
local/checkmarkreport/classes/event/exported_base.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#49) Line exceeds 132 characters; contains 139 characters
(#80) Line exceeds 132 characters; contains 143 characters
(#81) Line exceeds 132 characters; contains 157 characters
local/checkmarkreport/classes/event/overview_exported.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Variable "format_readable" must not contain underscores.
(#32) Must use "self::" for local static member reference
(#34) Variable "format_readable" must not contain underscores.
local/checkmarkreport/classes/event/overview_viewed.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Must use "self::" for local static member reference
local/checkmarkreport/classes/event/useroverview_exported.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Variable "format_readable" must not contain underscores.
(#32) Must use "self::" for local static member reference
(#34) Variable "format_readable" must not contain underscores.
local/checkmarkreport/classes/event/useroverview_viewed.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Must use "self::" for local static member reference
local/checkmarkreport/classes/event/userview_exported.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#31) Variable "format_readable" must not contain underscores.
(#32) Must use "self::" for local static member reference
(#34) Variable "format_readable" must not contain underscores.
local/checkmarkreport/classes/event/userview_viewed.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#32) Must use "self::" for local static member reference
local/checkmarkreport/classes/event/viewed_base.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#42) Line exceeds 132 characters; contains 137 characters
(#61) Line exceeds 132 characters; contains 146 characters
(#71) Line exceeds 132 characters; contains 133 characters
local/checkmarkreport/db/access.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/db/install.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/db/log.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/db/uninstall.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/db/upgrade.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/download.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#112) Variable "format_readable" must not contain underscores.
(#115) Variable "format_readable" must not contain underscores.
(#118) Variable "format_readable" must not contain underscores.
(#121) Variable "format_readable" must not contain underscores.
(#125) Variable "format_readable" must not contain underscores.
(#132) Variable "format_readable" must not contain underscores.
(#136) Variable "format_readable" must not contain underscores.
(#140) Variable "format_readable" must not contain underscores.
local/checkmarkreport/getgroups.json.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/getmembers.json.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/index.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/lang/de/local_checkmarkreport.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/lang/en/local_checkmarkreport.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/lib.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/checkmarkreport/renderer.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
(#274) Expected 1 space after "?"; newline found
(#276) Line exceeds 132 characters; contains 134 characters
(#276) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Expected 1 space after "?"; newline found
(#283) Expected 1 space after "?"; newline found
(#294) Line exceeds 132 characters; contains 134 characters
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#296) Expected 1 space before "*"; 0 found
(#296) Expected 1 space after "*"; 0 found
(#296) Expected 1 space before "/"; 0 found
(#296) Expected 1 space after "/"; 0 found
(#315) Line exceeds 132 characters; contains 138 characters
(#317) Expected 1 space after ":"; newline found
(#318) Line exceeds 132 characters; contains 156 characters
(#321) Expected 1 space before "=>"; 0 found
(#321) Expected 1 space after "=>"; 0 found
(#321) Line exceeds 132 characters; contains 135 characters
(#325) Expected 1 space before "=>"; 0 found
(#325) Expected 1 space after "=>"; 0 found
(#325) Line exceeds 132 characters; contains 140 characters
(#327) Line exceeds 132 characters; contains 136 characters
(#331) Line exceeds 132 characters; contains 144 characters
(#332) Line exceeds 132 characters; contains 160 characters
(#334) Expected 1 space after "?"; newline found
(#339) Line exceeds 132 characters; contains 138 characters
(#339) Inline comments must end in full-stops, exclamation marks, or question marks
(#342) Line exceeds 132 characters; contains 138 characters
(#357) Expected 1 space after "?"; newline found
(#361) Line exceeds 132 characters; contains 138 characters
(#364) Expected 1 space before "*"; 0 found
(#364) Expected 1 space after "*"; 0 found
(#364) Expected 1 space before "/"; 0 found
(#364) Expected 1 space after "/"; 0 found
(#364) Line exceeds 132 characters; contains 156 characters
(#366) Expected 1 space before "=>"; 0 found
(#366) Expected 1 space after "=>"; 0 found
(#366) Line exceeds 132 characters; contains 135 characters
(#370) Expected 1 space before "=>"; 0 found
(#370) Expected 1 space after "=>"; 0 found
(#370) Line exceeds 132 characters; contains 140 characters
(#372) Line exceeds 132 characters; contains 136 characters
(#376) Line exceeds 132 characters; contains 144 characters
(#377) Line exceeds 132 characters; contains 160 characters
(#379) Expected 1 space after "?"; newline found
(#384) Line exceeds 132 characters; contains 138 characters
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#387) Line exceeds 132 characters; contains 138 characters
(#407) This comment is 51% valid code; is this commented out code?
(#418) Inline comments must end in full-stops, exclamation marks, or question marks
(#419) Expected 1 space after "="; 2 found
(#427) Line exceeds 132 characters; contains 163 characters
(#427) Inline comments must start with a capital letter, digit or 3-dots sequence
(#427) Inline comments must end in full-stops, exclamation marks, or question marks
(#427) This comment is 75% valid code; is this commented out code?
(#427) No space found before comment text; expected "// $PAGE->requires->strings_for_js(array('ajaxchoosescale', 'ajaxclicktoclose', 'ajaxerror', 'ajaxfailedupdate', 'ajaxfieldchanged'), 'gradereport_grader');" but found "//$PAGE->requires->strings_for_js(array('ajaxchoosescale', 'ajaxclicktoclose', 'ajaxerror', 'ajaxfailedupdate', 'ajaxfieldchanged'), 'gradereport_grader');"
(#834) Expected 1 space before "=>"; 0 found
(#834) Expected 1 space after "=>"; 0 found
(#945) Expected 1 space after "?"; newline found
(#946) Expected 1 space after ":"; newline found
(#952) Expected 1 space after "?"; newline found
(#953) Expected 1 space after ":"; newline found
(#992) Line exceeds 132 characters; contains 140 characters
(#994) Expected 1 space after ":"; newline found
(#1000) Expected 1 space before "=>"; 0 found
(#1000) Expected 1 space after "=>"; 0 found
(#1000) Line exceeds 132 characters; contains 135 characters
(#1004) Expected 1 space before "=>"; 0 found
(#1004) Expected 1 space after "=>"; 0 found
(#1004) Line exceeds 132 characters; contains 141 characters
(#1006) Line exceeds 132 characters; contains 137 characters
(#1010) Line exceeds 132 characters; contains 145 characters
(#1011) Line exceeds 132 characters; contains 161 characters
(#1013) Expected 1 space after ":"; newline found
(#1020) Line exceeds 132 characters; contains 144 characters
(#1022) Expected 1 space before "*"; 0 found
(#1022) Expected 1 space after "*"; 0 found
(#1022) Expected 1 space before "/"; 0 found
(#1022) Expected 1 space after "/"; 0 found
(#1022) Line exceeds 132 characters; contains 136 characters
(#1070) Line exceeds 132 characters; contains 138 characters
(#1070) Inline comments must end in full-stops, exclamation marks, or question marks
(#1072) Expected 1 space after ":"; newline found
(#1076) Expected 1 space after ":"; newline found
(#1082) Expected 1 space before "*"; 0 found
(#1082) Expected 1 space after "*"; 0 found
(#1082) Expected 1 space before "/"; 0 found
(#1082) Expected 1 space after "/"; 0 found
(#1100) Inline comments must end in full-stops, exclamation marks, or question marks
(#1101) Expected 1 space after "="; 2 found
(#1109) Line exceeds 132 characters; contains 163 characters
(#1109) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1109) Inline comments must end in full-stops, exclamation marks, or question marks
(#1109) This comment is 75% valid code; is this commented out code?
(#1109) No space found before comment text; expected "// $PAGE->requires->strings_for_js(array('ajaxchoosescale', 'ajaxclicktoclose', 'ajaxerror', 'ajaxfailedupdate', 'ajaxfieldchanged'), 'gradereport_grader');" but found "//$PAGE->requires->strings_for_js(array('ajaxchoosescale', 'ajaxclicktoclose', 'ajaxerror', 'ajaxfailedupdate', 'ajaxfieldchanged'), 'gradereport_grader');"
local/checkmarkreport/reportfilterform.class.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#166) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#169) Inline comments must start with a capital letter, digit or 3-dots sequence
(#169) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) This comment is 84% valid code; is this commented out code?
(#169) No space found before comment text; expected "// $this->_customdata['header']" but found "//$this->_customdata['header']"
(#174) Line exceeds 132 characters; contains 153 characters
(#176) This comment is 77% valid code; is this commented out code?
(#176) Inline comments must start with a capital letter, digit or 3-dots sequence
(#176) No space found before comment text; expected "// $mform->addHelpButton('grade', 'grade', 'local_checkmarkreport');" but found "//$mform->addHelpButton('grade', 'grade', 'local_checkmarkreport');"
(#178) Line exceeds 132 characters; contains 152 characters
(#180) This comment is 77% valid code; is this commented out code?
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) No space found before comment text; expected "// $mform->addHelpButton('sumabs', 'sumabs', 'local_checkmarkreport');" but found "//$mform->addHelpButton('sumabs', 'sumabs', 'local_checkmarkreport');"
(#182) Line exceeds 132 characters; contains 152 characters
(#184) Inline comments must start with a capital letter, digit or 3-dots sequence
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) This comment is 77% valid code; is this commented out code?
(#184) No space found before comment text; expected "// $mform->addHelpButton('sumrel', 'sumrel', 'local_checkmarkreport');" but found "//$mform->addHelpButton('sumrel', 'sumrel', 'local_checkmarkreport');"
(#194) Inline comments must start with a capital letter, digit or 3-dots sequence
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) This comment is 77% valid code; is this commented out code?
(#194) No space found before comment text; expected "// $mform->addHelpButton('showpoints', 'showpoints', 'local_checkmarkreport');" but found "//$mform->addHelpButton('showpoints', 'showpoints', 'local_checkmarkreport');"
(#196) Line exceeds 132 characters; contains 158 characters
local/checkmarkreport/version.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#38) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 38 warnings)

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

local/checkmarkreport/module.js
(#84) Expected '!==' and instead saw '!='.
(#87) Expected '!==' and instead saw '!='.
(#249) ['user'] is better written in dot notation.
(#249) Expected '===' and instead saw '=='.
(#249) ['item'] is better written in dot notation.
(#249) Expected '===' and instead saw '=='.
(#250) ['grader'] is better written in dot notation.
(#251) ['dategraded'] is better written in dot notation.
(#278) Expected '===' and instead saw '=='.
(#278) Expected '===' and instead saw '=='.
local/checkmarkreport/yui/filterform/filterform.js
(#20) Missing semicolon.
(#73) Missing semicolon.
(#73) Missing semicolon.
(#104) Missing semicolon.
(#117) Missing semicolon.
(#134) Missing semicolon.
(#151) Missing semicolon.
(#160) Missing semicolon.
(#179) Missing semicolon.
(#221) Missing semicolon.
(#240) Missing semicolon.
(#277) A constructor name should start with an uppercase letter.
(#17) 'oldusers' is defined but never used.
(#27) 'CSS' is defined but never used.
(#29) 'WRAPPERS' is defined but never used.
(#18) 'Y' is defined but never used.
(#36) 'config' is defined but never used.
(#73) 'e' is defined but never used.
(#93) 'a' is defined but never used.
(#106) 'a' is defined but never used.
(#123) 'groups' is defined but never used.
(#130) 'text' is defined but never used.
(#140) 'groupings' is defined but never used.
(#147) 'text' is defined but never used.
(#162) 'a' is defined but never used.
(#162) 'id' is defined but never used.
(#223) 'a' is defined but never used.
(#223) 'id' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(74 errors, 4 warnings)

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

local/checkmarkreport/checkmarkreport.class.php
(#32) Class checkmarkreport is not documented
(#47) Function checkmarkreport::__construct is not documented
(#56) Function checkmarkreport::get_instances is not documented
(#60) Function checkmarkreport::get_user is not documented
(#64) Function checkmarkreport::get_groups is not documented
(#68) Function checkmarkreport::get_coursedata is not documented
(#122) Function checkmarkreport::get_general_data is not documented
(#370) Function checkmarkreport::get_examples_data is not documented
(#387) Function checkmarkreport::get_courseinstances is not documented
(#410) Function checkmarkreport::get_courseid is not documented
(#414) Function checkmarkreport::init_hidden is not documented
(#439) Function checkmarkreport::init_sortby is not documented
(#489) Function checkmarkreport::get_sortlink is not documented
(#519) Function checkmarkreport::column_is_hidden is not documented
(#34) Variable checkmarkreport::$courseid is not documented
(#42) Variable checkmarkreport::$data is not documented
(#43) Variable checkmarkreport::$groups is not documented
(#44) Variable checkmarkreport::$users is not documented
(#45) Variable checkmarkreport::$instances is not documented
(#36) Constant checkmarkreport::FORMAT_XLSX is not documented
(#37) Constant checkmarkreport::FORMAT_XLS is not documented
(#38) Constant checkmarkreport::FORMAT_ODS is not documented
(#39) Constant checkmarkreport::FORMAT_XML is not documented
(#40) Constant checkmarkreport::FORMAT_TXT is not documented
local/checkmarkreport/classes/event/exported_base.php
(#30) Class exported_base is not documented
local/checkmarkreport/classes/event/overview_exported.php
(#30) Class overview_exported is not documented
(#31) Function overview_exported::overview is not documented
local/checkmarkreport/classes/event/overview_viewed.php
(#30) Class overview_viewed is not documented
(#31) Function overview_viewed::overview is not documented
local/checkmarkreport/classes/event/useroverview_exported.php
(#30) Class useroverview_exported is not documented
(#31) Function useroverview_exported::useroverview is not documented
local/checkmarkreport/classes/event/useroverview_viewed.php
(#30) Class useroverview_viewed is not documented
(#31) Function useroverview_viewed::useroverview is not documented
local/checkmarkreport/classes/event/userview_exported.php
(#30) Class userview_exported is not documented
(#31) Function userview_exported::userview is not documented
local/checkmarkreport/classes/event/userview_viewed.php
(#30) Class userview_viewed is not documented
(#31) Function userview_viewed::userview is not documented
local/checkmarkreport/classes/event/viewed_base.php
(#30) Class viewed_base is not documented
(#31) Function viewed_base::init is not documented
local/checkmarkreport/db/install.php
(#17) No one-line description found in phpdocs for file
local/checkmarkreport/db/uninstall.php
(#17) No one-line description found in phpdocs for file
local/checkmarkreport/index.php
(#17) No one-line description found in phpdocs for file
local/checkmarkreport/lang/de/local_checkmarkreport.php
(#16) File-level phpdocs block is not found
local/checkmarkreport/lang/en/local_checkmarkreport.php
(#16) File-level phpdocs block is not found
local/checkmarkreport/lib.php
(#43) Function local_checkmarkreport_extends_navigation is not documented
(#47) Function local_checkmarkreport_extends_settings_navigation is not documented
local/checkmarkreport/renderer.php
(#32) Class checkmarkreport_overview is not documented
(#791) Class checkmarkreport_useroverview is not documented
(#1436) Class checkmarkreport_userview is not documented
(#1449) Class local_checkmarkreport_renderer is not documented
(#36) Function checkmarkreport_overview::__construct is not documented
(#58) Function checkmarkreport_overview::get_table is not documented
(#435) Function checkmarkreport_overview::get_xml is not documented
(#504) Function checkmarkreport_overview::get_txt is not documented
(#585) Function checkmarkreport_overview::get_ods is not documented
(#601) Function checkmarkreport_overview::get_xls is not documented
(#617) Function checkmarkreport_overview::get_xlsx is not documented
(#633) Function checkmarkreport_overview::fill_workbook is not documented
(#795) Function checkmarkreport_useroverview::__construct is not documented
(#822) Function checkmarkreport_useroverview::get_table is not documented
(#1117) Function checkmarkreport_useroverview::get_xml is not documented
(#1186) Function checkmarkreport_useroverview::get_txt is not documented
(#1242) Function checkmarkreport_useroverview::get_ods is not documented
(#1258) Function checkmarkreport_useroverview::get_xls is not documented
(#1274) Function checkmarkreport_useroverview::get_xlsx is not documented
(#1290) Function checkmarkreport_useroverview::fill_workbook is not documented
(#1440) Function checkmarkreport_userview::__construct is not documented
(#1451) Function local_checkmarkreport_renderer::render_checkmarkreport_overview is not documented
(#1528) Function local_checkmarkreport_renderer::render_checkmarkreport_useroverview is not documented
(#1600) Function local_checkmarkreport_renderer::render_checkmarkreport_userview is not documented
(#1892) Function local_checkmarkreport_renderer::get_toggle_links is not documented
(#34) Variable checkmarkreport_overview::$tableclass is not documented
(#793) Variable checkmarkreport_useroverview::$tableclass is not documented
(#1438) Variable checkmarkreport_userview::$tableclass is not documented
local/checkmarkreport/reportfilterform.class.php
(#45) Not recommended phpdocs tag @global used
(#45) Not recommended phpdocs tag @global used
(#45) Not recommended phpdocs tag @global used
(#45) Not recommended phpdocs tag @global used

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]


Mustache template problems

(0 errors, 0 warnings)

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