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

(50 errors, 14 warnings)

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

enrol/stripepayment/charge.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#13) Line 12 of the opening comment must start "//".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#14) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#33) Expected "if (...) {\n"; found "if(...)\n{\n"
(#287) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (HELPR FUNCTIOS!)
enrol/stripepayment/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
enrol/stripepayment/db/messages.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
enrol/stripepayment/edit.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#19) Whitespace found at end of line
(#90) Line exceeds maximum limit of 180 characters; contains 236 characters
enrol/stripepayment/edit_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#19) Whitespace found at end of line
enrol/stripepayment/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#9) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#9) Line indented incorrectly; expected 0 spaces, found 2
(#9) Inline comments must end in full-stops, exclamation marks, or question marks
(#12) Variable "token_request_body" must not contain underscores.
(#22) TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
(#24) Variable "token_request_body" must not contain underscores.
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) Variable "respCode" must be all lower-case
(#32) Line indented incorrectly; expected 0 spaces, found 2
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Line indented incorrectly; expected 0 spaces, found 2
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Variable "authorize_request_body" must not contain underscores.
(#41) Variable "authorize_request_body" must not contain underscores.
(#43) Line indented incorrectly; expected 0 spaces, found 2
(#44) A closing tag is not permitted at the end of a PHP file
enrol/stripepayment/lang/en/enrol_stripepayment.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Expected 1 space before "="; 0 found
(#45) Expected 1 space before "="; 0 found
(#45) Expected 1 space after "="; 0 found
(#46) Expected 1 space before "="; 0 found
(#46) Expected 1 space after "="; 0 found
(#59) Expected 1 space before "="; 0 found
(#59) Expected 1 space after "="; 0 found
(#78) Whitespace found at end of line
(#79) Whitespace found at end of line
(#81) Whitespace found at end of line
enrol/stripepayment/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#126) Line exceeds 132 characters; contains 139 characters
(#143) Line exceeds 132 characters; contains 137 characters
(#267) Expected 1 space before "=>"; 0 found
(#267) Expected 1 space after "=>"; 0 found
enrol/stripepayment/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (seting)
(#26) Line exceeds 132 characters; contains 136 characters
(#29) Line exceeds 132 characters; contains 138 characters
(#53) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (enrol istacdfu)
(#59) Line exceeds 132 characters; contains 139 characters
(#60) Line exceeds 132 characters; contains 143 characters
(#71) Line exceeds 132 characters; contains 142 characters
enrol/stripepayment/unenrolself.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
enrol/stripepayment/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

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

(2 errors, 1 warnings)

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

enrol/stripepayment/index.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/stripepayment/lib.php
(#246) Function enrol_stripepayment_plugin::can_stripepayment_enrol is not documented

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]