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

(264 errors, 10 warnings)

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

auth/uniquelogin/auth.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) 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 "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#47) No space found before comment text; expected "// Set sessions table according to Moodle version." but found "//Set sessions table according to Moodle version."
(#62) Commas (,) must be followed by white space.
(#62) Commas (,) must be followed by white space.
(#72) Commas (,) must be followed by white space.
(#72) Commas (,) must be followed by white space.
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Whitespace found at end of line
(#76) Expected 5 space(s) before asterisk; 4 found
(#77) Expected 5 space(s) before asterisk; 4 found
(#78) Expected 5 space(s) before asterisk; 4 found
(#79) Expected 5 space(s) before asterisk; 4 found
(#82) Commas (,) must be followed by white space.
(#82) Commas (,) must be followed by white space.
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 4 spaces, found 1
(#86) Expected 2 space(s) before asterisk; 5 found
(#87) Expected 2 space(s) before asterisk; 5 found
(#88) Expected 2 space(s) before asterisk; 5 found
(#89) Expected 2 space(s) before asterisk; 5 found
(#92) Commas (,) must be followed by white space.
(#92) Commas (,) must be followed by white space.
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) No space found before comment text; expected "// This plugin never authenticates successfully an user, it always defer to other auth plugin" but found "//This plugin never authenticates successfully an user, it always defer to other auth plugin"
(#115) Commas (,) must be followed by white space.
(#126) Commas (,) must be followed by white space.
(#127) Spaces must be used to indent lines; tabs are not allowed
(#127) Tab found within whitespace
(#127) Line indented incorrectly; expected at least 8 spaces, found 5
(#127) Commas (,) must be followed by white space.
(#138) Whitespace found at end of line
(#139) Variable "sessionKey" must be all lower-case
(#140) Variable "sessionKey" must be all lower-case
(#142) Expected "} else if (...) {\n"; found "} else if(...){\n"
(#142) Expected "if (...) {\n"; found "if(...){\n"
(#143) Spaces must be used to indent lines; tabs are not allowed
(#143) Tab found within whitespace
(#143) Line indented incorrectly; expected at least 12 spaces, found 3
(#143) Commas (,) must be followed by white space.
(#144) Spaces must be used to indent lines; tabs are not allowed
(#144) Tab found within whitespace
(#144) Whitespace found at end of line
(#145) Spaces must be used to indent lines; tabs are not allowed
(#145) Tab found within whitespace
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#145) Line indented incorrectly; expected at least 12 spaces, found 3
(#145) No space found before comment text; expected "// If setting apply admin is ative" but found "//If setting apply admin is ative"
(#146) Spaces must be used to indent lines; tabs are not allowed
(#146) Tab found within whitespace
(#146) Line indented incorrectly; expected 12 spaces, found 3
(#146) Expected "if (...) {\n"; found "if(...){\n"
(#146) Expected 1 space before "=="; 0 found
(#146) Expected 1 space after "=="; 0 found
(#147) Spaces must be used to indent lines; tabs are not allowed
(#147) Tab found within whitespace
(#147) Line indented incorrectly; expected 16 spaces, found 4
(#147) Commas (,) must be followed by white space.
(#147) Commas (,) must be followed by white space.
(#148) Spaces must be used to indent lines; tabs are not allowed
(#148) Tab found within whitespace
(#148) Line indented incorrectly; expected at least 20 spaces, found 5
(#149) Spaces must be used to indent lines; tabs are not allowed
(#149) Tab found within whitespace
(#149) Line indented incorrectly; expected 16 spaces, found 4
(#149) Spaces must be used for alignment; tabs are not allowed
(#149) Tab found within whitespace
(#149) Whitespace found at end of line
(#150) Spaces must be used for alignment; tabs are not allowed
(#150) Tab found within whitespace
(#150) Line indented incorrectly; expected 12 spaces, found 3
(#151) Spaces must be used for alignment; tabs are not allowed
(#151) Tab found within whitespace
(#151) Whitespace found at end of line
(#152) Spaces must be used for alignment; tabs are not allowed
(#152) Tab found within whitespace
(#152) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) Line indented incorrectly; expected at least 12 spaces, found 3
(#152) No space found before comment text; expected "// If setting apply to teacher" but found "//If setting apply to teacher"
(#153) Spaces must be used for alignment; tabs are not allowed
(#153) Tab found within whitespace
(#153) Line indented incorrectly; expected 12 spaces, found 9
(#153) Expected "if (...) {\n"; found "if(...){\n"
(#153) Expected 1 space before "=="; 0 found
(#153) Expected 1 space after "=="; 0 found
(#154) Spaces must be used for alignment; tabs are not allowed
(#154) Tab found within whitespace
(#154) Line indented incorrectly; expected at least 16 spaces, found 10
(#155) Spaces must be used for alignment; tabs are not allowed
(#155) Tab found within whitespace
(#155) Line indented incorrectly; expected at least 16 spaces, found 4
(#155) Variable "aTeacher" must be all lower-case
(#155) Commas (,) must be followed by white space.
(#156) Spaces must be used for alignment; tabs are not allowed
(#156) Tab found within whitespace
(#156) Line indented incorrectly; expected 16 spaces, found 4
(#156) Variable "aTeacher" must be all lower-case
(#156) Variable "aTeacher" must be all lower-case
(#156) Expected 1 space before ">"; 0 found
(#156) Expected 1 space after ">"; 0 found
(#157) Spaces must be used for alignment; tabs are not allowed
(#157) Tab found within whitespace
(#157) Line indented incorrectly; expected at least 20 spaces, found 5
(#158) Spaces must be used for alignment; tabs are not allowed
(#158) Tab found within whitespace
(#158) Line indented incorrectly; expected 16 spaces, found 4
(#158) Spaces must be used for alignment; tabs are not allowed
(#158) Tab found within whitespace
(#158) Whitespace found at end of line
(#159) Spaces must be used for alignment; tabs are not allowed
(#159) Tab found within whitespace
(#159) Line indented incorrectly; expected 12 spaces, found 3
(#159) Closing brace indented incorrectly; expected 9 spaces, found 3
(#160) Spaces must be used for alignment; tabs are not allowed
(#160) Tab found within whitespace
(#160) Whitespace found at end of line
(#161) Spaces must be used for alignment; tabs are not allowed
(#161) Tab found within whitespace
(#161) Line indented incorrectly; expected at least 12 spaces, found 3
(#161) Commas (,) must be followed by white space.
(#161) Expected 1 space before "=>"; 0 found
(#161) Expected 1 space after "=>"; 0 found
(#163) Spaces must be used for alignment; tabs are not allowed
(#163) Tab found within whitespace
(#163) Line indented incorrectly; expected 12 spaces, found 3
(#164) Spaces must be used for alignment; tabs are not allowed
(#164) Tab found within whitespace
(#164) Line indented incorrectly; expected at least 16 spaces, found 4
(#165) Spaces must be used for alignment; tabs are not allowed
(#165) Tab found within whitespace
(#165) Line indented incorrectly; expected 12 spaces, found 3
(#166) Spaces must be used for alignment; tabs are not allowed
(#166) Tab found within whitespace
(#166) Whitespace found at end of line
(#166) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#167) Spaces must be used for alignment; tabs are not allowed
(#167) Tab found within whitespace
(#167) Whitespace found at end of line
(#171) Whitespace found at end of line
(#171) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#172) Spaces must be used for alignment; tabs are not allowed
(#172) Tab found within whitespace
(#172) Whitespace found at end of line
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) No space found before comment text; expected "// Is a force password" but found "//Is a force password"
(#174) Spaces must be used for alignment; tabs are not allowed
(#174) Tab found within whitespace
(#174) Line indented incorrectly; expected 12 spaces, found 3
(#174) Expected "if (...) {\n"; found "if(...){\n"
(#174) Expected 1 space before "!="; 0 found
(#174) Expected 1 space after "!="; 0 found
(#175) Spaces must be used for alignment; tabs are not allowed
(#175) Tab found within whitespace
(#175) Line indented incorrectly; expected at least 16 spaces, found 4
(#176) Spaces must be used for alignment; tabs are not allowed
(#176) Tab found within whitespace
(#176) Line indented incorrectly; expected 12 spaces, found 3
(#177) Whitespace found at end of line
(#178) Variable "sessionKey" must be all lower-case
(#179) Variable "sessionKey" must be all lower-case
(#181) Spaces must be used for alignment; tabs are not allowed
(#181) Tab found within whitespace
(#181) Line indented incorrectly; expected 8 spaces, found 2
(#181) Closing brace indented incorrectly; expected 8 spaces, found 2
(#181) Expected "} else {\n"; found "}else {\n"
(#183) Closing brace indented incorrectly; expected 2 spaces, found 8
(#194) Variable "sessionKey" must be all lower-case
(#195) Spaces must be used for alignment; tabs are not allowed
(#195) Tab found within whitespace
(#195) Line indented incorrectly; expected 8 spaces, found 2
(#196) Spaces must be used for alignment; tabs are not allowed
(#196) Tab found within whitespace
(#196) Line indented incorrectly; expected at least 12 spaces, found 3
(#196) Variable "sessionKey" must be all lower-case
(#197) Spaces must be used for alignment; tabs are not allowed
(#197) Tab found within whitespace
(#197) Line indented incorrectly; expected 8 spaces, found 2
(#197) Expected "} else {\n"; found "}else{\n"
(#198) Spaces must be used for alignment; tabs are not allowed
(#198) Tab found within whitespace
(#198) Line indented incorrectly; expected at least 12 spaces, found 3
(#199) Spaces must be used for alignment; tabs are not allowed
(#199) Tab found within whitespace
(#199) Line indented incorrectly; expected at least 12 spaces, found 3
(#199) Variable "sessionKey" must be all lower-case
(#200) Spaces must be used for alignment; tabs are not allowed
(#200) Tab found within whitespace
(#200) Line indented incorrectly; expected 8 spaces, found 2
(#201) Whitespace found at end of line
(#203) Whitespace found at end of line
(#204) Spaces must be used for alignment; tabs are not allowed
(#204) Tab found within whitespace
(#204) Line indented incorrectly; expected 4 spaces, found 1
(#204) Opening brace must be the last content on the line
(#204) Closing brace must be on a line by itself
(#207) A closing tag is not permitted at the end of a PHP file
auth/uniquelogin/lang/en/auth_uniquelogin.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#10) A closing tag is not permitted at the end of a PHP file
auth/uniquelogin/lang/pt/auth_uniquelogin.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#11) A closing tag is not permitted at the end of a PHP file
auth/uniquelogin/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) 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/>.".
(#6) Line exceeds 132 characters; contains 136 characters
(#8) Whitespace found at end of line
(#9) Spaces must be used to indent lines; tabs are not allowed
(#9) Tab found within whitespace
(#9) Line indented incorrectly; expected at least 4 spaces, found 1
(#9) Line exceeds 132 characters; contains 137 characters
auth/uniquelogin/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Line exceeds 132 characters; contains 139 characters
(#31) No space found before comment text; expected "// time interval (in seconds) between calls to the plugin's 'cron' function; set to 0 to disable the cron function calls." but found "//time interval (in seconds) between calls to the plugin's 'cron' function; set to 0 to disable the cron function calls."
(#32) Whitespace found at end of line
(#33) Whitespace found at end of line
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) This comment is 53% valid code; is this commented out code?
(#34) No space found before comment text; expected "// $plugin->dependencies = array ('mod_forum' => ANY_VERSION, 'mod_data' => 2010020300);" but found "//$plugin->dependencies = array ('mod_forum' => ANY_VERSION, 'mod_data' => 2010020300);"
(#34) Whitespace found at end of line

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

(13 errors, 2 warnings)

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

auth/uniquelogin/auth.php
(#204) Function auth_plugin_uniquelogin::has_config is not documented
(#27) Variable auth_plugin_uniquelogin::$sessionstable is not documented
(#109) Phpdocs for function auth_plugin_uniquelogin::user_authenticated_hook has incomplete parameters list
(#123) Phpdocs for function auth_plugin_uniquelogin::uniquelogin_logout_user has incomplete parameters list
(#190) Phpdocs for function auth_plugin_uniquelogin::uniquelogin_end_dbsession_by_sesskey has incomplete parameters list
(#2) File-level phpdocs block does not have @copyright tag
(#22) Class auth_plugin_uniquelogin does not have @copyright tag
(#22) Class auth_plugin_uniquelogin does not have @license tag
(#5) Package moodle multiauth is not valid
auth/uniquelogin/lang/en/auth_uniquelogin.php
(#2) File-level phpdocs block is not found
auth/uniquelogin/lang/pt/auth_uniquelogin.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
auth/uniquelogin/settings.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
auth/uniquelogin/version.php
(#20) Package auth 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]