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

(80 errors, 12 warnings)

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

blocks/bcu_course_checks/block_bcu_course_checks.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#29) Whitespace found at end of line
(#31) Whitespace found at end of line
(#35) Whitespace found at end of line
(#37) Whitespace found at end of line
(#69) Whitespace found at end of line
(#87) Whitespace found at end of line
(#88) Line exceeds maximum limit of 180 characters; contains 181 characters
(#89) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#90) Line exceeds 132 characters; contains 136 characters
(#92) Whitespace found at end of line
blocks/bcu_course_checks/db/caches.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/bcu_course_checks/edit_form.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#46) Line exceeds 132 characters; contains 133 characters
(#61) Whitespace found at end of line
(#62) Line exceeds 132 characters; contains 134 characters
blocks/bcu_course_checks/locallib.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#144) Whitespace found at end of line
(#179) Whitespace found at end of line
(#181) Whitespace found at end of line
(#182) Expected 1 space before "=>"; 0 found
(#182) Expected 1 space after "=>"; 0 found
(#183) Whitespace found at end of line
(#184) Expected "if (...) {\n"; found "if(...) {\n"
(#189) Whitespace found at end of line
(#190) Line exceeds maximum limit of 180 characters; contains 212 characters
(#191) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#193) Whitespace found at end of line
(#194) Expected "if (...) {\n"; found "if(...) {\n"
(#194) Expected 1 space before ">"; 0 found
(#194) Expected 1 space after ">"; 0 found
(#199) Whitespace found at end of line
(#200) Expected 1 space before "=>"; 0 found
(#200) Expected 1 space after "=>"; 0 found
(#200) Expected 1 space before "=>"; 0 found
(#200) Expected 1 space after "=>"; 0 found
(#200) Expected 1 space before "=>"; 0 found
(#200) Expected 1 space after "=>"; 0 found
(#200) Line exceeds maximum limit of 180 characters; contains 319 characters
(#201) Expected 1 space before "=>"; 0 found
(#201) Expected 1 space after "=>"; 0 found
(#202) Expected 1 space before "=>"; 0 found
(#202) Expected 1 space after "=>"; 0 found
(#204) Whitespace found at end of line
(#206) Whitespace found at end of line
(#207) Expected 1 space before "=>"; 0 found
(#207) Expected 1 space after "=>"; 0 found
(#207) Expected 1 space before "=>"; 0 found
(#207) Expected 1 space after "=>"; 0 found
blocks/bcu_course_checks/renderer.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Expected "if (...) {\n"; found "if(...) {\n"
(#61) Line exceeds 132 characters; contains 154 characters
(#62) Expected "if (...) {\n"; found "if(...) {\n"
(#70) Expected "if (...) {\n"; found "if(...) {\n"
(#76) Line exceeds 132 characters; contains 154 characters
(#77) Expected "if (...) {\n"; found "if(...) {\n"
(#84) Line exceeds 132 characters; contains 150 characters
(#85) Expected "if (...) {\n"; found "if(...) {\n"
(#89) Expected "if (...) {\n"; found "if(...) {\n"
(#89) Expected 1 space before ">"; 0 found
(#89) Expected 1 space after ">"; 0 found
(#92) Whitespace found at end of line
(#94) Whitespace found at end of line
(#97) Whitespace found at end of line
(#97) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#98) Whitespace found at end of line
(#101) Line exceeds 132 characters; contains 152 characters
(#103) Whitespace found at end of line
(#103) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#104) Whitespace found at end of line
(#110) Expected "if (...) {\n"; found "if(...) {\n"
(#115) Whitespace found at end of line
(#116) Whitespace found at end of line
(#118) Whitespace found at end of line
(#119) Expected "if (...) {\n"; found "if(...) {\n"
(#121) Line exceeds 132 characters; contains 155 characters
(#123) Whitespace found at end of line
(#126) Whitespace found at end of line
(#128) Line exceeds 132 characters; contains 156 characters
(#130) Whitespace found at end of line
(#133) Whitespace found at end of line
(#134) Expected "if (...) {\n"; found "if(...) {\n"
(#205) Whitespace found at end of line
(#205) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#206) Whitespace found at end of line
(#207) Expected "if (...) {\n"; found "if(...) {\n"
(#212) Whitespace found at end of line
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
(#214) Expected 1 space before "=>"; 0 found
(#214) Expected 1 space after "=>"; 0 found
blocks/bcu_course_checks/settings.php
(#99) 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 jshint [More info]


CSS problems

(0 errors, 1 warnings)

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

blocks/bcu_course_checks/styles.css
(#35) Use of !important

PHPDocs style problems

(41 errors, 0 warnings)

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

blocks/bcu_course_checks/block_bcu_course_checks.php
(#27) Class block_bcu_course_checks is not documented
(#32) Function block_bcu_course_checks::load_renderer is not documented
(#36) Function block_bcu_course_checks::init is not documented
(#41) Function block_bcu_course_checks::get_content is not documented
(#81) Function block_bcu_course_checks::get_cached_content is not documented
(#106) Function block_bcu_course_checks::applicable_formats is not documented
(#110) Function block_bcu_course_checks::instance_allow_multiple is not documented
(#114) Function block_bcu_course_checks::hide_header is not documented
(#118) Function block_bcu_course_checks::has_config is not documented
(#30) Variable block_bcu_course_checks::$renderer is not documented
(#20) Package block is not valid
blocks/bcu_course_checks/db/access.php
(#20) Package block is not valid
blocks/bcu_course_checks/db/caches.php
(#20) Package block is not valid
blocks/bcu_course_checks/edit_form.php
(#27) Class block_bcu_course_checks_edit_form is not documented
(#28) Function block_bcu_course_checks_edit_form::specific_definition is not documented
(#20) Package block is not valid
blocks/bcu_course_checks/lang/en/block_bcu_course_checks.php
(#20) Package block is not valid
blocks/bcu_course_checks/locallib.php
(#27) Function block_bcu_course_checks_get_course_properties is not documented
(#33) Function block_bcu_course_checks_check_sections is not documented
(#71) Function block_bcu_course_checks_check_format is not documented
(#79) Function block_bcu_course_checks_get_all_blocks is not documented
(#97) Function block_bcu_course_checks_get_all_formats is not documented
(#108) Function block_bcu_course_checks_get_course_blocks is not documented
(#125) Function block_bcu_course_checks_get_course_overviewfiles is not documented
(#141) Function block_bcu_course_checks_get_guest_access is not documented
(#151) Function block_bcu_course_checks_course_cleanup is not documented
(#177) Function block_bcu_course_checks_get_outdated_assignments is not documented
(#20) Package block is not valid
blocks/bcu_course_checks/renderer.php
(#32) Class block_bcu_course_checks_renderer is not documented
(#36) Function block_bcu_course_checks_renderer::setconfig is not documented
(#53) Function block_bcu_course_checks_renderer::render_course_status is not documented
(#127) Function block_bcu_course_checks_renderer::render_check_section is not documented
(#131) Function block_bcu_course_checks_renderer::render_title is not documented
(#143) Function block_bcu_course_checks_renderer::render_cleanup is not documented
(#155) Function block_bcu_course_checks_renderer::check_sections is not documented
(#217) Function block_bcu_course_checks_renderer::set_image is not documented
(#227) Function block_bcu_course_checks_renderer::is_property_set is not documented
(#34) Variable block_bcu_course_checks_renderer::$_config is not documented
(#20) Package block is not valid
blocks/bcu_course_checks/settings.php
(#20) Package block is not valid
blocks/bcu_course_checks/version.php
(#20) 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]