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

(206 errors, 52 warnings)

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

blocks/dictionary/add.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#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
(#25) Expected "if (...) {\n"; found "if (...)\n{\n"
(#35) 3 slashes comments are not allowed; use "// Comment." instead
(#35) Whitespace found at end of line
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) 3 slashes comments are not allowed; use "// Comment." instead
(#36) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#39) Expected "if (...) {\n"; found "if (...)\n{ // data was submitted to be mailed\n"
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Expected "if (...) {\n"; found "if (...)\n {\n"
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Expected "if (...) {\n"; found "if (...)\n {\n"
(#77) Line exceeds 132 characters; contains 157 characters
(#78) Line exceeds 132 characters; contains 164 characters
(#79) Line exceeds 132 characters; contains 164 characters
(#80) Line exceeds 132 characters; contains 164 characters
(#81) Line exceeds 132 characters; contains 164 characters
(#82) Line exceeds 132 characters; contains 159 characters
(#83) Line exceeds 132 characters; contains 159 characters
(#84) Line exceeds 132 characters; contains 159 characters
(#85) Line exceeds 132 characters; contains 159 characters
(#86) Line exceeds 132 characters; contains 159 characters
(#87) Line exceeds 132 characters; contains 162 characters
(#88) Line exceeds 132 characters; contains 162 characters
(#89) Line exceeds 132 characters; contains 162 characters
blocks/dictionary/block_dictionary.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#20) Expected MOODLE_INTERNAL check or config.php inclusion
(#24) Whitespace found at end of line
(#26) Visibility must be declared on method "init"
(#27) Opening brace should be on the same line as the declaration
(#35) Visibility must be declared on method "instance_allow_multiple"
(#36) Opening brace should be on the same line as the declaration
(#49) Visibility must be declared on method "get_content"
(#50) Opening brace should be on the same line as the declaration
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) No space found before comment text; expected "// If no record returned create an empty one" but found "//If no record returned create an empty one"
(#56) Expected "if (...) {\n"; found "if (...)\n {\n"
(#62) Expected "if (...) {\n"; found "if (...)\n {\n"
(#66) Expected "} else {\n"; found "}\n else\n {\n"
(#68) Expected "if (...) {\n"; found "if (...)\n {\n"
(#72) Usage of ELSEIF not allowed; use ELSE IF instead
(#76) Usage of ELSEIF not allowed; use ELSE IF instead
(#80) Usage of ELSEIF not allowed; use ELSE IF instead
(#84) Usage of ELSEIF not allowed; use ELSE IF instead
(#88) Usage of ELSEIF not allowed; use ELSE IF instead
(#92) Usage of ELSEIF not allowed; use ELSE IF instead
(#96) Usage of ELSEIF not allowed; use ELSE IF instead
(#100) Usage of ELSEIF not allowed; use ELSE IF instead
(#104) Expected "} else {\n"; found "}\n else\n {\n"
(#110) Expected "if (...) {\n"; found "if (...)\n {\n"
(#112) Expected "if (...) {\n"; found "if (...)\n {\n"
(#112) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) 3 slashes comments are not allowed; use "// Comment." instead
(#124) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#127) Inline comments must start with a capital letter, digit or 3-dots sequence
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) 3 slashes comments are not allowed; use "// Comment." instead
(#128) Expected "if (...) {\n"; found "if (...)\n {\n"
(#130) Line exceeds 132 characters; contains 169 characters
(#132) Expected "} else {\n"; found "}\n else\n {\n"
(#134) Line exceeds 132 characters; contains 178 characters
(#136) Spaces must be used to indent lines; tabs are not allowed
(#136) Tab found within whitespace
(#136) Whitespace found at end of line
(#137) Spaces must be used to indent lines; tabs are not allowed
(#137) Tab found within whitespace
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Line indented incorrectly; expected at least 12 spaces, found 3
(#137) No space found before comment text; expected "// Link to documentation" but found "//Link to documentation"
(#138) Spaces must be used to indent lines; tabs are not allowed
(#138) Tab found within whitespace
(#138) Line indented incorrectly; expected at least 12 spaces, found 3
(#138) Line exceeds 132 characters; contains 152 characters
(#140) Expected "} else {\n"; found "}\n else\n {\n"
(#147) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) 3 slashes comments are not allowed; use "// Comment." instead
(#148) Line exceeds 132 characters; contains 134 characters
(#149) Line exceeds 132 characters; contains 136 characters
(#151) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#161) Whitespace found at end of line
(#163) Visibility must be declared on method "instance_delete"
(#164) Opening brace should be on the same line as the declaration
(#168) Whitespace found at end of line
(#170) Expected 9 space(s) before asterisk; 5 found
(#171) Expected 9 space(s) before asterisk; 5 found
(#172) Expected 9 space(s) before asterisk; 5 found
(#173) Visibility must be declared on method "applicable_formats"
(#178) Whitespace found at end of line
(#180) Expected 1 space before "=>"; 0 found
(#180) Expected 1 space after "=>"; 0 found
(#180) Expected 1 space before "=>"; 0 found
(#182) Whitespace found at end of line
blocks/dictionary/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/dictionary/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#21) Inline comments must start with a capital letter, digit or 3-dots sequence
(#21) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) No space found before comment text; expected "// Added new wikipedia languages" but found "//Added new wikipedia languages"
(#25) No space found before comment text; expected "// Added User guide link" but found "//Added User guide link"
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) No space found before comment text; expected "// Added more dictionaries" but found "//Added more dictionaries"
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) No space found before comment text; expected "// Update logo for Moodle 2.4" but found "//Update logo for Moodle 2.4"
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) No space found before comment text; expected "// Update logo for Moodle 2.6" but found "//Update logo for Moodle 2.6"
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#68) No space found before comment text; expected "// Update for Moodle 2.8" but found "//Update for Moodle 2.8"
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/dictionary/edit.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/>.".
(#15) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#15) Whitespace found at end of line
(#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
(#26) Expected "if (...) {\n"; found "if (...)\n{\n"
(#35) 3 slashes comments are not allowed; use "// Comment." instead
(#35) Whitespace found at end of line
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) 3 slashes comments are not allowed; use "// Comment." instead
(#36) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#39) Expected "if (...) {\n"; found "if (...)\n{ // data was submitted to be mailed\n"
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Expected "if (...) {\n"; found "if (...)\n {\n"
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Expected "if (...) {\n"; found "if (...)\n {\n"
(#83) Line indented incorrectly; expected 20 spaces, found 0
(#83) Expected "if (...) {\n"; found "if (...)\n{\n"
(#84) Line indented incorrectly; expected at least 20 spaces, found 0
(#85) Line indented incorrectly; expected at least 24 spaces, found 4
(#86) Line indented incorrectly; expected 20 spaces, found 0
(#89) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#93) Expected "if (...) {\n"; found "if (...)\n {\n"
(#99) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#103) Expected "if (...) {\n"; found "if (...)\n {\n"
(#110) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#114) Expected "if (...) {\n"; found "if (...)\n {\n"
(#121) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#125) Expected "if (...) {\n"; found "if (...)\n {\n"
(#132) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#136) Expected "if (...) {\n"; found "if (...)\n {\n"
(#142) Expected "if (...) {\n"; found "if (...)\n { ?>\n"
(#146) Expected "if (...) {\n"; found "if (...)\n {\n"
(#152) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#156) Expected "if (...) {\n"; found "if (...)\n {\n"
(#162) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#166) Expected "if (...) {\n"; found "if (...)\n {\n"
(#172) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#176) Expected "if (...) {\n"; found "if (...)\n {\n"
(#182) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#186) Expected "if (...) {\n"; found "if (...)\n {\n"
(#192) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#196) Expected "if (...) {\n"; found "if (...)\n {\n"
(#202) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#206) Expected "if (...) {\n"; found "if (...)\n {\n"
(#212) Expected "if (...) {\n"; found "if (...)\n{ ?>\n"
(#216) Expected "if (...) {\n"; found "if (...)\n {\n"
(#224) Expected 1 space before "=="; 0 found
(#224) Expected 1 space after "=="; 0 found
(#224) Expected 1 space before "?"; 0 found
(#224) Expected 1 space after "?"; 0 found
(#224) Expected 1 space before ":"; 0 found
(#224) Expected 1 space after ":"; 0 found
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#224) Line exceeds maximum limit of 180 characters; contains 183 characters
(#231) Whitespace found at end of line
blocks/dictionary/lang/en/block_dictionary.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/dictionary/lang/fr/block_dictionary.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/dictionary/lang/fr_ca/block_dictionary.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/dictionary/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#16) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

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

(28 errors, 25 warnings)

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

blocks/dictionary/add.php
(#2) Empty line found after PHP open tag
(#35) Found comment starting with three or more slashes
(#36) Found comment starting with three or more slashes
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/block_dictionary.php
(#2) Empty line found after PHP open tag
(#122) Found comment starting with three or more slashes
(#127) Found comment starting with three or more slashes
(#147) Found comment starting with three or more slashes
(#3) No one-line description found in phpdocs for file
(#17) Class block_dictionary does not have @copyright tag
(#17) Class block_dictionary does not have @license tag
(#9) Not recommended phpdocs tag @name used
(#42) Not recommended phpdocs tag @global used
(#42) Not recommended phpdocs tag @global used
(#42) Not recommended phpdocs tag @global used
(#42) Not recommended phpdocs tag @global used
(#42) Not recommended phpdocs tag @global used
(#158) Not recommended phpdocs tag @global used
(#158) Not recommended phpdocs tag @global used
(#158) Not recommended phpdocs tag @global used
(#7) Package block ** is not valid
blocks/dictionary/db/access.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/db/upgrade.php
(#2) Empty line found after PHP open tag
(#18) Function xmldb_block_dictionary_upgrade is not documented
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/edit.php
(#35) Found comment starting with three or more slashes
(#36) Found comment starting with three or more slashes
(#2) No one-line description found in phpdocs for file
(#8) Not recommended phpdocs tag @name used
(#6) Package block ** is not valid
blocks/dictionary/lang/en/block_dictionary.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/lang/fr/block_dictionary.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/lang/fr_ca/block_dictionary.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** is not valid
blocks/dictionary/version.php
(#2) Empty line found after PHP open tag
(#3) No one-line description found in phpdocs for file
(#9) Not recommended phpdocs tag @name used
(#7) Package block ** 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]


Mustache template problems

(0 errors, 0 warnings)

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