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

(118 errors, 33 warnings)

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

blocks/poll/block_poll.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#22) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#22) Scope modifier not specified for member variable "$poll"
(#22) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#22) Scope modifier not specified for member variable "$options"
(#54) Line exceeds 132 characters; contains 147 characters
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Line exceeds 132 characters; contains 150 characters
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) No space found before comment text; expected "// TODO: Renderer/html_writer-ify" but found "//TODO: Renderer/html_writer-ify"
(#84) Line exceeds 132 characters; contains 134 characters
(#93) Expected "if (...) {\n"; found "if (...) { "
(#93) Closing brace must be on a line by itself
(#101) Inline comments must start with a capital letter, digit or 3-dots sequence
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) No space found before comment text; expected "// default to 150px, prevent division by zero" but found "//default to 150px, prevent division by zero"
(#114) Expected "if (...) {\n"; found "if(...)\n {\n"
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) No space found before comment text; expected "// TODO: html_table" but found "//TODO: html_table"
blocks/poll/db/access.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.
blocks/poll/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Expected MOODLE_INTERNAL check or config.php inclusion
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) 3 slashes comments are not allowed; use "// Comment." instead
blocks/poll/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion
(#34) Line exceeds 132 characters; contains 140 characters
blocks/poll/lang/da_utf8/block_poll.php
(#1) This comment is 45% valid code; is this commented out code?
(#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) Whitespace found at end of line
(#2) Line 2 of the opening comment must start "//".
(#2) Inline comments must end in full-stops, exclamation marks, or question marks
(#2) 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".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#5) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#5) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) 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/>.".
(#24) A closing tag is not permitted at the end of a PHP file
blocks/poll/lang/de/block_poll.php
(#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/>.".
blocks/poll/lang/en/block_poll.php
(#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/>.".
blocks/poll/lang/es_utf8/block_poll.php
(#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/>.".
(#21) A closing tag is not permitted at the end of a PHP file
blocks/poll/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/poll/poll_action.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#31) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#31) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#31) Line exceeds 132 characters; contains 167 characters
(#32) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#34) Line exceeds 132 characters; contains 140 characters
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) No space found before comment text; expected "// only allow one way setting of anonymous" but found "//only allow one way setting of anonymous"
blocks/poll/tab_editpoll.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Expected "if (...) {\n"; found "if(...) {\n"
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// TODO: Renderify" but found "//TODO: Renderify"
(#45) Variable "poll_options" must not contain underscores.
(#46) Variable "poll_option_count" must not contain underscores.
(#46) Variable "poll_options" must not contain underscores.
(#46) Variable "poll_options" must not contain underscores.
(#59) Empty FOR statement detected
(#70) Line exceeds 132 characters; contains 165 characters
(#71) Line exceeds 132 characters; contains 166 characters
(#75) Variable "poll_option_count" must not contain underscores.
(#75) Line exceeds 132 characters; contains 134 characters
(#77) Variable "option_count" must not contain underscores.
(#78) Expected "if (...) {\n"; found "if(...) {\n"
(#78) Variable "poll_options" must not contain underscores.
(#79) Variable "poll_options" must not contain underscores.
(#80) Variable "option_count" must not contain underscores.
(#81) Variable "option_count" must not contain underscores.
(#81) Line exceeds 132 characters; contains 173 characters
(#84) Variable "option_count" must not contain underscores.
(#84) Variable "poll_option_count" must not contain underscores.
blocks/poll/tab_managepolls.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) No space found before comment text; expected "// TODO: Use html_table" but found "//TODO: Use html_table"
(#44) Variable "url_preview" must not contain underscores.
(#45) Variable "url_preview" must not contain underscores.
(#46) Variable "url_edit" must not contain underscores.
(#47) Variable "url_edit" must not contain underscores.
(#48) Variable "url_delete" must not contain underscores.
(#48) Line exceeds 132 characters; contains 161 characters
(#50) Variable "url_preview" must not contain underscores.
(#51) Variable "url_edit" must not contain underscores.
(#52) Variable "url_delete" must not contain underscores.
blocks/poll/tab_responses.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Line exceeds 132 characters; contains 160 characters
(#34) Expected "if (...) {\n"; found "if(...) {\n"
(#45) Line exceeds 132 characters; contains 151 characters
(#60) Line exceeds 132 characters; contains 165 characters
blocks/poll/tabs.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) No space found before comment text; expected "// TODO: Stringify" but found "//TODO: Stringify"
(#65) File is being unconditionally included; use "require" instead
blocks/poll/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(0 errors, 5 warnings)

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

blocks/poll/module.js
(#18) 'pid' is defined but never used.
(#18) 'action' is defined but never used.
(#19) 'Y' is defined but never used.
(#22) 'event' is defined but never used.
(#22) 'node' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(49 errors, 12 warnings)

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

blocks/poll/block_poll.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#20) Class block_poll is not documented
(#24) Function block_poll::init is not documented
(#29) Function block_poll::instance_allow_config is not documented
(#33) Function block_poll::specialization is not documented
(#41) Function block_poll::poll_can_edit is not documented
(#45) Function block_poll::poll_user_eligible is not documented
(#66) Function block_poll::poll_results_link is not documented
(#73) Function block_poll::poll_print_options is not documented
(#87) Function block_poll::poll_get_results is not documented
(#96) Function block_poll::poll_print_results is not documented
(#108) Function block_poll::get_content is not documented
(#22) Variable block_poll::$poll is not documented
(#22) Variable block_poll::$options is not documented
(#20) Package is not specified for class block_poll. It is also not specified in file-level phpdocs
blocks/poll/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/poll/db/upgrade.php
(#2) Empty line found after PHP open tag
(#) File-level phpdocs block is not found
(#35) Function xmldb_block_poll_upgrade is not documented
(#39) Found comment starting with three or more slashes
(#35) Package is not specified for function xmldb_block_poll_upgrade. It is also not specified in file-level phpdocs
blocks/poll/edit_form.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#18) Class block_poll_edit_form is not documented
(#19) Function block_poll_edit_form::specific_definition is not documented
(#18) Package is not specified for class block_poll_edit_form. It is also not specified in file-level phpdocs
blocks/poll/lang/da_utf8/block_poll.php
(#2) Empty line found after PHP open tag
(#5) File-level phpdocs block is not found
blocks/poll/lang/de/block_poll.php
(#2) File-level phpdocs block is not found
blocks/poll/lang/en/block_poll.php
(#2) File-level phpdocs block is not found
blocks/poll/lang/es_utf8/block_poll.php
(#2) File-level phpdocs block is not found
blocks/poll/lib.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#18) Function poll_sort_callback is not documented
(#22) Function poll_sort_results is not documented
(#26) Function poll_get_graphbar is not documented
(#18) Package is not specified for function poll_sort_callback. It is also not specified in file-level phpdocs
(#22) Package is not specified for function poll_sort_results. It is also not specified in file-level phpdocs
(#26) Package is not specified for function poll_get_graphbar. It is also not specified in file-level phpdocs
blocks/poll/poll_action.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#38) Function test_allowed_to_update is not documented
(#38) Package is not specified for function test_allowed_to_update. It is also not specified in file-level phpdocs
blocks/poll/tab_editpoll.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
blocks/poll/tab_managepolls.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#18) Function print_action is not documented
(#18) Package is not specified for function print_action. It is also not specified in file-level phpdocs
blocks/poll/tab_responses.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#20) Function poll_custom_callback is not documented
(#26) Function block_poll_get_response_checks is not documented
(#20) Package is not specified for function poll_custom_callback. It is also not specified in file-level phpdocs
(#26) Package is not specified for function block_poll_get_response_checks. It is also not specified in file-level phpdocs
blocks/poll/tabs.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
blocks/poll/version.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found

Update savepoints problems

(2 errors, 0 warnings)

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

blocks/poll/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2011041400 is missing corresponding savepoint call

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]