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

(102 errors, 31 warnings)

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

enrol/pagseguro/db/upgrade.php
(#44) Expected MOODLE_INTERNAL check or config.php inclusion
enrol/pagseguro/edit.php
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Line exceeds 132 characters; contains 137 characters
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/pagseguro/edit_form.php
(#64) Line exceeds 132 characters; contains 151 characters
(#68) Line exceeds 132 characters; contains 138 characters
(#72) Line exceeds 132 characters; contains 134 characters
enrol/pagseguro/lib.php
(#82) Line exceeds 132 characters; contains 135 characters
(#103) Line exceeds 132 characters; contains 133 characters
(#104) Line exceeds 132 characters; contains 133 characters
(#177) Commas (,) must be followed by white space.
(#177) Commas (,) must be followed by white space.
(#178) Commas (,) must be followed by white space.
(#178) Commas (,) must be followed by white space.
(#178) Commas (,) must be followed by white space.
(#179) Commas (,) must be followed by white space.
(#179) Commas (,) must be followed by white space.
(#180) Commas (,) must be followed by white space.
(#180) Commas (,) must be followed by white space.
(#180) Commas (,) must be followed by white space.
(#180) Commas (,) must be followed by white space.
enrol/pagseguro/process.php
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) This comment is 80% valid code; is this commented out code?
(#34) No space found before comment text; expected "// header("access-control-allow-origin: https://ws.pagseguro.uol.com.br");" but found "//header("access-control-allow-origin: https://ws.pagseguro.uol.com.br");"
(#35) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#50) Space found before semicolon; expected ");" but found ") ;"
(#57) Variable "notificationCode" must be all lower-case
(#62) Variable "pagseguroBaseURL" must be all lower-case
(#63) Variable "pagseguroWSBaseURL" must be all lower-case
(#65) Variable "pagseguroBaseURL" must be all lower-case
(#66) Variable "pagseguroWSBaseURL" must be all lower-case
(#75) Variable "plugin_instance" must not contain underscores.
(#76) Variable "plugin_instance" must not contain underscores.
(#79) Variable "pagseguroWSBaseURL" must be all lower-case
(#79) Variable "pagseguroBaseURL" must be all lower-case
(#79) Variable "plugin_instance" must not contain underscores.
(#79) Line exceeds 132 characters; contains 133 characters
(#83) Variable "pagseguroWSBaseURL" must be all lower-case
(#85) Variable "notificationCode" must be all lower-case
(#87) Variable "pagseguroWSBaseURL" must be all lower-case
(#87) Variable "notificationCode" must be all lower-case
(#90) Variable "transaction_data" must not contain underscores.
(#91) Commas (,) must be followed by white space.
(#91) Commas (,) must be followed by white space.
(#97) Variable "transaction_xml" must not contain underscores.
(#97) Variable "transaction_data" must not contain underscores.
(#98) Variable "transaction_xml" must not contain underscores.
(#104) Variable "trans_key" must not contain underscores.
(#104) Variable "trans_value" must not contain underscores.
(#105) Variable "trans_key" must not contain underscores.
(#105) Variable "trans_key" must not contain underscores.
(#106) Expected "if (...) {\n"; found "if(...) {\n"
(#106) Variable "trans_value" must not contain underscores.
(#107) Variable "trans_key" must not contain underscores.
(#107) Variable "trans_value" must not contain underscores.
(#109) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#109) Variable "trans_value" must not contain underscores.
(#111) Expected "if (...) {\n"; found "if(...) {\n"
(#112) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#114) Variable "trans_key" must not contain underscores.
(#118) Variable "trans_key" must not contain underscores.
(#128) Variable "transaction_xml" must not contain underscores.
(#136) Expected "if (...) {\n"; found "if(...) {\n"
(#155) Variable "plugin_instance" must not contain underscores.
(#188) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#192) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) Variable "plugin_instance" must not contain underscores.
(#196) Variable "plugin_instance" must not contain underscores.
(#212) Variable "plugin_instance" must not contain underscores.
(#214) Variable "plugin_instance" must not contain underscores.
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#221) Variable "plugin_instance" must not contain underscores.
(#221) Variable "plugin_instance" must not contain underscores.
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#323) Variable "pagseguroWSBaseURL" must be all lower-case
(#323) Variable "pagseguroBaseURL" must be all lower-case
(#323) Variable "plugin_instance" must not contain underscores.
(#323) Line exceeds 132 characters; contains 139 characters
(#326) Variable "checkoutURL" must be all lower-case
(#326) Variable "pagseguroWSBaseURL" must be all lower-case
(#328) Variable "item_id" must not contain underscores.
(#329) Variable "item_desc" must not contain underscores.
(#330) Variable "item_qty" must not contain underscores.
(#331) Variable "item_cost" must not contain underscores.
(#331) Variable "plugin_instance" must not contain underscores.
(#331) Variable "plugin_instance" must not contain underscores.
(#332) Variable "item_cost" must not contain underscores.
(#332) Variable "item_cost" must not contain underscores.
(#333) Variable "item_amount" must not contain underscores.
(#333) Variable "item_cost" must not contain underscores.
(#338) Variable "redirect_url" must not contain underscores.
(#338) Variable "plugin_instance" must not contain underscores.
(#340) Variable "checkoutURL" must be all lower-case
(#345) Variable "redirect_url" must not contain underscores.
(#348) Variable "item_id" must not contain underscores.
(#349) Variable "item_desc" must not contain underscores.
(#350) Variable "item_amount" must not contain underscores.
(#351) Variable "item_qty" must not contain underscores.
(#372) This comment is 70% valid code; is this commented out code?
(#372) Perl-style comments are not allowed; use "// Comment." instead
(#376) Variable "pagseguroBaseURL" must be all lower-case
(#379) Variable "pagseguroBaseURL" must be all lower-case
(#381) Variable "pagseguroBaseURL" must be all lower-case
(#389) Expected "if (...) {\n"; found "if (...){\n"
(#392) Variable "transaction_data" must not contain underscores.
(#393) Variable "transaction_data" must not contain underscores.
(#397) Variable "pagseguroBaseURL" must be all lower-case
(#397) Variable "notificationCode" must be all lower-case
(#399) Variable "transactionsv2URL" must be all lower-case
(#399) Variable "pagseguroBaseURL" must be all lower-case
(#403) Variable "transactionsv2URL" must be all lower-case
(#403) Variable "notificationCode" must be all lower-case
(#411) Expected "if (...) {\n"; found "if (...){\n"
(#414) Variable "transaction_data" must not contain underscores.
(#415) Variable "transaction_data" must not contain underscores.
enrol/pagseguro/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#34) Line exceeds maximum limit of 180 characters; contains 203 characters
(#36) Line exceeds maximum limit of 180 characters; contains 199 characters
(#38) Line exceeds 132 characters; contains 139 characters
(#40) Line exceeds 132 characters; contains 139 characters
(#42) Line exceeds 132 characters; contains 135 characters
(#52) Line exceeds 132 characters; contains 135 characters
(#54) Line exceeds maximum limit of 180 characters; contains 186 characters
(#56) This comment is 61% valid code; is this commented out code?
(#64) Line exceeds 132 characters; contains 155 characters
(#65) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Whitespace found at end of line
(#72) Line exceeds 132 characters; contains 134 characters
enrol/pagseguro/unenrolself.php
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks

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

(0 errors, 0 warnings)

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


PHPDocs style problems

(28 errors, 1 warnings)

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

enrol/pagseguro/db/upgrade.php
(#44) Function xmldb_enrol_pagseguro_upgrade is not documented
(#20) Package enrol is not valid
enrol/pagseguro/edit.php
(#17) No one-line description found in phpdocs for file
(#21) Package enrol is not valid
enrol/pagseguro/edit_form.php
(#31) Class enrol_pagseguro_edit_form is not documented
(#33) Function enrol_pagseguro_edit_form::definition is not documented
(#86) Function enrol_pagseguro_edit_form::validation is not documented
(#17) No one-line description found in phpdocs for file
(#21) Package enrol is not valid
enrol/pagseguro/lang/en/enrol_pagseguro.php
(#20) Package enrol is not valid
enrol/pagseguro/lib.php
(#53) Function enrol_pagseguro_plugin::roles_protected is not documented
(#57) Function enrol_pagseguro_plugin::allow_unenrol is not documented
(#61) Function enrol_pagseguro_plugin::allow_manage is not documented
(#65) Function enrol_pagseguro_plugin::show_enrolme_link is not documented
(#72) Phpdocs for function enrol_pagseguro_plugin::add_course_navigation has incomplete parameters list
(#30) Class enrol_pagseguro_plugin does not have @copyright tag
(#22) Package enrol is not valid
enrol/pagseguro/locallib.php
(#29) Class enrol_pagseguro_enrol_form is not documented
(#31) Function enrol_pagseguro_enrol_form::definition is not documented
enrol/pagseguro/process.php
(#90) Function pagseguro_handle_transaction is not documented
(#300) Function pagseguro_message_error_to_admin is not documented
(#323) Function pagseguro_handle_checkout is not documented
(#379) Function pagseguro_handle_redirect_back is not documented
(#397) Function pagseguro_handle_old_notification_system is not documented
(#25) Package enrol is not valid
enrol/pagseguro/return.php
(#20) Package enrol is not valid
enrol/pagseguro/settings.php
(#2) Empty line found after PHP open tag
(#21) Package enrol is not valid
enrol/pagseguro/unenrolself.php
(#20) Package enrol 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

(0 errors, 0 warnings)

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


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]