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

(234 errors, 1 warnings)

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

blocks/moodleversion/block_moodleversion.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) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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) Whitespace found at end of line
(#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".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Spaces must be used to indent lines; tabs are not allowed
(#4) Tab found within whitespace
(#4) Line 12 of the opening comment must start "//".
(#4) Line indented incorrectly; expected 4 spaces, found 1
(#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/>.".
(#4) Whitespace found at end of line
(#5) Spaces must be used to indent lines; tabs are not allowed
(#5) Tab found within whitespace
(#5) Line indented incorrectly; expected at least 4 spaces, found 1
(#5) Opening brace should be on the same line as the declaration
(#6) Spaces must be used to indent lines; tabs are not allowed
(#6) Tab found within whitespace
(#6) Line indented incorrectly; expected at least 8 spaces, found 2
(#7) Spaces must be used to indent lines; tabs are not allowed
(#7) Tab found within whitespace
(#7) Line indented incorrectly; expected 4 spaces, found 1
(#8) Spaces must be used to indent lines; tabs are not allowed
(#8) Tab found within whitespace
(#8) Line indented incorrectly; expected 4 spaces, found 1
(#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) Opening brace should be on the same line as the declaration
(#10) Spaces must be used to indent lines; tabs are not allowed
(#10) Tab found within whitespace
(#10) Line indented incorrectly; expected at least 8 spaces, found 2
(#11) Spaces must be used to indent lines; tabs are not allowed
(#11) Tab found within whitespace
(#11) Whitespace found at end of line
(#12) Spaces must be used to indent lines; tabs are not allowed
(#12) Tab found within whitespace
(#12) Line indented incorrectly; expected 8 spaces, found 2
(#12) Expected "if (...) {\n"; found "if (...) \n\t\t{\n"
(#12) Whitespace found at end of line
(#13) Spaces must be used to indent lines; tabs are not allowed
(#13) Tab found within whitespace
(#13) Line indented incorrectly; expected at least 8 spaces, found 2
(#14) Spaces must be used to indent lines; tabs are not allowed
(#14) Tab found within whitespace
(#14) Line indented incorrectly; expected at least 12 spaces, found 3
(#15) Spaces must be used to indent lines; tabs are not allowed
(#15) Tab found within whitespace
(#15) Line indented incorrectly; expected 8 spaces, found 2
(#16) Spaces must be used to indent lines; tabs are not allowed
(#16) Tab found within whitespace
(#16) Whitespace found at end of line
(#17) Spaces must be used to indent lines; tabs are not allowed
(#17) Tab found within whitespace
(#17) Line indented incorrectly; expected at least 8 spaces, found 2
(#17) Expected 1 space before "-"; 0 found
(#17) Expected 1 space after "-"; 0 found
(#18) Spaces must be used to indent lines; tabs are not allowed
(#18) Tab found within whitespace
(#18) Line indented incorrectly; expected at least 8 spaces, found 2
(#19) Spaces must be used to indent lines; tabs are not allowed
(#19) Tab found within whitespace
(#19) Line indented incorrectly; expected at least 8 spaces, found 2
(#20) Spaces must be used to indent lines; tabs are not allowed
(#20) Tab found within whitespace
(#20) Line indented incorrectly; expected at least 8 spaces, found 2
(#21) Spaces must be used to indent lines; tabs are not allowed
(#21) Tab found within whitespace
(#21) Line indented incorrectly; expected at least 8 spaces, found 2
(#22) Spaces must be used to indent lines; tabs are not allowed
(#22) Tab found within whitespace
(#22) Line indented incorrectly; expected at least 8 spaces, found 2
(#23) Spaces must be used to indent lines; tabs are not allowed
(#23) Tab found within whitespace
(#23) Whitespace found at end of line
(#24) Spaces must be used to indent lines; tabs are not allowed
(#24) Tab found within whitespace
(#24) Line indented incorrectly; expected at least 8 spaces, found 2
(#24) Expected 1 space after "="; 2 found
(#25) Spaces must be used to indent lines; tabs are not allowed
(#25) Tab found within whitespace
(#25) Line indented incorrectly; expected at least 8 spaces, found 2
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Line indented incorrectly; expected at least 8 spaces, found 2
(#26) Line exceeds 132 characters; contains 148 characters
(#27) Spaces must be used to indent lines; tabs are not allowed
(#27) Tab found within whitespace
(#27) Line indented incorrectly; expected at least 8 spaces, found 2
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#28) Line indented incorrectly; expected at least 8 spaces, found 2
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#29) Whitespace found at end of line
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#30) Line indented incorrectly; expected at least 8 spaces, found 2
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
(#31) Line indented incorrectly; expected 4 spaces, found 1
(#33) A closing tag is not permitted at the end of a PHP file
blocks/moodleversion/db/access.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) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Spaces must be used to indent lines; tabs are not allowed
(#4) Tab found within whitespace
(#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/>.".
(#5) Spaces must be used to indent lines; tabs are not allowed
(#5) Tab found within whitespace
(#6) Spaces must be used to indent lines; tabs are not allowed
(#6) Tab found within whitespace
(#7) Spaces must be used to indent lines; tabs are not allowed
(#7) Tab found within whitespace
(#8) Spaces must be used to indent lines; tabs are not allowed
(#8) Tab found within whitespace
(#9) Spaces must be used to indent lines; tabs are not allowed
(#9) Tab found within whitespace
(#10) Spaces must be used to indent lines; tabs are not allowed
(#10) Tab found within whitespace
(#11) Spaces must be used to indent lines; tabs are not allowed
(#11) Tab found within whitespace
(#12) Spaces must be used to indent lines; tabs are not allowed
(#12) Tab found within whitespace
(#13) Spaces must be used to indent lines; tabs are not allowed
(#13) Tab found within whitespace
(#15) Spaces must be used to indent lines; tabs are not allowed
(#15) Tab found within whitespace
(#16) Spaces must be used to indent lines; tabs are not allowed
(#16) Tab found within whitespace
(#17) Spaces must be used to indent lines; tabs are not allowed
(#17) Tab found within whitespace
(#18) Spaces must be used to indent lines; tabs are not allowed
(#18) Tab found within whitespace
(#19) Spaces must be used to indent lines; tabs are not allowed
(#19) Tab found within whitespace
(#20) Spaces must be used to indent lines; tabs are not allowed
(#20) Tab found within whitespace
(#21) Spaces must be used to indent lines; tabs are not allowed
(#21) Tab found within whitespace
(#22) Spaces must be used to indent lines; tabs are not allowed
(#22) Tab found within whitespace
(#23) Spaces must be used to indent lines; tabs are not allowed
(#23) Tab found within whitespace
(#24) Spaces must be used to indent lines; tabs are not allowed
(#24) Tab found within whitespace
(#25) Spaces must be used to indent lines; tabs are not allowed
(#25) Tab found within whitespace
(#27) A closing tag is not permitted at the end of a PHP file
blocks/moodleversion/lang/en/block_moodleversion.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
blocks/moodleversion/lang/es/block_moodleversion.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
blocks/moodleversion/lang/pt_br/block_moodleversion.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/>.".
(#10) A closing tag is not permitted at the end of a PHP file
blocks/moodleversion/version.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) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#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".
(#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/>.".

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, 0 warnings)

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


PHPDocs style problems

(10 errors, 4 warnings)

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

blocks/moodleversion/block_moodleversion.php
(#2) File-level phpdocs block is not found
(#2) Class block_moodleversion is not documented
(#4) Function block_moodleversion::init is not documented
(#8) Function block_moodleversion::get_content is not documented
(#2) Package is not specified for class block_moodleversion. It is also not specified in file-level phpdocs
blocks/moodleversion/db/access.php
(#2) File-level phpdocs block is not found
blocks/moodleversion/lang/en/block_moodleversion.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/moodleversion/lang/es/block_moodleversion.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/moodleversion/lang/pt_br/block_moodleversion.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/moodleversion/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


Mustache template problems

(0 errors, 0 warnings)

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