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

(180 errors, 9 warnings)

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

blocks/userexpire/block_userexpire.php
(#1) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1) Line 1 of the opening comment must start "// This file is part of".
(#1) No space found before comment text; expected "// $Id: block_userexpire.php,v 1.0 2016-02-22 22:00:00 jrader Exp $" but found "//$Id: block_userexpire.php,v 1.0 2016-02-22 22:00:00 jrader Exp $"
(#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".
(#4) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#5) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#6) Line 6 of the opening comment must start "// (at your option) any later version.".
(#8) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#9) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#10) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#11) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#13) 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/>.".
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) Visibility must be declared on method "init"
(#31) Commas (,) must be followed by white space.
(#34) Visibility must be declared on method "get_content"
(#36) Whitespace found at end of line
(#38) Whitespace found at end of line
(#39) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#47) Spaces must be used to indent lines; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected 12 spaces, found 3
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected at least 16 spaces, found 4
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Whitespace found at end of line
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 16 spaces, found 4
(#53) Short array syntax must be used to define arrays
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected at least 16 spaces, found 4
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected 16 spaces, found 4
(#55) Expected 1 space before ">"; 0 found
(#55) Expected 1 space after ">"; 0 found
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 20 spaces, found 5
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 20 spaces, found 5
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 20 spaces, found 6
(#58) Commas (,) must be followed by white space.
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 20 spaces, found 6
(#59) Expected 1 space before "/"; 0 found
(#59) Expected 1 space after "/"; 0 found
(#59) Expected 1 space before "*"; 0 found
(#59) Expected 1 space after "*"; 0 found
(#59) Expected 1 space before "*"; 0 found
(#59) Expected 1 space after "*"; 0 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 20 spaces, found 6
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 20 spaces, found 6
(#61) Expected 1 space before "%"; 0 found
(#61) Expected 1 space after "%"; 0 found
(#61) Expected 1 space before "*"; 0 found
(#61) Expected 1 space after "*"; 0 found
(#61) Expected 1 space before "*"; 0 found
(#61) Expected 1 space after "*"; 0 found
(#61) Expected 1 space before "/"; 0 found
(#61) Expected 1 space after "/"; 0 found
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 20 spaces, found 6
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 20 spaces, found 5
(#63) Commas (,) must be followed by white space.
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected 16 spaces, found 4
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected at least 20 spaces, found 5
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 20 spaces, found 5
(#66) Short array syntax must be used to define arrays
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 20 spaces, found 6
(#68) Spaces must be used to indent lines; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected 16 spaces, found 4
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected 12 spaces, found 3
(#70) Line indented incorrectly; expected 8 spaces, found 7
(#70) Closing brace indented incorrectly; expected 8 spaces, found 7
(#70) Whitespace found at end of line
(#75) Visibility must be declared on method "applicable_formats"
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Line indented incorrectly; expected at least 8 spaces, found 1
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected at least 8 spaces, found 2
(#77) Short array syntax must be used to define arrays
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 8 spaces, found 3
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected at least 8 spaces, found 3
(#79) Whitespace found at end of line
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 8 spaces, found 3
(#80) There should be a comma after the last array item in a multi-line array.
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected at least 8 spaces, found 2
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected 4 spaces, found 1
(#82) Closing brace indented incorrectly; expected 4 spaces, found 1
(#84) File must end with a newline character
(#84) A closing tag is not permitted at the end of a PHP file
blocks/userexpire/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) Line 2 of the opening comment must start "//".
(#2) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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) Short array syntax must be used to define arrays
(#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,".
(#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/>.".
(#4) Short array syntax must be used to define arrays
(#9) Short array syntax must be used to define arrays
(#11) There should be a comma after the last array item in a multi-line array.
(#14) There should be a comma after the last array item in a multi-line array.
(#16) Line indented incorrectly; expected at least 4 spaces, found 0
(#16) File must end with a newline character
blocks/userexpire/lang/en/block_userexpire.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Whitespace found at end of line
(#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.".
(#3) Line 12 of the opening comment must start "//".
(#3) Whitespace found at end of line
(#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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#5) No space found before comment text; expected "// 'l jS \of F j, Y h:i:s A';" but found "//'l jS \of F j, Y h:i:s A';"
(#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) A closing tag is not permitted at the end of a PHP file
blocks/userexpire/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#28) 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 eslint [More info]


CSS problems

(4 errors, 0 warnings)

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

blocks/userexpire/styles.css
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#2) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(7 errors, 9 warnings)

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

blocks/userexpire/block_userexpire.php
(#2) Empty line found after PHP open tag
(#28) Class block_userexpire is not documented
(#30) Function block_userexpire::init is not documented
(#34) Function block_userexpire::get_content is not documented
(#75) Function block_userexpire::applicable_formats is not documented
(#18) No one-line description found in phpdocs for file
(#24) Not recommended phpdocs tag @version used
(#20) Package moodlecore is not valid
blocks/userexpire/db/access.php
(#2) Empty line found after PHP open tag
(#2) File-level phpdocs block is not found
blocks/userexpire/lang/en/block_userexpire.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/userexpire/version.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#24) Not recommended phpdocs tag @version used
(#20) Package moodlecore 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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]