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

(774 errors, 162 warnings)

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

blocks/helpdesk/assign.php
(#18) Whitespace found at end of line
(#77) Expected "if (...) {\n"; found "if(...) {\n"
(#80) Variable "str_unassigned" must not contain underscores.
(#81) Variable "str_username" must not contain underscores.
(#97) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#111) Expected "if (...) {\n"; found "if(...) {\n"
(#115) Expected "if (...) {\n"; found "if(...) {\n"
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) No space found before comment text; expected "// helpdesk_print_header($nav, $title);" but found "//helpdesk_print_header($nav, $title);"
(#139) Expected "foreach (...) {\n"; found "foreach(...) {\n"
blocks/helpdesk/block_helpdesk.php
(#32) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#32) Scope modifier not specified for member variable "$hd"
(#39) Visibility must be declared on method "init"
(#41) Expected 1 space after "?"; newline found
(#52) Visibility must be declared on method "specialization"
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Expected "if (...) {\n"; found "if(...) {\n"
(#68) Visibility must be declared on method "get_content"
(#98) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#100) Expected "if (...) {\n"; found "if(...) {\n"
(#123) Variable "hd_user" must not contain underscores.
(#125) Variable "hd_user" must not contain underscores.
(#130) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#132) Expected "if (...) {\n"; found "if(...) {\n"
(#156) Expected 1 space after "="; 2 found
(#156) Expected 1 space before ":"; 0 found
(#156) Line exceeds 132 characters; contains 142 characters
(#160) Variable "submitas_url" must not contain underscores.
(#161) Variable "submitas_url" must not contain underscores.
(#162) Variable "submitas_url" must not contain underscores.
(#162) Variable "submitas_url" must not contain underscores.
(#163) Variable "submitas_text" must not contain underscores.
(#164) Variable "submitas_url" must not contain underscores.
(#167) Variable "manage_url" must not contain underscores.
(#168) Variable "manage_url" must not contain underscores.
(#169) Variable "manage_url" must not contain underscores.
(#169) Variable "manage_url" must not contain underscores.
(#170) Variable "manage_text" must not contain underscores.
(#170) Variable "manage_text" must not contain underscores.
(#171) Variable "manage_url" must not contain underscores.
(#176) Inline comments must start with a capital letter, digit or 3-dots sequence
(#192) Visibility must be declared on method "cron"
(#196) Expected "if (...) {\n"; found "if(...) {\n"
(#201) Visibility must be declared on method "instance_allow_multiple"
(#205) Visibility must be declared on method "has_config"
(#209) Visibility must be declared on method "instance_allow_config"
blocks/helpdesk/db/install.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#37) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#37) Variable "HELPDESK_CAP_ASK" must not contain underscores.
(#38) Variable "HELPDESK_CAP_ANSWER" must be all lower-case
(#38) Variable "HELPDESK_CAP_ANSWER" must not contain underscores.
(#60) Variable "HELPDESK_CAP_ANSWER" must be all lower-case
(#60) Variable "HELPDESK_CAP_ANSWER" must not contain underscores.
(#65) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#65) Variable "HELPDESK_CAP_ASK" must not contain underscores.
(#86) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#86) Variable "HELPDESK_CAP_ASK" must not contain underscores.
blocks/helpdesk/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#9) Inline comments must end in full-stops, exclamation marks, or question marks
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#19) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#46) Inline doc block comments are not allowed; use "// Comment." instead
(#50) Variable "user2hd_user" must not contain underscores.
(#59) Line indented incorrectly; expected 4 spaces, found 8
(#60) Variable "hd_userid" must not contain underscores.
(#61) Variable "user2hd_user" must not contain underscores.
(#61) Variable "hd_userid" must not contain underscores.
(#62) Line indented incorrectly; expected 4 spaces, found 8
(#63) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#65) Inline doc block comments are not allowed; use "// Comment." instead
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) 3 slashes comments are not allowed; use "// Comment." instead
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) 3 slashes comments are not allowed; use "// Comment." instead
(#84) Inline doc block comments are not allowed; use "// Comment." instead
(#91) Line indented incorrectly; expected 4 spaces, found 8
(#92) Line indented incorrectly; expected 8 spaces, found 12
(#93) Perl-style comments are not allowed; use "// Comment." instead
(#94) Variable "user2hd_user" must not contain underscores.
(#97) Perl-style comments are not allowed; use "// Comment." instead
(#100) Variable "user2hd_user" must not contain underscores.
(#104) Variable "user2hd_user" must not contain underscores.
(#105) Line indented incorrectly; expected 8 spaces, found 12
(#106) Line indented incorrectly; expected 4 spaces, found 8
(#107) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#109) Inline doc block comments are not allowed; use "// Comment." instead
(#113) Variable "ticket_assigns" must not contain underscores.
(#114) Line indented incorrectly; expected 4 spaces, found 8
(#114) Variable "ticket_assigns" must not contain underscores.
(#115) Line indented incorrectly; expected 8 spaces, found 12
(#115) Variable "ticket_assigns" must not contain underscores.
(#116) Variable "user2hd_user" must not contain underscores.
(#117) Line indented incorrectly; expected 12 spaces, found 16
(#120) Variable "user2hd_user" must not contain underscores.
(#124) Line indented incorrectly; expected 12 spaces, found 16
(#125) Line indented incorrectly; expected 8 spaces, found 12
(#126) Line indented incorrectly; expected 4 spaces, found 8
(#127) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#129) Inline doc block comments are not allowed; use "// Comment." instead
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) 3 slashes comments are not allowed; use "// Comment." instead
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) 3 slashes comments are not allowed; use "// Comment." instead
(#148) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#150) Inline doc block comments are not allowed; use "// Comment." instead
(#154) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#163) Inline doc block comments are not allowed; use "// Comment." instead
(#167) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Inline doc block comments are not allowed; use "// Comment." instead
(#178) Variable "ticket_updates" must not contain underscores.
(#179) Line indented incorrectly; expected 4 spaces, found 8
(#179) Variable "ticket_updates" must not contain underscores.
(#180) Line indented incorrectly; expected 8 spaces, found 12
(#180) Variable "ticket_updates" must not contain underscores.
(#181) Variable "user2hd_user" must not contain underscores.
(#183) Line indented incorrectly; expected 8 spaces, found 12
(#184) Line indented incorrectly; expected 4 spaces, found 8
(#186) Inline doc block comments are not allowed; use "// Comment." instead
(#190) Inline comments must end in full-stops, exclamation marks, or question marks
(#196) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#198) Inline doc block comments are not allowed; use "// Comment." instead
(#202) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#209) Inline doc block comments are not allowed; use "// Comment." instead
(#213) Inline comments must end in full-stops, exclamation marks, or question marks
(#218) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#220) Inline doc block comments are not allowed; use "// Comment." instead
(#224) Inline comments must end in full-stops, exclamation marks, or question marks
(#230) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#232) Inline doc block comments are not allowed; use "// Comment." instead
(#235) Inline comments must end in full-stops, exclamation marks, or question marks
(#239) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#241) Inline doc block comments are not allowed; use "// Comment." instead
(#244) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#250) Inline doc block comments are not allowed; use "// Comment." instead
(#253) Inline comments must end in full-stops, exclamation marks, or question marks
(#257) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#259) Inline doc block comments are not allowed; use "// Comment." instead
(#262) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#268) Inline doc block comments are not allowed; use "// Comment." instead
(#271) Inline comments must start with a capital letter, digit or 3-dots sequence
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#283) Inline comments must start with a capital letter, digit or 3-dots sequence
(#283) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#295) Inline comments must start with a capital letter, digit or 3-dots sequence
(#295) Inline comments must end in full-stops, exclamation marks, or question marks
(#305) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#307) Inline comments must start with a capital letter, digit or 3-dots sequence
(#307) Inline comments must end in full-stops, exclamation marks, or question marks
(#318) Inline comments must start with a capital letter, digit or 3-dots sequence
(#318) Inline comments must end in full-stops, exclamation marks, or question marks
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#329) 3 slashes comments are not allowed; use "// Comment." instead
(#334) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) 3 slashes comments are not allowed; use "// Comment." instead
(#337) Inline comments must end in full-stops, exclamation marks, or question marks
(#337) 3 slashes comments are not allowed; use "// Comment." instead
(#342) Inline comments must end in full-stops, exclamation marks, or question marks
(#342) 3 slashes comments are not allowed; use "// Comment." instead
(#371) Line indented incorrectly; expected 4 spaces, found 8
(#373) Line indented incorrectly; expected 8 spaces, found 12
(#382) Line indented incorrectly; expected 12 spaces, found 16
(#385) Line indented incorrectly; expected 12 spaces, found 16
(#388) Line indented incorrectly; expected 12 spaces, found 16
(#390) Line indented incorrectly; expected 12 spaces, found 16
(#391) Line indented incorrectly; expected 8 spaces, found 12
(#392) Line indented incorrectly; expected 4 spaces, found 8
(#416) Inline comments must end in full-stops, exclamation marks, or question marks
(#437) Inline comments must end in full-stops, exclamation marks, or question marks
(#446) Inline comments must end in full-stops, exclamation marks, or question marks
(#452) No space found before comment text; expected "// Ticket table, first contact." but found "//Ticket table, first contact."
(#477) Inline comments must start with a capital letter, digit or 3-dots sequence
(#513) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#615) Expected 1 space before comment text but found 6; use block comment if you need indentation
(#676) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#676) Variable "HELPDESK_CAP_ASK" must not contain underscores.
(#677) Variable "HELPDESK_CAP_ANSWER" must be all lower-case
(#677) Variable "HELPDESK_CAP_ANSWER" must not contain underscores.
(#699) Variable "HELPDESK_CAP_ANSWER" must be all lower-case
(#699) Variable "HELPDESK_CAP_ANSWER" must not contain underscores.
(#704) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#704) Variable "HELPDESK_CAP_ASK" must not contain underscores.
(#725) Variable "HELPDESK_CAP_ASK" must be all lower-case
(#725) Variable "HELPDESK_CAP_ASK" must not contain underscores.
blocks/helpdesk/edit.php
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
blocks/helpdesk/hduser.php
(#63) Variable "user_form" must not contain underscores.
(#65) Empty IF statement detected
(#65) Variable "user_form" must not contain underscores.
(#66) Perl-style comments are not allowed; use "// Comment." instead
(#67) Perl-style comments are not allowed; use "// Comment." instead
(#68) Variable "user_form" must not contain underscores.
(#92) Variable "user_form" must not contain underscores.
(#93) Variable "user_form" must not contain underscores.
blocks/helpdesk/helpdesk.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#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 "//".
(#4) 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/>.".
(#11) Expected MOODLE_INTERNAL check or config.php inclusion
(#14) Whitespace found at end of line
(#19) Visibility must be declared on method "cron"
(#27) Visibility must be declared on method "install"
(#38) Visibility must be declared on method "is_update_hidden"
(#45) Visibility must be declared on method "new_ticket"
(#54) Visibility must be declared on method "get_ticket"
(#63) Visibility must be declared on method "search"
(#63) Perl-style comments are not allowed; use "// Comment." instead
(#73) Visibility must be declared on method "new_ticket_form"
(#81) Visibility must be declared on method "update_ticket_form"
(#90) Visibility must be declared on method "tag_ticket_form"
(#98) Visibility must be declared on method "search_form"
(#105) Visibility must be declared on method "change_overview_form"
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Variable "crumb_nav" must not contain underscores.
(#125) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#126) Expected "if (...) {\n"; found "if(...) {\n"
(#129) Variable "crumb_nav" must not contain underscores.
(#136) Variable "hd_nav" must not contain underscores.
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#150) Expected "if (...) {\n"; found "if(...) {\n"
(#157) Expected "if (...) {\n"; found "if (...){\n"
(#178) Visibility must be declared on method "get_ticket_relations"
(#185) Visibility must be declared on method "get_default_relation"
(#191) Visibility must be declared on method "get_ticket_relation_search"
(#199) Visibility must be declared on method "get_relation_string"
(#210) Visibility must be declared on method "default_submit_url"
(#217) Visibility must be declared on method "get_status_ids"
(#224) Visibility must be declared on method "new_search_obj"
blocks/helpdesk/helpdesk_ticket.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#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 "//".
(#4) 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/>.".
(#12) Expected MOODLE_INTERNAL check or config.php inclusion
(#19) Visibility must be declared on method "display_ticket"
(#30) Visibility must be declared on method "fetch"
(#39) Visibility must be declared on method "store"
(#56) Visibility must be declared on method "get_user_object"
(#68) Visibility must be declared on method "parse"
(#79) Visibility must be declared on method "set_idstring"
(#88) Visibility must be declared on method "set_summary"
(#98) Visibility must be declared on method "set_detail"
(#107) Visibility must be declared on method "set_timecreated"
(#116) Visibility must be declared on method "set_timemodified"
(#124) Visibility must be declared on method "set_status"
(#132) Visibility must be declared on method "set_hd_userid"
(#140) Visibility must be declared on method "get_idstring"
(#148) Visibility must be declared on method "get_summary"
(#156) Visibility must be declared on method "get_detail"
(#164) Visibility must be declared on method "get_timecreated"
(#172) Visibility must be declared on method "get_timemodified"
(#181) Visibility must be declared on method "get_status_string"
(#188) Visibility must be declared on method "get_status"
(#196) Visibility must be declared on method "get_tags"
(#205) Visibility must be declared on method "get_updates"
(#215) Visibility must be declared on method "get_hd_userid"
(#225) Visibility must be declared on method "add_update"
(#235) Visibility must be declared on method "add_tag"
(#244) Visibility must be declared on method "parse_tag"
(#253) Visibility must be declared on method "remove_tag"
(#261) Visibility must be declared on method "update_tag"
(#271) Visibility must be declared on method "add_assignment"
(#280) Visibility must be declared on method "remove_assignment"
(#288) Visibility must be declared on method "get_assigned"
(#299) Visibility must be declared on method "store_edit"
blocks/helpdesk/index.php
(#27) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
blocks/helpdesk/lang/en/block_helpdesk.php
(#23) Spaces must be used for alignment; tabs are not allowed
(#30) Expected 1 space before "="; 0 found
(#110) Expected 1 space before "="; 0 found
(#217) Expected 1 space before "="; 0 found
(#241) Expected 1 space before "="; 0 found
(#244) Inline doc block comments are not allowed; use "// Comment." instead
(#308) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/helpdesk/lib.php
(#23) Spaces must be used for alignment; tabs are not allowed
(#63) Perl-style comments are not allowed; use "// Comment." instead
(#64) Perl-style comments are not allowed; use "// Comment." instead
(#114) Perl-style comments are not allowed; use "// Comment." instead
(#185) Perl-style comments are not allowed; use "// Comment." instead
(#195) Variable "hd_user" must not contain underscores.
(#196) Variable "hd_user" must not contain underscores.
(#199) Variable "hd_user" must not contain underscores.
(#208) Variable "hd_user" must not contain underscores.
(#211) Variable "hd_user" must not contain underscores.
(#214) Variable "hd_userid" must not contain underscores.
(#217) Variable "hd_userid" must not contain underscores.
(#221) Variable "hd_userid" must not contain underscores.
(#222) Variable "hd_userid" must not contain underscores.
(#231) Variable "hd_userid" must not contain underscores.
(#236) Variable "hd_userid" must not contain underscores.
(#272) Variable "token_exp" must not contain underscores.
(#274) Variable "token_exp" must not contain underscores.
(#276) Variable "token_exp" must not contain underscores.
(#276) Perl-style comments are not allowed; use "// Comment." instead
(#277) Variable "token_exp" must not contain underscores.
(#277) Variable "token_exp" must not contain underscores.
(#277) Perl-style comments are not allowed; use "// Comment." instead
(#279) Inline doc block comments are not allowed; use "// Comment." instead
(#287) Variable "token_exp" must not contain underscores.
(#312) Expected 1 space after "?"; newline found
(#313) Spaces must be used for alignment; tabs are not allowed
(#313) Tab found within whitespace
(#371) Line exceeds 132 characters; contains 142 characters
(#416) Expected 1 space before comment text but found 7; use block comment if you need indentation
(#439) Expected 1 space before "=>"; 0 found
(#439) Expected 1 space after "=>"; 0 found
(#472) Inline comments must start with a capital letter, digit or 3-dots sequence
(#473) Inline comments must end in full-stops, exclamation marks, or question marks
(#489) Variable "debugdeveloper_backup" must not contain underscores.
(#492) Variable "debugdeveloper_backup" must not contain underscores.
(#529) 10 slashes comments are not allowed; use "// Comment." instead
(#530) Inline comments must end in full-stops, exclamation marks, or question marks
(#530) This comment is 67% valid code; is this commented out code?
(#530) No space found before comment text; expected "// - if (empty($user) or empty($user->id)) {" but found "//- if (empty($user) or empty($user->id)) {"
(#532) Inline comments must end in full-stops, exclamation marks, or question marks
(#532) Line indented incorrectly; expected at least 8 spaces, found 4
(#532) 10 slashes comments are not allowed; use "// Comment." instead
(#565) Expected 1 space before "=="; 0 found
(#565) Expected 1 space after "=="; 0 found
(#572) The use of function error_log() is forbidden
(#581) The use of function error_log() is forbidden
(#667) Expected 1 space after "="; 2 found
(#668) Expected 1 space after "="; 2 found
(#671) Expected 1 space after "="; 2 found
(#678) Line exceeds 132 characters; contains 155 characters
(#724) 10 slashes comments are not allowed; use "// Comment." instead
(#725) This comment is 58% valid code; is this commented out code?
(#725) No space found before comment text; expected "// - set_send_count($user);" but found "//- set_send_count($user);"
(#726) Inline comments must end in full-stops, exclamation marks, or question marks
(#726) 10 slashes comments are not allowed; use "// Comment." instead
blocks/helpdesk/manage_watchers.php
(#35) Variable "hd_userid" must not contain underscores.
(#51) Expected "if (...) {\n"; found "if(...) {\n"
(#51) Variable "hd_userid" must not contain underscores.
(#54) Variable "hd_userid" must not contain underscores.
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) This comment is 80% valid code; is this commented out code?
(#57) No space found before comment text; expected "// , $text);" but found "//, $text);"
(#60) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) Variable "hd_userid" must not contain underscores.
(#64) Variable "hd_userid" must not contain underscores.
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) This comment is 80% valid code; is this commented out code?
(#67) No space found before comment text; expected "// , $text);" but found "//, $text);"
blocks/helpdesk/new.php
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#58) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#68) Variable "hd_userid" must not contain underscores.
(#69) Variable "hd_userid" must not contain underscores.
(#71) Variable "hd_userid" must not contain underscores.
(#73) Variable "hd_userid" must not contain underscores.
(#94) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) This comment is 75% valid code; is this commented out code?
(#94) No space found before comment text; expected "// helpdesk_print_header($nav, $title);" but found "//helpdesk_print_header($nav, $title);"
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) This comment is 73% valid code; is this commented out code?
(#97) No space found before comment text; expected "// print_heading(get_string('helpdesk', 'block_helpdesk'));" but found "//print_heading(get_string('helpdesk', 'block_helpdesk'));"
(#99) Variable "hd_userid" must not contain underscores.
(#100) Variable "hd_userid" must not contain underscores.
(#113) Expected "if (...) {\n"; found "if (...) { "
(#113) Variable "hd_userid" must not contain underscores.
(#113) Closing brace must be on a line by itself
(#128) Variable "hd_userid" must not contain underscores.
(#141) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#149) Expected "foreach (...) {\n"; found "foreach(...) {\n"
blocks/helpdesk/plugins/native/action/grab.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline doc block comments are not allowed; use "// Comment." instead
(#47) Expected "if (...) {\n"; found "if(...) {\n"
(#53) Expected "if (...) {\n"; found "if(...) {\n"
(#58) Expected "if (...) {\n"; found "if(...) {\n"
(#62) Expected "if (...) {\n"; found "if(...) {\n"
blocks/helpdesk/plugins/native/action/hideupdate.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Expected "if (...) {\n"; found "if(...) {\n"
blocks/helpdesk/plugins/native/action/init.php
(#30) Variable "hd_depth" must not contain underscores.
(#31) Variable "www_depth" must not contain underscores.
(#33) Expected "for (...) {\n"; found "for(...) {\n"
(#33) Variable "www_depth" must not contain underscores.
(#35) Expected "if (...) {\n"; found "if(...) { "
(#35) Variable "hd_depth" must not contain underscores.
(#35) Closing brace must be on a line by itself
blocks/helpdesk/plugins/native/action/showupdate.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Expected "if (...) {\n"; found "if(...) {\n"
blocks/helpdesk/plugins/native/change_overview_form.php
(#18) Whitespace found at end of line
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#29) Visibility must be declared on method "definition"
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Visibility must be declared on method "set_current_status"
(#90) Visibility must be declared on method "validation"
blocks/helpdesk/plugins/native/helpdesk_native.php
(#37) Visibility must be declared on method "__construct"
(#46) Visibility must be declared on method "install"
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Visibility must be declared on method "is_installed"
(#169) Visibility must be declared on method "get_relation_string"
(#182) Visibility must be declared on method "add_status_path"
(#197) Visibility must be declared on method "get_default_status"
(#212) Visibility must be declared on method "get_status_paths"
(#236) Visibility must be declared on method "cron"
(#258) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#272) Variable "hd_userid" must not contain underscores.
(#281) Variable "hd_user" must not contain underscores.
(#282) Variable "hd_user" must not contain underscores.
(#282) Variable "hd_userid" must not contain underscores.
(#293) Variable "hd_userid" must not contain underscores.
(#294) Variable "hd_userid" must not contain underscores.
(#304) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#321) Visibility must be declared on method "is_update_hidden"
(#337) Visibility must be declared on method "email_idle_notification"
(#356) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#371) Expected "if (...) {\n"; found "if(...) {\n"
(#392) Visibility must be declared on method "email_update"
(#394) Expected "if (...) {\n"; found "if(...) {\n"
(#412) Expected "if (...) {\n"; found "if(...) {\n"
(#416) Expected "if (...) {\n"; found "if(...) {\n"
(#419) Expected "if (...) {\n"; found "if(...) {\n"
(#432) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#459) Inline comments must start with a capital letter, digit or 3-dots sequence
(#460) Expected "if (...) {\n"; found "if(...) {\n"
(#478) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#490) Perl-style comments are not allowed; use "// Comment." instead
(#492) Perl-style comments are not allowed; use "// Comment." instead
(#509) Visibility must be declared on method "plugin_settings"
(#535) This comment is 70% valid code; is this commented out code?
(#535) Inline comments must start with a capital letter, digit or 3-dots sequence
(#535) No space found before comment text; expected "// $settings->add(new admin_setting_configcheckbox('block_helpdesk_get_email_tickets'," but found "//$settings->add(new admin_setting_configcheckbox('block_helpdesk_get_email_tickets',"
(#536) This comment is 67% valid code; is this commented out code?
(#536) Expected 1 space before comment text but found 48; use block comment if you need indentation
(#537) This comment is 67% valid code; is this commented out code?
(#537) Expected 1 space before comment text but found 48; use block comment if you need indentation
(#538) Inline comments must end in full-stops, exclamation marks, or question marks
(#538) This comment is 73% valid code; is this commented out code?
(#538) Expected 1 space before comment text but found 48; use block comment if you need indentation
(#574) This comment is 70% valid code; is this commented out code?
(#574) Inline comments must start with a capital letter, digit or 3-dots sequence
(#574) No space found before comment text; expected "// $settings->add(new admin_setting_configtext('block_helpdesk_ticket_idle_dur'," but found "//$settings->add(new admin_setting_configtext('block_helpdesk_ticket_idle_dur',"
(#575) This comment is 67% valid code; is this commented out code?
(#575) Expected 1 space before comment text but found 44; use block comment if you need indentation
(#576) This comment is 67% valid code; is this commented out code?
(#576) Expected 1 space before comment text but found 44; use block comment if you need indentation
(#577) Inline comments must end in full-stops, exclamation marks, or question marks
(#577) This comment is 64% valid code; is this commented out code?
(#577) Expected 1 space before comment text but found 44; use block comment if you need indentation
(#590) Visibility must be declared on method "get_ticket_relations"
(#601) Inline comments must end in full-stops, exclamation marks, or question marks
(#601) Line indented incorrectly; expected at least 8 spaces, found 0
(#601) Expected 1 space before comment text but found 12; use block comment if you need indentation
(#628) Visibility must be declared on method "get_ticket_relation_search"
(#634) Variable "current_hd_user" must not contain underscores.
(#636) Line indented incorrectly; expected 12 spaces, found 8
(#637) Line indented incorrectly; expected at least 16 spaces, found 12
(#638) Line indented incorrectly; expected at least 16 spaces, found 12
(#638) Variable "current_hd_user" must not contain underscores.
(#640) Line indented incorrectly; expected 12 spaces, found 8
(#641) Line indented incorrectly; expected at least 16 spaces, found 12
(#642) Line indented incorrectly; expected at least 16 spaces, found 12
(#642) Variable "current_hd_user" must not contain underscores.
(#644) Line indented incorrectly; expected 12 spaces, found 8
(#645) Line indented incorrectly; expected at least 16 spaces, found 12
(#647) Line indented incorrectly; expected 12 spaces, found 8
(#648) Line indented incorrectly; expected at least 16 spaces, found 12
(#649) Line indented incorrectly; expected 12 spaces, found 8
(#650) Line indented incorrectly; expected at least 16 spaces, found 12
(#651) Line indented incorrectly; expected at least 16 spaces, found 12
(#653) Line indented incorrectly; expected 12 spaces, found 8
(#654) Line indented incorrectly; expected at least 16 spaces, found 12
(#656) Line indented incorrectly; expected 12 spaces, found 8
(#657) Line indented incorrectly; expected at least 16 spaces, found 12
(#659) Line indented incorrectly; expected 12 spaces, found 8
(#674) Visibility must be declared on method "get_status_ids"
(#676) Inline comments must start with a capital letter, digit or 3-dots sequence
(#678) Expected "if (...) {\n"; found "if(...) {\n"
(#681) Expected "if (...) {\n"; found "if(...) {\n"
(#684) Expected "if (...) {\n"; found "if(...) {\n"
(#687) Expected "if (...) {\n"; found "if(...) {\n"
(#695) Expected "if (...) {\n"; found "if(...) {\n"
(#700) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#712) Visibility must be declared on method "get_default_relation"
(#714) Line indented incorrectly; expected 12 spaces, found 8
(#716) Line indented incorrectly; expected 12 spaces, found 8
(#728) Visibility must be declared on method "new_ticket"
(#738) Visibility must be declared on method "get_ticket"
(#740) Expected "if (...) {\n"; found "if(...) {\n"
(#756) Visibility must be declared on method "search"
(#758) Expected "if (...) {\n"; found "if(...) {\n"
(#762) Expected "if (...) {\n"; found "if(...) {\n"
(#791) The use of the AS keyword to alias tables is bad for cross-db
(#792) The use of the AS keyword to alias tables is bad for cross-db
(#793) The use of the AS keyword to alias tables is bad for cross-db
(#794) The use of the AS keyword to alias tables is bad for cross-db
(#797) Expected "if (...) {\n"; found "if(...) {\n"
(#800) The use of the AS keyword to alias tables is bad for cross-db
(#807) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#808) Expected "if (...) {\n"; found "if(...) {\n"
(#812) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#816) Expected "if (...) {\n"; found "if(...) {\n"
(#827) Line exceeds 132 characters; contains 135 characters
(#829) Expected "if (...) {\n"; found "if(...) {\n"
(#832) Expected "if (...) {\n"; found "if(...) {\n"
(#840) Expected "if (...) {\n"; found "if(...) {\n"
(#844) Expected "if (...) {\n"; found "if(...) {\n"
(#853) Inline comments must end in full-stops, exclamation marks, or question marks
(#864) Expected "if (...) {\n"; found "if(...) {\n"
(#865) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#865) Variable "small_ticket" must not contain underscores.
(#867) Variable "small_ticket" must not contain underscores.
(#881) Visibility must be declared on method "change_overview_form"
(#895) Expected 1 space before "=>"; 0 found
(#895) Expected 1 space before "=>"; 0 found
(#895) Expected 1 space after "=>"; 0 found
(#895) Expected 1 space before "=>"; 0 found
(#895) Expected 1 space after "=>"; 0 found
(#913) Visibility must be declared on method "new_ticket_form"
(#917) Empty IF statement detected
(#923) This comment is 80% valid code; is this commented out code?
(#923) Perl-style comments are not allowed; use "// Comment." instead
(#927) This comment is 80% valid code; is this commented out code?
(#927) Perl-style comments are not allowed; use "// Comment." instead
(#941) Visibility must be declared on method "search_form"
(#954) Visibility must be declared on method "update_ticket_form"
(#963) Expected 1 space before "=>"; 0 found
(#963) Expected 1 space before "=>"; 0 found
(#963) Expected 1 space after "=>"; 0 found
(#963) Expected 1 space before "=>"; 0 found
(#963) Expected 1 space after "=>"; 0 found
(#982) Visibility must be declared on method "tag_ticket_form"
(#987) Expected 1 space before "=>"; 0 found
(#987) Expected 1 space before "=>"; 0 found
(#987) Expected 1 space after "=>"; 0 found
(#987) Expected 1 space before "=>"; 0 found
(#987) Expected 1 space after "=>"; 0 found
(#1006) Visibility must be declared on method "parse_db_tickets"
(#1011) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1014) Expected "if (...) {\n"; found "if(...) {\n"
(#1032) Visibility must be declared on method "default_submit_url"
blocks/helpdesk/plugins/native/helpdesk_ticket_native.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#37) Member variable "hd_userid" must not contain underscores.
(#53) Visibility must be declared on method "__construct"
(#68) Visibility must be declared on method "display_ticket"
(#113) Expected 1 space after ".="; 0 found
(#166) Inline doc block comments are not allowed; use "// Comment." instead
(#170) Expected "if (...) {\n"; found "if(...) {\n"
(#174) Variable "grab_help" must not contain underscores.
(#180) Variable "grab_help" must not contain underscores.
(#193) Expected "if (...) {\n"; found "if(...) {\n"
(#210) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#230) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#233) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) Inline comments must start with a capital letter, digit or 3-dots sequence
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) This comment is 50% valid code; is this commented out code?
(#247) No space found before comment text; expected "// $watcher_table->class = 'generaltable helpdesktable watchertable';" but found "//$watcher_table->class = 'generaltable helpdesktable watchertable';"
(#270) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#272) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#319) Inline comments must end in full-stops, exclamation marks, or question marks
(#327) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#338) Expected "if (...) {\n"; found "if(...) {\n"
(#347) Variable "update_table" must not contain underscores.
(#351) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#352) Variable "update_table" must not contain underscores.
(#353) Variable "update_table" must not contain underscores.
(#354) Variable "update_table" must not contain underscores.
(#378) Expected "if (...) {\n"; found "if(...) {\n"
(#379) Line indented incorrectly; expected at least 24 spaces, found 20
(#391) Variable "update_table" must not contain underscores.
(#403) Variable "update_table" must not contain underscores.
(#405) Inline comments must end in full-stops, exclamation marks, or question marks
(#409) Variable "update_table" must not contain underscores.
(#417) Variable "update_table" must not contain underscores.
(#420) Inline comments must start with a capital letter, digit or 3-dots sequence
(#422) Variable "creation_date" must not contain underscores.
(#426) Variable "creation_date" must not contain underscores.
(#427) Variable "update_table" must not contain underscores.
(#434) Variable "update_table" must not contain underscores.
(#435) Variable "update_table" must not contain underscores.
(#436) Inline comments must start with a capital letter, digit or 3-dots sequence
(#436) Inline comments must end in full-stops, exclamation marks, or question marks
(#436) This comment is 60% valid code; is this commented out code?
(#436) Line indented incorrectly; expected at least 16 spaces, found 0
(#436) Expected 1 space before comment text but found 16; use block comment if you need indentation
(#442) Variable "update_table" must not contain underscores.
(#458) Visibility must be declared on method "set_idstring"
(#469) Visibility must be declared on method "set_summary"
(#480) Visibility must be declared on method "set_detail"
(#492) Visibility must be declared on method "set_timecreated"
(#504) Visibility must be declared on method "set_timemodified"
(#515) Visibility must be declared on method "set_status"
(#528) Visibility must be declared on method "set_hd_userid"
(#533) Visibility must be declared on method "set_createdby"
(#543) Visibility must be declared on method "get_idstring"
(#552) Visibility must be declared on method "get_summary"
(#561) Visibility must be declared on method "get_detail"
(#570) Visibility must be declared on method "get_timecreated"
(#579) Visibility must be declared on method "get_timemodified"
(#588) Visibility must be declared on method "get_tags"
(#597) Visibility must be declared on method "get_updates"
(#603) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#620) Visibility must be declared on method "get_hd_userid"
(#624) Visibility must be declared on method "get_createdby"
(#633) Visibility must be declared on method "get_status"
(#646) Visibility must be declared on method "get_status_string"
(#669) Visibility must be declared on method "add_assignment"
(#696) Expected "if (...) {\n"; found "if(...) {\n"
(#719) Visibility must be declared on method "remove_assignment"
(#740) Expected "if (...) {\n"; found "if(...) {\n"
(#759) Visibility must be declared on method "get_assigned"
(#775) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#789) Visibility must be declared on method "add_watcher"
(#789) Variable "hd_userid" must not contain underscores.
(#793) Variable "hd_userid" must not contain underscores.
(#797) Variable "hd_userid" must not contain underscores.
(#801) Variable "hd_userid" must not contain underscores.
(#803) Expected "if (...) {\n"; found "if (...) { "
(#803) Closing brace must be on a line by itself
(#805) Inline comments must start with a capital letter, digit or 3-dots sequence
(#805) Inline comments must end in full-stops, exclamation marks, or question marks
(#812) Expected "if (...) {\n"; found "if(...) {\n"
(#826) Visibility must be declared on method "remove_watcher"
(#826) Variable "hd_userid" must not contain underscores.
(#830) Variable "hd_userid" must not contain underscores.
(#834) Variable "hd_userid" must not contain underscores.
(#837) Variable "hd_userid" must not contain underscores.
(#845) Expected "if (...) {\n"; found "if(...) {\n"
(#858) Visibility must be declared on method "get_watchers"
(#874) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#891) Visibility must be declared on method "fetch"
(#901) Variable "hd_user" must not contain underscores.
(#903) Variable "hd_user" must not contain underscores.
(#909) Variable "hd_user" must not contain underscores.
(#915) Perl-style comments are not allowed; use "// Comment." instead
(#926) Expected "if (...) {\n"; found "if(...) {\n"
(#942) Visibility must be declared on method "store"
(#965) Expected "if (...) {\n"; found "if(...) {\n"
(#970) Expected 1 space after "?"; newline found
(#1000) Perl-style comments are not allowed; use "// Comment." instead
(#1003) Expected "if (...) {\n"; found "if(...) {\n"
(#1016) Perl-style comments are not allowed; use "// Comment." instead
(#1026) Visibility must be declared on method "get_ticket"
(#1031) Expected "if (...) {\n"; found "if(...) {\n"
(#1046) Visibility must be declared on method "parse"
(#1051) Variable "hd_user" must not contain underscores.
(#1056) Expected "if (...) {\n"; found "if(...) {\n"
(#1059) Expected "if (...) {\n"; found "if(...) {\n"
(#1066) Variable "hd_user" must not contain underscores.
(#1071) Variable "hd_user" must not contain underscores.
(#1096) Visibility must be declared on method "parse_db_ticket"
(#1124) Visibility must be declared on method "add_update"
(#1144) Variable "current_hd_user" must not contain underscores.
(#1145) Variable "current_hd_user" must not contain underscores.
(#1146) Variable "current_hd_user" must not contain underscores.
(#1165) Expected "if (...) {\n"; found "if(...) {\n"
(#1188) Expected "if (...) {\n"; found "if(...) {\n"
(#1194) Expected 1 space before "=>"; 0 found
(#1194) Expected 1 space before "=>"; 0 found
(#1194) Expected 1 space before "=>"; 0 found
(#1194) Expected 1 space after "=>"; 0 found
(#1233) Visibility must be declared on method "update_tag"
(#1236) Inline comments must end in full-stops, exclamation marks, or question marks
(#1238) Expected 1 space before "=>"; 0 found
(#1238) Expected 1 space before "=>"; 0 found
(#1238) Expected 1 space after "=>"; 0 found
(#1238) Expected 1 space before "=>"; 0 found
(#1238) Expected 1 space after "=>"; 0 found
(#1258) Visibility must be declared on method "add_tag"
(#1264) Expected "if (...) {\n"; found "if (...){\n"
(#1286) Expected "if (...) {\n"; found "if(...) {\n"
(#1302) Visibility must be declared on method "remove_tag"
(#1324) Expected "if (...) {\n"; found "if(...) {\n"
(#1339) Visibility must be declared on method "parse_db_tags"
(#1353) Visibility must be declared on method "parse_db_updates"
(#1368) Visibility must be declared on method "parse_tag"
(#1378) Usage of ELSEIF not allowed; use ELSE IF instead
(#1392) Whitespace found at end of line
(#1398) Visibility must be declared on method "store_edit"
(#1401) Expected "if (...) {\n"; found "if(...) {\n"
(#1419) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1419) Inline comments must end in full-stops, exclamation marks, or question marks
(#1438) Expected 1 space before "=>"; 0 found
(#1438) Expected 1 space after "=>"; 0 found
(#1441) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1441) Expected 1 space before "=>"; 0 found
(#1441) Expected 1 space after "=>"; 0 found
(#1441) Expected 1 space before "=>"; 0 found
(#1441) Expected 1 space after "=>"; 0 found
(#1443) Expected "if (...) {\n"; found "if(...) {\n"
(#1453) Whitespace found at end of line
(#1459) Expected "if (...) {\n"; found "if(...) {\n"
(#1472) Expected "if (...) {\n"; found "if(...) {\n"
(#1475) Expected "if (...) {\n"; found "if(...) {\n"
(#1478) Expected "if (...) {\n"; found "if(...) {\n"
blocks/helpdesk/plugins/native/init.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/helpdesk/plugins/native/lib_native.php
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/helpdesk/plugins/native/new_ticket_form.php
(#32) Visibility must be declared on method "definition"
(#54) Visibility must be declared on method "validation"
(#68) method name "new_ticket_form::addHidden" must be in lower-case letters only
(#68) Visibility must be declared on method "addHidden"
blocks/helpdesk/plugins/native/search_form.php
(#31) Visibility must be declared on method "definition"
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Whitespace found at end of line
(#40) The use of the AS keyword to alias tables is bad for cross-db
(#41) The use of the AS keyword to alias tables is bad for cross-db
(#49) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#58) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) This comment is 67% valid code; is this commented out code?
(#79) No space found before comment text; expected "// $adv =& $mform->createElement('select', 'orderby', $orderbystr, $orderbylist);" but found "//$adv =& $mform->createElement('select', 'orderby', $orderbystr, $orderbylist);"
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Visibility must be declared on method "validation"
(#97) Visibility must be declared on method "set_multiselect_default"
blocks/helpdesk/plugins/native/tag_ticket_form.php
(#35) Visibility must be declared on method "definition"
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Visibility must be declared on method "validation"
blocks/helpdesk/plugins/native/update_ticket_form.php
(#18) Whitespace found at end of line
(#32) Visibility must be declared on method "definition"
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Expected "if (...) {\n"; found "if(...) {\n"
(#75) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#88) Visibility must be declared on method "validation"
blocks/helpdesk/pref_form.php
(#33) Visibility must be declared on method "definition"
(#38) Variable "update_prefs" must not contain underscores.
(#52) Commas (,) must be followed by white space.
blocks/helpdesk/preferences.php
(#49) Expected "if (...) {\n"; found "if(...) {\n"
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) This comment is 67% valid code; is this commented out code?
(#62) Line indented incorrectly; expected at least 4 spaces, found 0
(#62) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#74) Expected "foreach (...) {\n"; found "foreach(...) {\n"
blocks/helpdesk/search.php
(#57) Expected "if (...) {\n"; found "if (...) { "
(#57) Closing brace must be on a line by itself
(#58) Expected "if (...) {\n"; found "if(...) {\n"
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) This comment is 75% valid code; is this commented out code?
(#63) No space found before comment text; expected "// helpdesk_print_header($nav, $title);" but found "//helpdesk_print_header($nav, $title);"
(#68) Expected "if (...) {\n"; found "if(...) {\n"
(#71) Expected "if (...) {\n"; found "if(...) {\n"
(#74) Expected "if (...) {\n"; found "if(...) {\n"
(#76) Expected "if (...) {\n"; found "if(...) {\n"
(#79) Expected "if (...) {\n"; found "if(...) {\n"
(#89) Expected "if (...) {\n"; found "if(...) {\n"
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) Expected "if (...) {\n"; found "if (...) { "
(#159) Closing brace must be on a line by itself
(#216) Expected "if (...) {\n"; found "if (...) { "
(#216) Closing brace must be on a line by itself
blocks/helpdesk/tag.php
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Usage of ELSEIF not allowed; use ELSE IF instead
(#83) Expected "if (...) {\n"; found "if(...) {\n"
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) This comment is 75% valid code; is this commented out code?
(#92) No space found before comment text; expected "// helpdesk_print_header($nav, $title);" but found "//helpdesk_print_header($nav, $title);"
blocks/helpdesk/update.php
(#70) Expected "if (...) {\n"; found "if(...) {\n"
blocks/helpdesk/user_form.php
(#32) Member variable "new_user" must not contain underscores.
(#34) Visibility must be declared on method "__construct"
(#34) Variable "new_user" must not contain underscores.
(#35) Variable "new_user" must not contain underscores.
(#39) Visibility must be declared on method "definition"
(#54) Variable "type_options" must not contain underscores.
(#56) Line indented incorrectly; expected 8 spaces, found 12
(#56) Closing brace indented incorrectly; expected 8 spaces, found 12
(#57) Variable "type_options" must not contain underscores.
(#57) Variable "type_options" must not contain underscores.
(#57) Variable "type_options" must not contain underscores.
(#58) Variable "type_options" must not contain underscores.
(#62) Functions must not contain multiple empty lines in a row; found 2 empty lines
blocks/helpdesk/userlist.php
(#40) Variable "hd_userid" must not contain underscores.
(#73) Line indented incorrectly; expected 4 spaces, found 0
(#74) Line indented incorrectly; expected at least 8 spaces, found 4
(#75) Line indented incorrectly; expected at least 8 spaces, found 4
(#76) Line indented incorrectly; expected at least 8 spaces, found 4
(#77) Line indented incorrectly; expected at least 8 spaces, found 4
(#79) Line indented incorrectly; expected at least 8 spaces, found 4
(#82) Line indented incorrectly; expected at least 12 spaces, found 4
(#83) Line indented incorrectly; expected at least 12 spaces, found 4
(#84) Line indented incorrectly; expected at least 12 spaces, found 8
(#85) Line indented incorrectly; expected at least 12 spaces, found 4
(#86) Line indented incorrectly; expected at least 12 spaces, found 4
(#88) Line indented incorrectly; expected 4 spaces, found 0
(#89) Line indented incorrectly; expected at least 8 spaces, found 4
(#90) Line indented incorrectly; expected at least 8 spaces, found 4
(#91) Line indented incorrectly; expected at least 8 spaces, found 4
(#92) Line indented incorrectly; expected at least 8 spaces, found 4
(#94) Line indented incorrectly; expected at least 8 spaces, found 4
(#96) Line indented incorrectly; expected at least 12 spaces, found 4
(#97) Line indented incorrectly; expected at least 12 spaces, found 4
(#99) Line indented incorrectly; expected 4 spaces, found 0
(#100) Line indented incorrectly; expected 8 spaces, found 4
(#101) Line indented incorrectly; expected at least 12 spaces, found 8
(#102) Line indented incorrectly; expected 8 spaces, found 4
(#103) Line indented incorrectly; expected at least 8 spaces, found 4
(#104) Line indented incorrectly; expected at least 8 spaces, found 4
(#105) Line indented incorrectly; expected at least 8 spaces, found 4
(#106) Line indented incorrectly; expected at least 8 spaces, found 4
(#107) Line indented incorrectly; expected at least 8 spaces, found 4
(#109) Line indented incorrectly; expected at least 12 spaces, found 4
(#110) Line indented incorrectly; expected at least 12 spaces, found 4
(#111) Line indented incorrectly; expected at least 12 spaces, found 4
(#113) Line indented incorrectly; expected 4 spaces, found 0
(#114) Line indented incorrectly; expected at least 8 spaces, found 4
(#115) Line indented incorrectly; expected at least 8 spaces, found 4
(#116) Line indented incorrectly; expected at least 8 spaces, found 4
(#118) Line indented incorrectly; expected at least 12 spaces, found 4
(#119) Line indented incorrectly; expected at least 12 spaces, found 4
(#121) Line indented incorrectly; expected 4 spaces, found 0
(#122) Line indented incorrectly; expected at least 8 spaces, found 4
(#123) Line indented incorrectly; expected at least 8 spaces, found 4
(#125) Line indented incorrectly; expected 4 spaces, found 0
(#126) Line indented incorrectly; expected at least 8 spaces, found 4
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) This comment is 80% valid code; is this commented out code?
(#133) No space found before comment text; expected "// helpdesk_print_header($nav);" but found "//helpdesk_print_header($nav);"
(#142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#142) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) Variable "search_form" must not contain underscores.
(#144) Variable "search_form" must not contain underscores.
(#150) Inline comments must start with a capital letter, digit or 3-dots sequence
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#150) This comment is 58% valid code; is this commented out code?
(#150) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#152) Variable "search_form" must not contain underscores.
(#156) Inline comments must start with a capital letter, digit or 3-dots sequence
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Variable "hd_userid" must not contain underscores.
(#158) Variable "user_form" must not contain underscores.
(#159) Variable "user_form" must not contain underscores.
(#164) Variable "user_form" must not contain underscores.
(#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
(#190) Variable "hd_userid" must not contain underscores.
(#191) Variable "search_count" must not contain underscores.
(#192) Variable "hd_userid" must not contain underscores.
(#194) Variable "sql_users" must not contain underscores.
(#195) The use of the AS keyword to alias tables is bad for cross-db
(#196) The use of the AS keyword to alias tables is bad for cross-db
(#199) Variable "sql_hdusers" must not contain underscores.
(#200) The use of the AS keyword to alias tables is bad for cross-db
(#205) Variable "search_count" must not contain underscores.
(#205) Variable "full_count" must not contain underscores.
(#207) Variable "full_count" must not contain underscores.
(#207) Variable "sql_users" must not contain underscores.
(#210) Variable "full_count" must not contain underscores.
(#210) Variable "sql_hdusers" must not contain underscores.
(#213) Variable "param_count" must not contain underscores.
(#214) Variable "sql_search" must not contain underscores.
(#215) Variable "sql_search" must not contain underscores.
(#216) Expected "if (...) {\n"; found "if (...) { "
(#216) Variable "sql_search" must not contain underscores.
(#216) Closing brace must be on a line by itself
(#217) Variable "sql_search" must not contain underscores.
(#219) Inline comments must start with a capital letter, digit or 3-dots sequence
(#222) Variable "sql_search" must not contain underscores.
(#224) Variable "sql_users" must not contain underscores.
(#234) Variable "search_count" must not contain underscores.
(#234) Variable "sql_users" must not contain underscores.
(#237) Variable "sql_search" must not contain underscores.
(#239) Variable "sql_hdusers" must not contain underscores.
(#245) Variable "search_count" must not contain underscores.
(#245) Variable "sql_hdusers" must not contain underscores.
(#247) Variable "search_count" must not contain underscores.
(#249) Variable "full_count" must not contain underscores.
(#250) Variable "search_count" must not contain underscores.
(#250) Variable "full_count" must not contain underscores.
(#259) Variable "sql_users" must not contain underscores.
(#270) Variable "sql_hdusers" must not contain underscores.
(#285) Variable "search_count" must not contain underscores.
(#290) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#306) Variable "search_count" must not contain underscores.
blocks/helpdesk/usersearch_form.php
(#34) Visibility must be declared on method "__construct"
(#39) Visibility must be declared on method "definition"
(#45) Line indented incorrectly; expected 12 spaces, found 8
(#46) Line indented incorrectly; expected at least 16 spaces, found 12
(#48) Line indented incorrectly; expected 12 spaces, found 8
(#49) Line indented incorrectly; expected at least 16 spaces, found 12
(#51) Line indented incorrectly; expected 12 spaces, found 8
(#52) Line indented incorrectly; expected at least 16 spaces, found 12
blocks/helpdesk/version.php
(#19) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 1 warnings)

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

blocks/helpdesk/style.css
(#22) float can't be used with display: inline-block.

PHPDocs style problems

(139 errors, 2 warnings)

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

blocks/helpdesk/assign.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/block_helpdesk.php
(#31) Class block_helpdesk is not documented
(#201) Function block_helpdesk::instance_allow_multiple is not documented
(#205) Function block_helpdesk::has_config is not documented
(#209) Function block_helpdesk::instance_allow_config is not documented
(#32) Variable block_helpdesk::$hd is not documented
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/db/access.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/db/install.php
(#2) Empty line found after PHP open tag
(#28) Function xmldb_block_helpdesk_install is not documented
blocks/helpdesk/db/upgrade.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Function addwatchertable is not documented
(#400) Function xmldb_block_helpdesk_upgrade is not documented
(#76) Found comment starting with three or more slashes
(#81) Found comment starting with three or more slashes
(#141) Found comment starting with three or more slashes
(#146) Found comment starting with three or more slashes
(#329) Found comment starting with three or more slashes
(#334) Found comment starting with three or more slashes
(#337) Found comment starting with three or more slashes
(#342) Found comment starting with three or more slashes
(#3) Package is not specified for function addwatchertable. It is also not specified in file-level phpdocs
(#400) Package is not specified for function xmldb_block_helpdesk_upgrade. It is also not specified in file-level phpdocs
blocks/helpdesk/edit.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/helpdesk.php
(#2) File-level phpdocs block is not found
(#166) Function helpdesk::display_ticket is not documented
(#2) No one-line description found in phpdocs for class helpdesk
(#60) Phpdocs for function helpdesk::search has incomplete parameters list
(#100) Phpdocs for function helpdesk::change_overview_form has incomplete parameters list
(#107) Phpdocs for function helpdesk::page_init has incomplete parameters list
(#175) Phpdocs for function helpdesk::get_ticket_relations has incomplete parameters list
(#180) Phpdocs for function helpdesk::get_default_relation has incomplete parameters list
(#187) Phpdocs for function helpdesk::get_ticket_relation_search has incomplete parameters list
(#212) Phpdocs for function helpdesk::get_status_ids has incomplete parameters list
blocks/helpdesk/helpdesk_ticket.php
(#2) File-level phpdocs block is not found
(#2) No one-line description found in phpdocs for class helpdesk_ticket
(#16) Phpdocs for function helpdesk_ticket::display_ticket has incomplete parameters list
(#41) Phpdocs for function helpdesk_ticket::get_ticket has incomplete parameters list
(#174) Phpdocs for function helpdesk_ticket::get_status_string has incomplete parameters list
(#255) Phpdocs for function helpdesk_ticket::update_tag has incomplete parameters list
blocks/helpdesk/index.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/lang/en/block_helpdesk.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/lib.php
(#92) Function print_table_head is not documented
(#192) Function helpdesk_ensure_hd_user is not documented
(#214) Function helpdesk_get_hd_user is not documented
(#240) Function helpdesk_user_link is not documented
(#258) Function helpdesk_generate_token is not documented
(#262) Function helpdesk_authenticate_token is not documented
(#385) Function helpdesk_print_footer is not documented
(#529) Found comment starting with three or more slashes
(#532) Found comment starting with three or more slashes
(#724) Found comment starting with three or more slashes
(#726) Found comment starting with three or more slashes
(#17) No one-line description found in phpdocs for file
(#103) Phpdocs for function helpdesk_is_capable has incomplete parameters list
(#156) Phpdocs for function helpdesk_get_user has incomplete parameters list
(#202) Phpdocs for function helpdesk_create_hd_user has incomplete parameters list
(#339) Phpdocs for function helpdesk_simple_helpbutton has incomplete parameters list
(#356) Phpdocs for function helpdesk_print_header has incomplete parameters list
(#480) Phpdocs for function fullname_nowarnings has incomplete parameters list
blocks/helpdesk/new.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/action/grab.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/action/hideupdate.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/action/init.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/action/showupdate.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/change_overview_form.php
(#27) Class change_overview_form is not documented
(#29) Function change_overview_form::definition is not documented
(#80) Function change_overview_form::set_current_status is not documented
(#90) Function change_overview_form::validation is not documented
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/helpdesk_native.php
(#30) Class helpdesk_native is not documented
(#157) Function helpdesk_native::is_installed is not documented
(#272) Function helpdesk_native::get_idle_tickets is not documented
(#473) Function helpdesk_native::process_watchers_to_email is not documented
(#881) Function helpdesk_native::change_overview_form is not documented
(#17) No one-line description found in phpdocs for file
(#387) Phpdocs for function helpdesk_native::email_update has incomplete parameters list
(#706) Phpdocs for function helpdesk_native::get_default_relation has incomplete parameters list
(#752) Phpdocs for function helpdesk_native::search has incomplete parameters list
(#908) Phpdocs for function helpdesk_native::new_ticket_form has incomplete parameters list
(#979) Phpdocs for function helpdesk_native::tag_ticket_form has incomplete parameters list
blocks/helpdesk/plugins/native/helpdesk_ticket_native.php
(#29) Class helpdesk_ticket_native is not documented
(#528) Function helpdesk_ticket_native::set_hd_userid is not documented
(#533) Function helpdesk_ticket_native::set_createdby is not documented
(#624) Function helpdesk_ticket_native::get_createdby is not documented
(#1207) Function helpdesk_ticket_native::process_update is not documented
(#1418) Function helpdesk_ticket_native::get_os is not documented
(#31) Variable helpdesk_ticket_native::$id is not documented
(#32) Variable helpdesk_ticket_native::$summary is not documented
(#33) Variable helpdesk_ticket_native::$status is not documented
(#34) Variable helpdesk_ticket_native::$detail is not documented
(#35) Variable helpdesk_ticket_native::$timecreated is not documented
(#36) Variable helpdesk_ticket_native::$timemodified is not documented
(#37) Variable helpdesk_ticket_native::$hd_userid is not documented
(#38) Variable helpdesk_ticket_native::$createdby is not documented
(#39) Variable helpdesk_ticket_native::$firstcontact is not documented
(#42) Variable helpdesk_ticket_native::$tags is not documented
(#43) Variable helpdesk_ticket_native::$updates is not documented
(#44) Variable helpdesk_ticket_native::$users is not documented
(#64) Phpdocs for function helpdesk_ticket_native::display_ticket has incomplete parameters list
(#592) Phpdocs for function helpdesk_ticket_native::get_updates has incomplete parameters list
(#883) Phpdocs for function helpdesk_ticket_native::fetch has incomplete parameters list
(#1395) Phpdocs for function helpdesk_ticket_native::store_edit has incomplete parameters list
blocks/helpdesk/plugins/native/init.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/lib_native.php
(#17) No one-line description found in phpdocs for file
(#68) Phpdocs for function get_status_string has incomplete parameters list
blocks/helpdesk/plugins/native/new_ticket_form.php
(#31) Class new_ticket_form is not documented
(#32) Function new_ticket_form::definition is not documented
(#54) Function new_ticket_form::validation is not documented
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/plugins/native/search_form.php
(#30) Class search_form is not documented
(#31) Function search_form::definition is not documented
(#93) Function search_form::validation is not documented
(#97) Function search_form::set_multiselect_default is not documented
blocks/helpdesk/plugins/native/tag_ticket_form.php
(#32) Class tag_ticket_form is not documented
(#35) Function tag_ticket_form::definition is not documented
(#56) Function tag_ticket_form::validation is not documented
(#33) Variable tag_ticket_form::$ticketid is not documented
blocks/helpdesk/plugins/native/update_ticket_form.php
(#31) Class update_ticket_form is not documented
(#32) Function update_ticket_form::definition is not documented
(#88) Function update_ticket_form::validation is not documented
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/pref_form.php
(#32) Class helpdesk_pref_form is not documented
(#33) Function helpdesk_pref_form::definition is not documented
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/preferences.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/search.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/tag.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/update.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/user_form.php
(#31) Class helpdesk_user_form is not documented
(#34) Function helpdesk_user_form::__construct is not documented
(#39) Function helpdesk_user_form::definition is not documented
(#32) Variable helpdesk_user_form::$new_user is not documented
blocks/helpdesk/userlist.php
(#17) No one-line description found in phpdocs for file
blocks/helpdesk/usersearch_form.php
(#31) Class helpdesk_usersearch_form is not documented
(#34) Function helpdesk_usersearch_form::__construct is not documented
(#39) Function helpdesk_usersearch_form::definition is not documented
(#32) Variable helpdesk_usersearch_form::$userset is not documented
blocks/helpdesk/version.php
(#17) File-level phpdocs block is not found
blocks/helpdesk/view.php
(#17) No one-line description found in phpdocs for file

Update savepoints problems

(0 errors, 1 warnings)

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

blocks/helpdesk/db/upgrade.php
Detected less 'if' blocks (1) than 'savepoint' calls (2). Repeated savepoints?

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]