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

(223 errors, 20 warnings)

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

filter/learn360/db/install.php
(#18) Whitespace found at end of line
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
filter/learn360/filter.php
(#30) Whitespace found at end of line
(#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
(#31) This comment is 60% valid code; is this commented out code?
(#31) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Line indented incorrectly; expected 4 spaces, found 2
(#34) Line indented incorrectly; expected at least 8 spaces, found 4
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected 8 spaces, found 1
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Line indented incorrectly; expected at least 12 spaces, found 2
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 12 spaces, found 2
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected 8 spaces, found 1
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected 8 spaces, found 1
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 12 spaces, found 2
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected at least 12 spaces, found 2
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected 8 spaces, found 1
(#45) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#47) Spaces must be used to indent lines; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected at least 8 spaces, found 1
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected at least 8 spaces, found 1
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 8 spaces, found 1
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected 8 spaces, found 1
(#51) Expected "foreach (...) {\n"; found "foreach(...)\n\t{\n"
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 8 spaces, found 1
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 12 spaces, found 2
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 12 spaces, found 2
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected 12 spaces, found 2
(#57) Expected "try {\n...} catch (...) {\n"; found "try\n\t\t{\n...}\n\t\tcatch(...)\n\t\t{\n"
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 12 spaces, found 2
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 16 spaces, found 3
(#59) Commas (,) must be followed by white space.
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 16 spaces, found 4
(#60) The use of function print_r() is forbidden
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 16 spaces, found 3
(#61) Expected 1 space before "="; 0 found
(#61) Expected 1 space after "="; 0 found
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 16 spaces, found 3
(#63) Commas (,) must be followed by white space.
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected 12 spaces, found 2
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected 12 spaces, found 2
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 12 spaces, found 2
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 16 spaces, found 3
(#68) Spaces must be used to indent lines; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected 12 spaces, found 2
(#69) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Whitespace found at end of line
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Line indented incorrectly; expected at least 12 spaces, found 2
(#71) No space found before comment text; expected "// if our url doesn't need to be encoded, set it to the OG" but found "//if our url doesn't need to be encoded, set it to the OG"
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected 12 spaces, found 2
(#72) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 12 spaces, found 2
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected at least 16 spaces, found 3
(#75) Spaces must be used to indent lines; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected 12 spaces, found 2
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Inline comments must start with a capital letter, digit or 3-dots sequence
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line indented incorrectly; expected at least 12 spaces, found 2
(#77) No space found before comment text; expected "// only do this if it's our url" but found "//only do this if it's our url"
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected 12 spaces, found 2
(#78) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected at least 12 spaces, found 2
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 16 spaces, found 3
(#80) Expected 1 space before "="; 0 found
(#80) Expected 1 space after "="; 0 found
(#80) Commas (,) must be followed by white space.
(#80) Commas (,) must be followed by white space.
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 16 spaces, found 3
(#82) Commas (,) must be followed by white space.
(#82) Commas (,) must be followed by white space.
(#84) Spaces must be used to indent lines; tabs are not allowed
(#84) Tab found within whitespace
(#84) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Line indented incorrectly; expected at least 16 spaces, found 3
(#84) No space found before comment text; expected "// get the substring of the url with moodle/ so we can decode it to match the actual text" but found "//get the substring of the url with moodle/ so we can decode it to match the actual text"
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected 16 spaces, found 3
(#85) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#86) Spaces must be used to indent lines; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected at least 16 spaces, found 3
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected at least 20 spaces, found 4
(#87) Variable "moodleText" must be all lower-case
(#87) Line exceeds 132 characters; contains 150 characters
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 20 spaces, found 4
(#89) Variable "moodleText" must be all lower-case
(#89) Variable "moodleText" must be all lower-case
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected 16 spaces, found 3
(#92) Spaces must be used to indent lines; tabs are not allowed
(#92) Tab found within whitespace
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) This comment is 50% valid code; is this commented out code?
(#92) Line indented incorrectly; expected at least 16 spaces, found 3
(#92) No space found before comment text; expected "// $this->embedmarkers = 'lti\.films\.com|localhost|\.mp4';" but found "//$this->embedmarkers = 'lti\.films\.com|localhost|\.mp4';"
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) This comment is 72% valid code; is this commented out code?
(#94) Line indented incorrectly; expected at least 16 spaces, found 3
(#94) No space found before comment text; expected "// $this->trusted = !empty($options['noclean']) or !empty($CFG->allowobjectembed);" but found "//$this->trusted = !empty($options['noclean']) or !empty($CFG->allowobjectembed);"
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected at least 16 spaces, found 3
(#96) Expected 1 space after "="; 2 found
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected at least 16 spaces, found 3
(#98) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected 16 spaces, found 3
(#100) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#101) Spaces must be used to indent lines; tabs are not allowed
(#101) Tab found within whitespace
(#101) Line indented incorrectly; expected at least 16 spaces, found 3
(#102) Spaces must be used to indent lines; tabs are not allowed
(#102) Tab found within whitespace
(#102) Line indented incorrectly; expected at least 20 spaces, found 4
(#104) Spaces must be used to indent lines; tabs are not allowed
(#104) Tab found within whitespace
(#104) Line indented incorrectly; expected at least 20 spaces, found 4
(#104) Expected 1 space before "-"; 0 found
(#104) Expected 1 space after "-"; 0 found
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected at least 20 spaces, found 4
(#105) Expected 1 space after "-"; 0 found
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected 16 spaces, found 3
(#109) Spaces must be used to indent lines; tabs are not allowed
(#109) Tab found within whitespace
(#109) Line indented incorrectly; expected at least 16 spaces, found 3
(#109) Variable "iframeText" must be all lower-case
(#109) Line exceeds 132 characters; contains 157 characters
(#111) Spaces must be used to indent lines; tabs are not allowed
(#111) Tab found within whitespace
(#111) Line indented incorrectly; expected at least 16 spaces, found 3
(#111) Variable "iframeText" must be all lower-case
(#112) Spaces must be used to indent lines; tabs are not allowed
(#112) Tab found within whitespace
(#112) Line indented incorrectly; expected 12 spaces, found 2
(#113) Spaces must be used to indent lines; tabs are not allowed
(#113) Tab found within whitespace
(#113) Line indented incorrectly; expected 8 spaces, found 1
(#114) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#115) Whitespace found at end of line
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Tab found within whitespace
(#116) Line indented incorrectly; expected at least 8 spaces, found 1
(#116) Spaces must be used for alignment; tabs are not allowed
(#116) Tab found within whitespace
(#116) Whitespace found at end of line
(#117) Line indented incorrectly; expected 4 spaces, found 2
filter/learn360/version.php
(#31) Spaces must be used for alignment; tabs are not allowed
(#31) Tab found within whitespace
(#33) Spaces must be used for alignment; tabs are not allowed
(#33) Tab found within whitespace

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

(4 errors, 0 warnings)

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

filter/learn360/db/install.php
(#28) Function xmldb_filter_learn360_install is not documented
(#20) Package filter is not valid
filter/learn360/filter.php
(#29) Class filter_learn360 is not documented
(#33) Function filter_learn360::filter 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]