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

(70 errors, 28 warnings)

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

local/mobile/check.php
(#67) Expected "} else {\n"; found "}\n else {\n"
local/mobile/db/services.php
(#75) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space before "=>"; 0 found
(#99) Expected 1 space before "=>"; 0 found
(#965) Line exceeds 132 characters; contains 136 characters
local/mobile/db/upgrade.php
(#51) Empty CATCH statement detected
local/mobile/externallib.php
(#157) Expected 1 space after "="; newline found
(#336) Inline comments must start with a capital letter, digit or 3-dots sequence
(#417) Line exceeds 132 characters; contains 136 characters
(#938) Expected 1 space after "="; newline found
(#1460) Line exceeds 132 characters; contains 136 characters
(#1823) Expected 9 space(s) before asterisk; 5 found
(#1824) Expected 9 space(s) before asterisk; 5 found
(#1825) Expected 9 space(s) before asterisk; 5 found
(#1826) Expected 9 space(s) before asterisk; 5 found
(#1827) Expected 9 space(s) before asterisk; 5 found
(#3383) Expected 1 space after "="; newline found
(#3652) Expected 9 space(s) before asterisk; 5 found
(#3653) Expected 9 space(s) before asterisk; 5 found
(#3654) Expected 9 space(s) before asterisk; 5 found
(#3655) Expected 9 space(s) before asterisk; 5 found
(#3656) Expected 9 space(s) before asterisk; 5 found
(#3872) Expected 9 space(s) before asterisk; 5 found
(#3873) Expected 9 space(s) before asterisk; 5 found
(#3874) Expected 9 space(s) before asterisk; 5 found
(#3875) Expected 9 space(s) before asterisk; 5 found
(#3876) Expected 9 space(s) before asterisk; 5 found
(#3947) Expected 1 space after "="; newline found
(#4439) Line indented incorrectly; expected 4 spaces, found 5
(#4472) Closing brace indented incorrectly; expected 5 spaces, found 4
(#4638) Expected 1 space after "="; newline found
(#4810) Expected 1 space after "="; newline found
(#5218) Expected 1 space after "="; newline found
(#5669) Line exceeds 132 characters; contains 136 characters
(#5700) Line exceeds 132 characters; contains 137 characters
(#6334) Expected 1 space after "="; newline found
(#6359) Line exceeds 132 characters; contains 149 characters
(#6790) Line exceeds 132 characters; contains 137 characters
(#6824) Line exceeds 132 characters; contains 137 characters
(#7330) Empty IF statement detected
(#8056) Expected 1 space after "="; newline found
(#8777) Line exceeds 132 characters; contains 133 characters
(#8956) Line exceeds 132 characters; contains 136 characters
(#9253) Line exceeds 132 characters; contains 137 characters
(#9869) Expected 1 space after "="; newline found
(#10374) Line exceeds 132 characters; contains 139 characters
(#11076) Expected 1 space before "=>"; 0 found
(#11076) Expected 1 space after "=>"; 0 found
(#11077) Expected 1 space before "=>"; 0 found
(#11077) Expected 1 space after "=>"; 0 found
(#11078) Expected 1 space before "=>"; 0 found
(#11078) Expected 1 space after "=>"; 0 found
(#11079) Expected 1 space before "=>"; 0 found
(#11079) Expected 1 space after "=>"; 0 found
(#11080) Expected 1 space before "=>"; 0 found
(#11080) Expected 1 space after "=>"; 0 found
(#11081) Expected 1 space before "=>"; 0 found
(#11081) Expected 1 space after "=>"; 0 found
(#11082) Expected 1 space before "=>"; 0 found
(#11082) Expected 1 space after "=>"; 0 found
(#11083) Expected 1 space before "=>"; 0 found
(#11083) Expected 1 space after "=>"; 0 found
(#11084) Expected 1 space before "=>"; 0 found
(#11084) Expected 1 space after "=>"; 0 found
(#11092) Expected 1 space before "=>"; 0 found
(#11092) Expected 1 space after "=>"; 0 found
(#11093) Expected 1 space before "=>"; 0 found
(#11093) Expected 1 space after "=>"; 0 found
(#11094) Expected 1 space before "=>"; 0 found
(#11094) Expected 1 space after "=>"; 0 found
(#11095) Expected 1 space before "=>"; 0 found
(#11095) Expected 1 space after "=>"; 0 found
(#11301) Line indented incorrectly; expected at least 4 spaces, found 3
(#11302) Expected 4 space(s) before asterisk; 5 found
(#11303) Expected 4 space(s) before asterisk; 5 found
(#11304) Expected 4 space(s) before asterisk; 5 found
(#11305) Expected 4 space(s) before asterisk; 5 found
(#11306) Expected 4 space(s) before asterisk; 5 found
(#11307) Expected 4 space(s) before asterisk; 5 found
(#11308) Expected 4 space(s) before asterisk; 5 found
(#11514) Line exceeds 132 characters; contains 141 characters
(#11583) Line exceeds 132 characters; contains 137 characters
(#11653) Line exceeds 132 characters; contains 143 characters
(#11662) Line exceeds 132 characters; contains 139 characters
(#11759) Line exceeds 132 characters; contains 138 characters
(#11850) Line exceeds 132 characters; contains 142 characters
(#12021) Line exceeds 132 characters; contains 144 characters
(#12267) Expected 1 space after "="; newline found
local/mobile/futurelib.php
(#324) Line exceeds 132 characters; contains 134 characters
(#968) Empty IF statement detected
(#1557) Line exceeds 132 characters; contains 134 characters
(#2203) Expected 1 space after "+"; newline found
(#2752) Line exceeds 132 characters; contains 139 characters
(#3189) Line exceeds 132 characters; contains 135 characters
local/mobile/launch.php
(#221) Line exceeds 132 characters; contains 138 characters
(#221) Line exceeds 132 characters; contains 138 characters
(#221) Line exceeds 132 characters; contains 138 characters
(#221) Line exceeds 132 characters; contains 138 characters

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

(24 errors, 0 warnings)

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

local/mobile/check.php
(#17) No one-line description found in phpdocs for file
local/mobile/db/upgrade.php
(#27) Function xmldb_local_mobile_upgrade is not documented
local/mobile/externallib.php
(#35) Class local_mobile_external is not documented
(#10582) Phpdocs for function local_mobile_external::mod_quiz_view_attempt has incomplete parameters list
(#10653) Phpdocs for function local_mobile_external::mod_quiz_view_attempt_summary has incomplete parameters list
(#11241) Phpdocs for function local_mobile_external::mod_assign_get_submission_structure has incomplete parameters list
(#11278) Phpdocs for function local_mobile_external::mod_assign_get_grade_structure has incomplete parameters list
local/mobile/futurelib.php
(#2277) Class local_mobile_quiz is not documented
(#2367) Class local_mobile_quiz_attempt is not documented
(#2699) Class local_mobile_quiz_access_manager is not documented
(#2722) Class local_mobile_question_bank is not documented
(#2797) Class local_mobile_assign is not documented
(#658) Function enrol_guest_get_enrol_info is not documented
(#2076) Function local_mobile_external_format_text is not documented
(#2674) Function local_mobile_quiz_attempt::set_offline_modified_time is not documented
(#2743) Function local_mobile_mod_quiz_add_timemodifiedoffline is not documented
(#2868) Function local_mobile_assign::__construct is not documented
(#155) Phpdocs for function external_util::validate_courses has incomplete parameters list
(#193) Phpdocs for function external_format_string has incomplete parameters list
(#145) Package core_webservice is not valid
(#758) Package mod_glossary is not valid
(#3344) Package core_webservice is not valid
local/mobile/launch.php
(#27) Function is_ios is not documented
local/mobile/server.php
(#46) Package webservice_corsrest 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]