Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(33 errors, 46 warnings)

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

availability/condition/paypal/classes/condition.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#67) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
availability/condition/paypal/classes/frontend.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Short array syntax must be used to define arrays
(#55) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $cm.
(#55) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $section.
(#69) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $cm.
(#69) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $section.
(#70) Short array syntax must be used to define arrays
availability/condition/paypal/classes/transactions_table.php
(#28) Missing member variable doc comment
(#121) Missing docblock for function col_payment_status
availability/condition/paypal/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
availability/condition/paypal/ipn.php
(#46) Logical operator "or" is prohibited; use "||" instead
(#97) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
availability/condition/paypal/lang/en/availability_paypal.php
(#41) The string key "itemname_help" is duplicated
availability/condition/paypal/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for function availability_paypal_find_condition
availability/condition/paypal/view.php
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#53) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#117) Missing docblock for file view.php
(#118) Missing docblock for file view.php
(#119) Missing docblock for file view.php
(#120) Missing docblock for file view.php
(#122) Missing docblock for file view.php
(#123) Missing docblock for file view.php
(#136) Missing docblock for file view.php
(#140) Missing docblock for file view.php
(#141) Missing docblock for file view.php
(#142) Missing docblock for file view.php
(#144) Missing docblock for file view.php
(#145) Missing docblock for file view.php
(#146) Missing docblock for file view.php
(#148) Missing docblock for file view.php
(#149) Missing docblock for file view.php
(#154) Missing docblock for file view.php
(#155) Missing docblock for file view.php
(#156) Missing docblock for file view.php
(#158) Missing docblock for file view.php
(#160) Missing docblock for file view.php
(#161) Missing docblock for file view.php
(#162) Missing docblock for file view.php
(#163) Missing docblock for file view.php
(#164) Missing docblock for file view.php
(#165) Missing docblock for file view.php
(#167) Missing docblock for file view.php
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#167) Line exceeds 132 characters; contains 133 characters
(#169) Line indented incorrectly; expected at least 8 spaces, found 0
(#169) Missing docblock for file view.php

Javascript coding style problems

(0 errors, 12 warnings)

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

availability/condition/paypal/yui/src/form/js/form.js
(#6) Identifier 'availability_paypal' is not in camel case. (camelcase)
(#25) Identifier 'selected_string' is not in camel case. (camelcase)
(#26) Identifier 'currencies_options' is not in camel case. (camelcase)
(#29) Identifier 'selected_string' is not in camel case. (camelcase)
(#31) Identifier 'selected_string' is not in camel case. (camelcase)
(#33) Identifier 'currencies_options' is not in camel case. (camelcase)
(#33) Identifier 'selected_string' is not in camel case. (camelcase)
(#34) Identifier 'currencies_options' is not in camel case. (camelcase)
(#35) Identifier 'currencies_options' is not in camel case. (camelcase)
(#50) Identifier 'currencies_options' is not in camel case. (camelcase)
(#150) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#150) There should be no space before this paren. (space-in-parens)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]