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

(440 errors, 67 warnings)

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

local/discoursesso/db/events.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
local/discoursesso/db/upgrade.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#14) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#23) Expected 1 space(s) before asterisk; 0 found
(#23) Whitespace found at end of line
local/discoursesso/groups.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 16 spaces, found 13
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected at least 16 spaces, found 13
(#99) Line indented incorrectly; expected 12 spaces, found 10
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#103) Line exceeds 132 characters; contains 173 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#107) Line exceeds 132 characters; contains 179 characters
(#112) Line indented incorrectly; expected 12 spaces, found 10
local/discoursesso/lang/en/error.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#14) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#23) Expected 1 space(s) before asterisk; 0 found
local/discoursesso/lang/en/local_discoursesso.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#14) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#23) Expected 1 space(s) before asterisk; 0 found
local/discoursesso/locallib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#31) Whitespace found at end of line
(#34) Expected 1 space before "="; 0 found
(#34) Expected 1 space after "="; 0 found
(#34) Expected 1 space before "="; 0 found
(#34) Expected 1 space after "="; 0 found
(#34) Line exceeds 132 characters; contains 134 characters
(#39) Line exceeds 132 characters; contains 133 characters
(#43) Line exceeds maximum limit of 180 characters; contains 191 characters
(#44) Whitespace found at end of line
(#48) Whitespace found at end of line
(#87) Line indented incorrectly; expected 8 spaces, found 9
(#101) Expected 1 space(s) before asterisk; 0 found
(#102) Expected 1 space(s) before asterisk; 0 found
(#103) Expected 1 space(s) before asterisk; 0 found
(#104) Expected 1 space(s) before asterisk; 0 found
(#109) Expected 1 space before "="; 0 found
(#109) Expected 1 space after "="; 0 found
(#109) Expected 1 space before "="; 0 found
(#109) Expected 1 space after "="; 0 found
(#110) Whitespace found at end of line
(#126) Line exceeds maximum limit of 180 characters; contains 187 characters
(#132) Line exceeds maximum limit of 180 characters; contains 239 characters
(#137) Line exceeds 132 characters; contains 135 characters
(#149) Line indented incorrectly; expected 0 spaces, found 1
(#158) Line exceeds maximum limit of 180 characters; contains 187 characters
(#160) Whitespace found at end of line
(#164) Line exceeds 132 characters; contains 135 characters
(#169) Line indented incorrectly; expected 0 spaces, found 1
(#332) Possible useless method overriding detected
(#374) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#387) Inline comments must start with a capital letter, digit or 3-dots sequence
(#387) Inline comments must end in full-stops, exclamation marks, or question marks
(#387) This comment is 67% valid code; is this commented out code?
(#387) No space found before comment text; expected "// $options['file'] = 'local/discoursesso/locallib.php';" but found "//$options['file'] = 'local/discoursesso/locallib.php';"
(#399) Possible useless method overriding detected
(#441) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#454) Inline comments must start with a capital letter, digit or 3-dots sequence
(#454) Inline comments must end in full-stops, exclamation marks, or question marks
(#454) This comment is 67% valid code; is this commented out code?
(#454) No space found before comment text; expected "// $options['file'] = 'local/discoursesso/locallib.php';" but found "//$options['file'] = 'local/discoursesso/locallib.php';"
local/discoursesso/settings.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
(#29) Expected "if (...) {\n"; found "if (...){\n"
(#30) Whitespace found at end of line
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
(#31) Line indented incorrectly; expected at least 4 spaces, found 1
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Line indented incorrectly; expected at least 4 spaces, found 1
(#34) Spaces must be used to indent lines; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected at least 4 spaces, found 1
(#35) Whitespace found at end of line
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Line indented incorrectly; expected at least 4 spaces, found 1
(#37) Whitespace found at end of line
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 4 spaces, found 2
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected at least 4 spaces, found 2
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 4 spaces, found 1
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 4 spaces, found 2
(#41) Line exceeds 132 characters; contains 166 characters
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 4 spaces, found 1
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 4 spaces, found 2
(#45) Line exceeds 132 characters; contains 175 characters
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected at least 4 spaces, found 1
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected at least 4 spaces, found 1
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 4 spaces, found 2
(#49) Line exceeds maximum limit of 180 characters; contains 209 characters
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected at least 4 spaces, found 1
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 4 spaces, found 1
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 4 spaces, found 1
(#65) Line exceeds 132 characters; contains 150 characters
(#67) Whitespace found at end of line
local/discoursesso/sso.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
(#35) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space after "=>"; 0 found
(#41) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space after "=>"; 0 found
(#56) Expected 1 space after "="; 2 found
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 1
(#68) Expected "} else {\n"; found "}\nelse {\n"
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Whitespace found at end of line
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) Expected 1 space before "="; 0 found
(#135) Expected 1 space after "="; 0 found
(#152) Expected "} else {\n"; found "}\n else {\n"
(#160) Inline comments must start with a capital letter, digit or 3-dots sequence
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) This comment is 64% valid code; is this commented out code?
(#160) No space found before comment text; expected "// $extraparams['groups'] = implode(",", $groupstoadd).",".implode(",", $groupstoremove);" but found "//$extraparams['groups'] = implode(",", $groupstoadd).",".implode(",", $groupstoremove);"
local/discoursesso/vendor/discourse-api-php/example.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) "require_once" must be immediately followed by an open parenthesis
(#7) Inline comments must start with a capital letter, digit or 3-dots sequence
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#9) The use of function print_r() is forbidden
(#11) Inline comments must start with a capital letter, digit or 3-dots sequence
(#11) Inline comments must end in full-stops, exclamation marks, or question marks
(#13) The use of function print_r() is forbidden
(#15) Inline comments must start with a capital letter, digit or 3-dots sequence
(#15) Inline comments must end in full-stops, exclamation marks, or question marks
(#17) The use of function print_r() is forbidden
(#19) Inline comments must start with a capital letter, digit or 3-dots sequence
(#19) Inline comments must end in full-stops, exclamation marks, or question marks
(#21) The use of function print_r() is forbidden
(#23) Variable "catId" must be all lower-case
(#25) Inline comments must start with a capital letter, digit or 3-dots sequence
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Variable "catId" must be all lower-case
(#32) The use of function print_r() is forbidden
(#34) Variable "topicId" must be all lower-case
(#38) Variable "topicId" must be all lower-case
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) The use of function print_r() is forbidden
local/discoursesso/vendor/discourse-api-php/lib/DiscourseAPI.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Whitespace found at end of line
(#20) Member variable "_apiKey" must be all lower-case
(#21) Member variable "_dcHostname" must be all lower-case
(#22) Member variable "_httpAuthName" must be all lower-case
(#23) Member variable "_httpAuthPass" must be all lower-case
(#25) Visibility must be declared on method "__construct"
(#25) Variable "dcHostname" must be all lower-case
(#25) Variable "apiKey" must be all lower-case
(#25) Variable "httpAuthName" must be all lower-case
(#25) Variable "httpAuthPass" must be all lower-case
(#26) Opening brace should be on the same line as the declaration
(#27) Variable "dcHostname" must be all lower-case
(#28) Variable "apiKey" must be all lower-case
(#30) Variable "httpAuthName" must be all lower-case
(#31) Variable "httpAuthPass" must be all lower-case
(#34) Private method name "DiscourseAPI::_deleteRequest" must be in lower-case letters only
(#34) Variable "reqString" must be all lower-case
(#34) Variable "paramArray" must be all lower-case
(#34) Variable "apiUser" must be all lower-case
(#35) Opening brace should be on the same line as the declaration
(#36) Variable "reqString" must be all lower-case
(#36) Variable "paramArray" must be all lower-case
(#36) Variable "apiUser" must be all lower-case
(#39) Private method name "DiscourseAPI::_deletepostRequest" must be in lower-case letters only
(#39) Variable "reqString" must be all lower-case
(#39) Variable "paramArray" must be all lower-case
(#39) Variable "apiUser" must be all lower-case
(#39) Variable "putMethod" must be all lower-case
(#40) Opening brace should be on the same line as the declaration
(#44) Whitespace found at end of line
(#45) Whitespace found at end of line
(#46) Variable "reqString" must be all lower-case
(#46) Whitespace found at end of line
(#47) Whitespace found at end of line
(#48) Variable "apiUser" must be all lower-case
(#51) Variable "paramArray" must be all lower-case
(#53) Variable "putMethod" must be all lower-case
(#56) Whitespace found at end of line
(#57) Line indented incorrectly; expected 8 spaces, found 4
(#60) Closing brace indented incorrectly; expected 4 spaces, found 8
(#66) Variable "resObj" must be all lower-case
(#67) Variable "resObj" must be all lower-case
(#68) Variable "resObj" must be all lower-case
(#69) Variable "resObj" must be all lower-case
(#72) Private method name "DiscourseAPI::_getRequest" must be in lower-case letters only
(#72) Variable "reqString" must be all lower-case
(#72) Variable "paramArray" must be all lower-case
(#72) Variable "apiUser" must be all lower-case
(#73) Opening brace should be on the same line as the declaration
(#74) Variable "paramArray" must be all lower-case
(#75) Variable "paramArray" must be all lower-case
(#82) Variable "reqString" must be all lower-case
(#83) Variable "paramArray" must be all lower-case
(#88) Variable "apiUser" must be all lower-case
(#102) Variable "resObj" must be all lower-case
(#103) Variable "resObj" must be all lower-case
(#104) Variable "resObj" must be all lower-case
(#105) Variable "resObj" must be all lower-case
(#108) Private method name "DiscourseAPI::_putRequest" must be in lower-case letters only
(#108) Variable "reqString" must be all lower-case
(#108) Variable "paramArray" must be all lower-case
(#108) Variable "apiUser" must be all lower-case
(#109) Opening brace should be on the same line as the declaration
(#110) Variable "reqString" must be all lower-case
(#110) Variable "paramArray" must be all lower-case
(#110) Variable "apiUser" must be all lower-case
(#113) Private method name "DiscourseAPI::_postRequest" must be in lower-case letters only
(#113) Variable "reqString" must be all lower-case
(#113) Variable "paramArray" must be all lower-case
(#113) Variable "apiUser" must be all lower-case
(#114) Opening brace should be on the same line as the declaration
(#116) Variable "reqString" must be all lower-case
(#116) Variable "paramArray" must be all lower-case
(#116) Variable "apiUser" must be all lower-case
(#119) Private method name "DiscourseAPI::_putpostRequest" must be in lower-case letters only
(#119) Variable "reqString" must be all lower-case
(#119) Variable "paramArray" must be all lower-case
(#119) Variable "apiUser" must be all lower-case
(#119) Variable "putMethod" must be all lower-case
(#120) Opening brace should be on the same line as the declaration
(#127) Variable "reqString" must be all lower-case
(#132) Variable "apiUser" must be all lower-case
(#136) Variable "paramArray" must be all lower-case
(#138) Variable "putMethod" must be all lower-case
(#151) Variable "resObj" must be all lower-case
(#152) Variable "resObj" must be all lower-case
(#153) Variable "resObj" must be all lower-case
(#154) Variable "resObj" must be all lower-case
(#166) Visibility must be declared on method "group"
(#167) Opening brace should be on the same line as the declaration
(#175) Variable "groupId" must be all lower-case
(#178) Variable "groupId" must be all lower-case
(#188) Variable "groupId" must be all lower-case
(#189) Variable "groupId" must be all lower-case
(#203) method name "DiscourseAPI::createGroup" must be in lower-case letters only
(#203) Visibility must be declared on method "createGroup"
(#204) Opening brace should be on the same line as the declaration
(#227) method name "DiscourseAPI::deleteGroup" must be in lower-case letters only
(#227) Visibility must be declared on method "deleteGroup"
(#228) Opening brace should be on the same line as the declaration
(#243) method name "DiscourseAPI::getGroups" must be in lower-case letters only
(#243) Visibility must be declared on method "getGroups"
(#244) Opening brace should be on the same line as the declaration
(#255) method name "DiscourseAPI::getGroupMembers" must be in lower-case letters only
(#255) Visibility must be declared on method "getGroupMembers"
(#256) Opening brace should be on the same line as the declaration
(#271) method name "DiscourseAPI::createUser" must be in lower-case letters only
(#271) Visibility must be declared on method "createUser"
(#271) Variable "userName" must be all lower-case
(#271) Variable "emailAddress" must be all lower-case
(#272) Opening brace should be on the same line as the declaration
(#280) Variable "userName" must be all lower-case
(#281) Variable "emailAddress" must be all lower-case
(#295) Whitespace found at end of line
(#298) method name "DiscourseAPI::activateUser" must be in lower-case letters only
(#298) Visibility must be declared on method "activateUser"
(#298) Variable "userId" must be all lower-case
(#299) Opening brace should be on the same line as the declaration
(#300) Variable "userId" must be all lower-case
(#311) method name "DiscourseAPI::suspendUser" must be in lower-case letters only
(#311) Visibility must be declared on method "suspendUser"
(#311) Variable "userId" must be all lower-case
(#312) Opening brace should be on the same line as the declaration
(#313) Variable "userId" must be all lower-case
(#324) method name "DiscourseAPI::getUsernameByEmail" must be in lower-case letters only
(#324) Visibility must be declared on method "getUsernameByEmail"
(#325) Opening brace should be on the same line as the declaration
(#347) method name "DiscourseAPI::getUserByUsername" must be in lower-case letters only
(#347) Visibility must be declared on method "getUserByUsername"
(#347) Variable "userName" must be all lower-case
(#348) Opening brace should be on the same line as the declaration
(#349) Variable "userName" must be all lower-case
(#359) method name "DiscourseAPI::getUserByExternalID" must be in lower-case letters only
(#359) Visibility must be declared on method "getUserByExternalID"
(#359) Variable "externalID" must be all lower-case
(#360) Opening brace should be on the same line as the declaration
(#361) Variable "externalID" must be all lower-case
(#375) method name "DiscourseAPI::createCategory" must be in lower-case letters only
(#375) Visibility must be declared on method "createCategory"
(#375) Variable "categoryName" must be all lower-case
(#375) Variable "textColor" must be all lower-case
(#375) Variable "userName" must be all lower-case
(#376) Opening brace should be on the same line as the declaration
(#378) Variable "categoryName" must be all lower-case
(#380) Variable "textColor" must be all lower-case
(#382) Variable "userName" must be all lower-case
(#392) method name "DiscourseAPI::getTopic" must be in lower-case letters only
(#392) Visibility must be declared on method "getTopic"
(#392) Variable "topicID" must be all lower-case
(#393) Opening brace should be on the same line as the declaration
(#394) Variable "topicID" must be all lower-case
(#408) method name "DiscourseAPI::createTopic" must be in lower-case letters only
(#408) Visibility must be declared on method "createTopic"
(#408) Variable "topicTitle" must be all lower-case
(#408) Variable "bodyText" must be all lower-case
(#408) Variable "categoryId" must be all lower-case
(#408) Variable "userName" must be all lower-case
(#408) Variable "replyToId" must be all lower-case
(#409) Opening brace should be on the same line as the declaration
(#411) Variable "topicTitle" must be all lower-case
(#412) Variable "bodyText" must be all lower-case
(#413) Variable "categoryId" must be all lower-case
(#415) Variable "replyToId" must be all lower-case
(#417) Variable "userName" must be all lower-case
(#428) method name "DiscourseAPI::watchTopic" must be in lower-case letters only
(#428) Visibility must be declared on method "watchTopic"
(#428) Variable "topicId" must be all lower-case
(#428) Variable "userName" must be all lower-case
(#429) Opening brace should be on the same line as the declaration
(#433) Variable "topicId" must be all lower-case
(#433) Variable "userName" must be all lower-case
(#445) method name "DiscourseAPI::createPost" must be in lower-case letters only
(#445) Visibility must be declared on method "createPost"
(#445) Variable "bodyText" must be all lower-case
(#445) Variable "topicId" must be all lower-case
(#445) Variable "userName" must be all lower-case
(#446) Opening brace should be on the same line as the declaration
(#448) Variable "bodyText" must be all lower-case
(#449) Variable "topicId" must be all lower-case
(#451) Variable "userName" must be all lower-case
(#454) method name "DiscourseAPI::inviteUser" must be in lower-case letters only
(#454) Visibility must be declared on method "inviteUser"
(#454) Variable "topicId" must be all lower-case
(#454) Variable "userName" must be all lower-case
(#455) Opening brace should be on the same line as the declaration
(#458) Variable "topicId" must be all lower-case
(#460) Variable "topicId" must be all lower-case
(#460) Variable "userName" must be all lower-case
(#463) method name "DiscourseAPI::changeSiteSetting" must be in lower-case letters only
(#463) Visibility must be declared on method "changeSiteSetting"
(#463) Variable "siteSetting" must be all lower-case
(#464) Opening brace should be on the same line as the declaration
(#465) Variable "siteSetting" must be all lower-case
(#466) Variable "siteSetting" must be all lower-case
(#469) method name "DiscourseAPI::getIDByEmail" must be in lower-case letters only
(#469) Visibility must be declared on method "getIDByEmail"
(#470) Opening brace should be on the same line as the declaration
(#479) method name "DiscourseAPI::logoutByEmail" must be in lower-case letters only
(#479) Visibility must be declared on method "logoutByEmail"
(#480) Opening brace should be on the same line as the declaration
(#481) Variable "user_id" must not contain underscores.
(#483) Variable "user_id" must not contain underscores.
(#486) method name "DiscourseAPI::getUserinfoByName" must be in lower-case letters only
(#486) Visibility must be declared on method "getUserinfoByName"
(#487) Opening brace should be on the same line as the declaration
local/discoursesso/version.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#24) Expected 1 space(s) before asterisk; 0 found
(#29) 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 eslint [More info]


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(54 errors, 2 warnings)

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

local/discoursesso/db/events.php
(#19) Package local is not valid
local/discoursesso/db/upgrade.php
(#18) Package local is not valid
local/discoursesso/groups.php
(#19) Package local is not valid
local/discoursesso/lang/en/error.php
(#18) Package local is not valid
local/discoursesso/lang/en/local_discoursesso.php
(#18) Package local is not valid
local/discoursesso/locallib.php
(#19) Package local is not valid
(#171) Class cohort_selector_base is not documented
(#29) Function local_discoursesso_cohort_deleted_handler is not documented
(#57) Function get_discourse_locale is not documented
(#93) Function clean_name is not documented
(#332) Function discoursesso_cohort_candidate_selector::__construct is not documented
(#385) Function discoursesso_cohort_candidate_selector::get_options is not documented
(#399) Function discoursesso_cohort_existing_selector::__construct is not documented
(#452) Function discoursesso_cohort_existing_selector::get_options is not documented
(#330) Variable discoursesso_cohort_candidate_selector::$cohortid is not documented
(#397) Variable discoursesso_cohort_existing_selector::$cohortid is not documented
local/discoursesso/settings.php
(#19) Package local is not valid
local/discoursesso/sso.php
(#19) Package local is not valid
local/discoursesso/vendor/discourse-api-php/example.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
local/discoursesso/vendor/discourse-api-php/lib/DiscourseAPI.php
(#10) Package DiscourseAPI is not valid
(#9) Category DiscourseAPI is not valid
(#2) Empty line found after PHP open tag
(#17) Class DiscourseAPI is not documented
(#25) Function DiscourseAPI::__construct is not documented
(#34) Function DiscourseAPI::_deleteRequest is not documented
(#39) Function DiscourseAPI::_deletepostRequest is not documented
(#72) Function DiscourseAPI::_getRequest is not documented
(#108) Function DiscourseAPI::_putRequest is not documented
(#113) Function DiscourseAPI::_postRequest is not documented
(#119) Function DiscourseAPI::_putpostRequest is not documented
(#166) Function DiscourseAPI::group is not documented
(#203) Function DiscourseAPI::createGroup is not documented
(#227) Function DiscourseAPI::deleteGroup is not documented
(#243) Function DiscourseAPI::getGroups is not documented
(#255) Function DiscourseAPI::getGroupMembers is not documented
(#271) Function DiscourseAPI::createUser is not documented
(#298) Function DiscourseAPI::activateUser is not documented
(#311) Function DiscourseAPI::suspendUser is not documented
(#324) Function DiscourseAPI::getUsernameByEmail is not documented
(#347) Function DiscourseAPI::getUserByUsername is not documented
(#375) Function DiscourseAPI::createCategory is not documented
(#454) Function DiscourseAPI::inviteUser is not documented
(#463) Function DiscourseAPI::changeSiteSetting is not documented
(#469) Function DiscourseAPI::getIDByEmail is not documented
(#479) Function DiscourseAPI::logoutByEmail is not documented
(#486) Function DiscourseAPI::getUserinfoByName is not documented
(#19) Variable DiscourseAPI::$_protocol is not documented
(#20) Variable DiscourseAPI::$_apiKey is not documented
(#21) Variable DiscourseAPI::$_dcHostname is not documented
(#22) Variable DiscourseAPI::$_httpAuthName is not documented
(#23) Variable DiscourseAPI::$_httpAuthPass is not documented
(#388) Phpdocs for function DiscourseAPI::getTopic has incomplete parameters list
(#400) Phpdocs for function DiscourseAPI::createTopic has incomplete parameters list
(#420) Phpdocs for function DiscourseAPI::watchTopic has incomplete parameters list
local/discoursesso/version.php
(#19) Package local is not valid

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]