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

(140 errors, 47 warnings)

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

enrol/authorizedotnet/edit_form.php
(#19) Whitespace found at end of line
enrol/authorizedotnet/enrolment_form.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Variable "auth_modess" must not contain underscores.
(#30) Expected "if (...) {\n"; found "if(...) {\n"
(#30) Variable "auth_modess" must not contain underscores.
(#31) Line indented incorrectly; expected at least 4 spaces, found 1
(#31) Variable "s_path" must not contain underscores.
(#33) Usage of ELSEIF not allowed; use ELSE IF instead
(#33) Variable "auth_modess" must not contain underscores.
(#34) Variable "s_path" must not contain underscores.
(#49) Variable "s_path" must not contain underscores.
(#68) Spaces must be used to indent lines; tabs are not allowed
(#69) Spaces must be used to indent lines; tabs are not allowed
(#70) Spaces must be used to indent lines; tabs are not allowed
(#71) Spaces must be used to indent lines; tabs are not allowed
(#72) Spaces must be used to indent lines; tabs are not allowed
(#73) Spaces must be used to indent lines; tabs are not allowed
(#74) Spaces must be used to indent lines; tabs are not allowed
(#85) Spaces must be used to indent lines; tabs are not allowed
(#86) Spaces must be used to indent lines; tabs are not allowed
(#87) Spaces must be used to indent lines; tabs are not allowed
(#90) Spaces must be used to indent lines; tabs are not allowed
(#92) Spaces must be used to indent lines; tabs are not allowed
(#98) Spaces must be used to indent lines; tabs are not allowed
(#99) Spaces must be used to indent lines; tabs are not allowed
(#100) Spaces must be used to indent lines; tabs are not allowed
(#101) Spaces must be used to indent lines; tabs are not allowed
(#102) Spaces must be used to indent lines; tabs are not allowed
(#103) Spaces must be used to indent lines; tabs are not allowed
(#105) Spaces must be used to indent lines; tabs are not allowed
(#106) Spaces must be used to indent lines; tabs are not allowed
(#113) Spaces must be used to indent lines; tabs are not allowed
enrol/authorizedotnet/lib.php
(#276) Whitespace found at end of line
enrol/authorizedotnet/pay_process.php
(#20) Whitespace found at end of line
(#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 78% valid code; is this commented out code?
(#34) No space found before comment text; expected "// require_once($CFG->libdir.'/eventslib.php');" but found "//require_once($CFG->libdir.'/eventslib.php');"
(#37) This comment is 64% valid code; is this commented out code?
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) No space found before comment text; expected "// echo "<pre>"; print_r($CFG); die;" but found "//echo "<pre>"; print_r($CFG); die;"
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) No space found before comment text; expected "// require_once($CFG->dirroot . '/admin/environment.php');" but found "//require_once($CFG->dirroot . '/admin/environment.php');"
(#54) Variable "transRequestXmlStr" must be all lower-case
(#54) Expected 1 space before "="; 0 found
(#54) Expected 1 space after "="; 0 found
(#72) Variable "transRequestXml" must be all lower-case
(#72) Expected 1 space before "="; 0 found
(#72) Expected 1 space after "="; 0 found
(#72) Variable "transRequestXmlStr" must be all lower-case
(#74) Variable "loginId" must be all lower-case
(#75) Variable "transactionKey" must be all lower-case
(#77) Variable "transRequestXml" must be all lower-case
(#77) Commas (,) must be followed by white space.
(#77) Variable "loginId" must be all lower-case
(#78) Variable "transRequestXml" must be all lower-case
(#78) Commas (,) must be followed by white space.
(#78) Variable "transactionKey" must be all lower-case
(#80) Variable "transRequestXml" must be all lower-case
(#80) Expected 1 space before "="; 0 found
(#80) Expected 1 space after "="; 0 found
(#81) Variable "transRequestXml" must be all lower-case
(#81) Expected 1 space before "="; 0 found
(#81) Expected 1 space after "="; 0 found
(#82) Variable "transRequestXml" must be all lower-case
(#82) Expected 1 space before "="; 0 found
(#82) Expected 1 space after "="; 0 found
(#83) Variable "transRequestXml" must be all lower-case
(#83) Expected 1 space before "="; 0 found
(#83) Expected 1 space after "="; 0 found
(#85) Expected "if (...) {\n"; found "if(...)\n{\n"
(#87) Variable "transRequestXml" must be all lower-case
(#87) Commas (,) must be followed by white space.
(#87) Whitespace found at end of line
(#91) Expected "if (...) {\n"; found "if(...){\n"
(#91) Empty IF statement detected
(#92) This comment is 78% valid code; is this commented out code?
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) No space found before comment text; expected "// $transRequestXml->transactionRequest->addChild('cardholderAuthentication');" but found "//$transRequestXml->transactionRequest->addChild('cardholderAuthentication');"
(#93) This comment is 82% valid code; is this commented out code?
(#93) No space found before comment text; expected "// $transRequestXml->transactionRequest->cardholderAuthentication->addChild('authenticationIndicator',$_POST['paIndicator']);" but found "//$transRequestXml->transactionRequest->cardholderAuthentication->addChild('authenticationIndicator',$_POST['paIndicator']);"
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) This comment is 82% valid code; is this commented out code?
(#94) No space found before comment text; expected "// $transRequestXml->transactionRequest->cardholderAuthentication->addChild('cardholderAuthenticationValue',$_POST['paValue']);" but found "//$transRequestXml->transactionRequest->cardholderAuthentication->addChild('cardholderAuthenticationValue',$_POST['paValue']);"
(#97) Expected 1 space before "="; 0 found
(#97) Expected 1 space after "="; 0 found
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) This comment is 78% valid code; is this commented out code?
(#99) No space found before comment text; expected "// print_r($transRequestXml->asXML());" but found "//print_r($transRequestXml->asXML());"
(#101) Expected "try {\n...} catch (...) {\n"; found "try{ //setting the curl parameters.\n...}catch(...) {\n"
(#101) Inline comments must start with a capital letter, digit or 3-dots sequence
(#101) No space found before comment text; expected "// setting the curl parameters." but found "//setting the curl parameters."
(#103) Inline control structures are not allowed
(#103) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#107) Variable "transRequestXml" must be all lower-case
(#113) No space found before comment text; expected "// for production, set value to true or 1" but found "//for production, set value to true or 1"
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) No space found before comment text; expected "// for production, set value to 2" but found "//for production, set value to 2"
(#117) Inline control structures are not allowed
(#117) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#120) Whitespace found at end of line
(#121) Variable "xmlResult" must be all lower-case
(#121) Expected 1 space before "="; 0 found
(#123) Variable "jsonResult" must be all lower-case
(#123) Expected 1 space before "="; 0 found
(#123) Expected 1 space after "="; 0 found
(#123) Variable "xmlResult" must be all lower-case
(#124) Whitespace found at end of line
(#125) Whitespace found at end of line
(#126) Whitespace found at end of line
(#127) Variable "jsonResult" must be all lower-case
(#127) Expected 1 space before "="; 0 found
(#127) Expected 1 space after "="; 0 found
(#127) Variable "jsonResult" must be all lower-case
(#128) Variable "auth_c" must not contain underscores.
(#128) Variable "jsonResult" must be all lower-case
(#129) Variable "res_c" must not contain underscores.
(#129) Variable "jsonResult" must be all lower-case
(#130) Variable "trans_i" must not contain underscores.
(#130) Variable "jsonResult" must be all lower-case
(#131) Whitespace found at end of line
(#134) Whitespace found at end of line
(#135) Variable "existing_array" must not contain underscores.
(#135) Expected 1 space before "=>"; 0 found
(#135) Expected 1 space after "=>"; 0 found
(#135) Variable "auth_c" must not contain underscores.
(#135) Expected 1 space before "=>"; 0 found
(#135) Expected 1 space after "=>"; 0 found
(#135) Variable "res_c" must not contain underscores.
(#135) Expected 1 space before "=>"; 0 found
(#135) Expected 1 space after "=>"; 0 found
(#135) Variable "trans_i" must not contain underscores.
(#136) Variable "existing_array" must not contain underscores.
(#137) Whitespace found at end of line
(#139) Whitespace found at end of line
(#141) Whitespace found at end of line
(#147) Whitespace found at end of line
(#148) Line indented incorrectly; expected 0 spaces, found 4
(#148) Closing brace indented incorrectly; expected 0 spaces, found 4
(#150) Line indented incorrectly; expected 0 spaces, found 4
enrol/authorizedotnet/settings.php
(#38) This comment is 65% valid code; is this commented out code?
(#43) Whitespace found at end of line
(#47) Whitespace found at end of line
(#48) Whitespace found at end of line
(#59) Expected 1 space before comment text but found 7; use block comment if you need indentation
enrol/authorizedotnet/update.php
(#20) Whitespace found at end of line
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) No space found before comment text; expected "// define('NO_DEBUG_DISPLAY', true);" but found "//define('NO_DEBUG_DISPLAY', true);"
(#32) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#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 78% valid code; is this commented out code?
(#34) No space found before comment text; expected "// require_once($CFG->libdir.'/eventslib.php');" but found "//require_once($CFG->libdir.'/eventslib.php');"
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) This comment is 56% valid code; is this commented out code?
(#54) No space found before comment text; expected "// $generatemd5hash = strtoupper(md5($merchantmd5hash.$loginid.$transactionid.$amount));" but found "//$generatemd5hash = strtoupper(md5($merchantmd5hash.$loginid.$transactionid.$amount));"
(#60) This comment is 63% valid code; is this commented out code?
(#96) This comment is 57% valid code; is this commented out code?
(#96) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Whitespace found at end of line
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) This comment is 50% valid code; is this commented out code?
(#133) No space found before comment text; expected "// $eventdata->courseid = $course->id;" but found "//$eventdata->courseid = $course->id;"
(#156) Inline comments must start with a capital letter, digit or 3-dots sequence
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) This comment is 50% valid code; is this commented out code?
(#156) No space found before comment text; expected "// $eventdata->courseid = $course->id;" but found "//$eventdata->courseid = $course->id;"
(#172) Whitespace found at end of line
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) This comment is 50% valid code; is this commented out code?
(#180) No space found before comment text; expected "// $eventdata->courseid = $course->id;" but found "//$eventdata->courseid = $course->id;"
(#204) This comment is 57% valid code; is this commented out code?
(#204) Inline comments must start with a capital letter, digit or 3-dots sequence
(#205) Inline comments must end in full-stops, exclamation marks, or question marks
(#208) Inline comments must start with a capital letter, digit or 3-dots sequence
(#208) Inline comments must end in full-stops, exclamation marks, or question marks
(#208) This comment is 59% valid code; is this commented out code?
(#223) Inline comments must start with a capital letter, digit or 3-dots sequence
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#223) This comment is 54% valid code; is this commented out code?
(#229) Line indented incorrectly; expected at least 4 spaces, found 3
(#230) Line indented incorrectly; expected at least 4 spaces, found 3

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

(1 errors, 0 warnings)

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

enrol/authorizedotnet/db/messages.php
(#20) Package enrol_stripepayment 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]


Gherkin .feature problems

(0 errors, 0 warnings)

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