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

(509 errors, 99 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
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
filter/learn360/filter.php
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) This comment is 67% valid code; is this commented out code?
(#27) No space found before comment text; expected "// require_once(dirname(dirname(dirname(__FILE__))) . '/repository/lib.php');" but found "//require_once(dirname(dirname(dirname(__FILE__))) . '/repository/lib.php');"
(#30) Whitespace found at end of line
(#31) Line indented incorrectly; expected 4 spaces, found 2
(#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) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Line indented incorrectly; expected at least 8 spaces, found 1
(#36) No space found before comment text; expected "// check to see if the text needs to be decoded" but found "//check to see if the text needs to be decoded"
(#37) Line indented incorrectly; expected at least 8 spaces, found 0
(#37) Tab found before comment text; expected "// while(stripos($text, '.infobase.com') === false)" but found "// while(stripos($text, '.infobase.com') === false)"
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Line indented incorrectly; expected at least 8 spaces, found 1
(#38) No space found before comment text; expected "// loop as long as there's an a tag. If the a tag is not infobase break the loop" but found "//loop as long as there's an a tag. If the a tag is not infobase break the loop"
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 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 at least 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 8 spaces, found 1
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) This comment is 70% valid code; is this commented out code?
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Line indented incorrectly; expected at least 8 spaces, found 1
(#44) No space found before comment text; expected "// foreach($el as $node) {" but found "//foreach($el as $node) {"
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) This comment is 59% valid code; is this commented out code?
(#45) Line indented incorrectly; expected at least 8 spaces, found 1
(#45) Tab found before comment text; expected "// $a = $dom->saveHTML($node);" but found "// $a = $dom->saveHTML($node);"
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) This comment is 63% valid code; is this commented out code?
(#46) Line indented incorrectly; expected at least 8 spaces, found 2
(#46) No space found before comment text; expected "// echo "<script>console.log(".$a.")</script>";" but found "//echo "<script>console.log(".$a.")</script>";"
(#47) Spaces must be used to indent lines; tabs are not allowed
(#47) Tab found within whitespace
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) This comment is 100% valid code; is this commented out code?
(#47) Line indented incorrectly; expected at least 8 spaces, found 1
(#47) No space found before comment text; expected "// }" but found "//}"
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) This comment is 67% valid code; is this commented out code?
(#49) Line indented incorrectly; expected at least 8 spaces, found 1
(#49) No space found before comment text; expected "// while(stripos($text, '<a') !== false)" but found "//while(stripos($text, '<a') !== false)"
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected 8 spaces, found 1
(#50) Expected "foreach (...) {\n"; found "foreach(...)\n\t{\n"
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected at least 8 spaces, found 1
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 12 spaces, found 2
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#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 63% valid code; is this commented out code?
(#54) Line indented incorrectly; expected at least 12 spaces, found 2
(#54) No space found before comment text; expected "// echo "<script>console.log(".$a.")</script>";" but found "//echo "<script>console.log(".$a.")</script>";"
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 12 spaces, found 2
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) This comment is 73% valid code; is this commented out code?
(#58) Line indented incorrectly; expected at least 12 spaces, found 2
(#58) No space found before comment text; expected "// echo "<script>console.log(".$b64text[1].")</script>";" but found "//echo "<script>console.log(".$b64text[1].")</script>";"
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected 12 spaces, found 2
(#60) Expected "try {\n...} catch (...) {\n"; found "try\n\t\t{\n...}\n\t\tcatch(...)\n\t\t{\n"
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 12 spaces, found 2
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 16 spaces, found 3
(#62) Commas (,) must be followed by white space.
(#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 4
(#63) The use of function print_r() is forbidden
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 16 spaces, found 3
(#64) Expected 1 space before "="; 0 found
(#64) Expected 1 space after "="; 0 found
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 16 spaces, found 3
(#66) Commas (,) must be followed by white space.
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected 12 spaces, found 2
(#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) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 12 spaces, found 2
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 16 spaces, found 3
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected 12 spaces, found 2
(#72) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Whitespace found at end of line
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Line indented incorrectly; expected at least 12 spaces, found 2
(#74) 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"
(#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
(#75) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 12 spaces, found 2
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected at least 16 spaces, found 3
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) This comment is 73% valid code; is this commented out code?
(#78) Line indented incorrectly; expected at least 16 spaces, found 3
(#78) No space found before comment text; expected "// echo "<script>console.log(".$newtext['url'].")</script>";" but found "//echo "<script>console.log(".$newtext['url'].")</script>";"
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected 12 spaces, found 2
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Line indented incorrectly; expected at least 12 spaces, found 2
(#81) 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"
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected 12 spaces, found 2
(#82) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected at least 12 spaces, found 2
(#84) Spaces must be used to indent lines; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 16 spaces, found 3
(#84) Expected 1 space before "="; 0 found
(#84) Expected 1 space after "="; 0 found
(#84) Commas (,) must be followed by white space.
(#84) Commas (,) must be followed by white space.
(#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
(#86) Commas (,) must be followed by white space.
(#86) Commas (,) must be followed by white space.
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Line indented incorrectly; expected at least 16 spaces, found 3
(#88) 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"
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected 16 spaces, found 3
(#89) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 16 spaces, found 3
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Line indented incorrectly; expected at least 20 spaces, found 4
(#91) Variable "moodleText" must be all lower-case
(#91) Line exceeds 132 characters; contains 150 characters
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected at least 20 spaces, found 4
(#93) Variable "moodleText" must be all lower-case
(#93) Variable "moodleText" must be all lower-case
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Line indented incorrectly; expected 16 spaces, found 3
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected 16 spaces, found 3
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Line indented incorrectly; expected at least 20 spaces, found 4
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) This comment is 63% valid code; is this commented out code?
(#98) Line indented incorrectly; expected at least 20 spaces, found 4
(#98) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#99) Spaces must be used to indent lines; tabs are not allowed
(#99) Tab found within whitespace
(#99) Line indented incorrectly; expected at least 20 spaces, found 4
(#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
(#102) Spaces must be used to indent lines; tabs are not allowed
(#102) Tab found within whitespace
(#102) Line indented incorrectly; expected 16 spaces, found 3
(#103) Spaces must be used to indent lines; tabs are not allowed
(#103) Tab found within whitespace
(#103) Line indented incorrectly; expected at least 20 spaces, found 3
(#104) Spaces must be used to indent lines; tabs are not allowed
(#104) Tab found within whitespace
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) This comment is 63% valid code; is this commented out code?
(#104) Line indented incorrectly; expected at least 20 spaces, found 4
(#104) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#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
(#106) Spaces must be used to indent lines; tabs are not allowed
(#106) Tab found within whitespace
(#106) Line indented incorrectly; expected 16 spaces, found 3
(#108) Spaces must be used to indent lines; tabs are not allowed
(#108) Tab found within whitespace
(#108) Line indented incorrectly; expected at least 16 spaces, found 3
(#110) Spaces must be used to indent lines; tabs are not allowed
(#110) Tab found within whitespace
(#110) Line indented incorrectly; expected at least 16 spaces, found 3
(#112) Spaces must be used to indent lines; tabs are not allowed
(#112) Tab found within whitespace
(#112) This comment is 52% valid code; is this commented out code?
(#112) Line indented incorrectly; expected at least 16 spaces, found 3
(#113) Line indented incorrectly; expected at least 16 spaces, found 4
(#114) Line indented incorrectly; expected at least 16 spaces, found 4
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Tab found within whitespace
(#116) This comment is 73% valid code; is this commented out code?
(#116) Inline comments must start with a capital letter, digit or 3-dots sequence
(#116) Line indented incorrectly; expected at least 16 spaces, found 3
(#116) No space found before comment text; expected "// preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\"/", $text, $newtext);" but found "//preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\"/", $text, $newtext);"
(#117) Spaces must be used to indent lines; tabs are not allowed
(#117) Tab found within whitespace
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) This comment is 73% valid code; is this commented out code?
(#117) Line indented incorrectly; expected at least 16 spaces, found 3
(#117) No space found before comment text; expected "// preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\">([^\"<]*)<\/a>/", $a, $newtext);" but found "//preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\">([^\"<]*)<\/a>/", $a, $newtext);"
(#119) Inline comments must start with a capital letter, digit or 3-dots sequence
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) This comment is 67% valid code; is this commented out code?
(#119) Line indented incorrectly; expected at least 16 spaces, found 0
(#119) Tab found before comment text; expected "// echo "<script>console.log(".$newtext['url'].")</script>";" but found "// echo "<script>console.log(".$newtext['url'].")</script>";"
(#121) Spaces must be used to indent lines; tabs are not allowed
(#121) Tab found within whitespace
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) This comment is 75% valid code; is this commented out code?
(#121) Line indented incorrectly; expected at least 16 spaces, found 3
(#121) No space found before comment text; expected "// $text=$newtext;" but found "//$text=$newtext;"
(#123) Spaces must be used to indent lines; tabs are not allowed
(#123) Tab found within whitespace
(#123) Line indented incorrectly; expected at least 16 spaces, found 3
(#123) Expected 1 space after "="; 2 found
(#124) Spaces must be used to indent lines; tabs are not allowed
(#124) Tab found within whitespace
(#124) Line indented incorrectly; expected at least 16 spaces, found 3
(#126) Inline comments must start with a capital letter, digit or 3-dots sequence
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) This comment is 73% valid code; is this commented out code?
(#126) Line indented incorrectly; expected at least 16 spaces, found 0
(#126) No space found before comment text; expected "// echo "<script>console.log(".$newtext['url'].")</script>";" but found "//echo "<script>console.log(".$newtext['url'].")</script>";"
(#128) Spaces must be used to indent lines; tabs are not allowed
(#128) Tab found within whitespace
(#128) Line indented incorrectly; expected 16 spaces, found 3
(#128) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#129) Spaces must be used to indent lines; tabs are not allowed
(#129) Tab found within whitespace
(#129) Line indented incorrectly; expected at least 16 spaces, found 3
(#130) Spaces must be used to indent lines; tabs are not allowed
(#130) Tab found within whitespace
(#130) Line indented incorrectly; expected at least 20 spaces, found 4
(#132) Spaces must be used to indent lines; tabs are not allowed
(#132) Tab found within whitespace
(#132) Line indented incorrectly; expected at least 20 spaces, found 4
(#132) Expected 1 space before "-"; 0 found
(#132) Expected 1 space after "-"; 0 found
(#133) Spaces must be used to indent lines; tabs are not allowed
(#133) Tab found within whitespace
(#133) Line indented incorrectly; expected at least 20 spaces, found 4
(#133) Expected 1 space after "-"; 0 found
(#135) Spaces must be used to indent lines; tabs are not allowed
(#135) Tab found within whitespace
(#135) Inline comments must start with a capital letter, digit or 3-dots sequence
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) This comment is 63% valid code; is this commented out code?
(#135) Line indented incorrectly; expected at least 20 spaces, found 4
(#135) No space found before comment text; expected "// echo "<script>console.log(".$height.")</script>";" but found "//echo "<script>console.log(".$height.")</script>";"
(#136) Spaces must be used to indent lines; tabs are not allowed
(#136) Tab found within whitespace
(#136) Line indented incorrectly; expected 16 spaces, found 3
(#138) Spaces must be used to indent lines; tabs are not allowed
(#138) Tab found within whitespace
(#138) Line indented incorrectly; expected 16 spaces, found 3
(#138) Expected "if (...) {\n"; found "if(...) {\n"
(#140) Spaces must be used to indent lines; tabs are not allowed
(#140) Tab found within whitespace
(#140) Line indented incorrectly; expected at least 20 spaces, found 4
(#140) Variable "iframeText" must be all lower-case
(#140) Line exceeds 132 characters; contains 158 characters
(#142) Spaces must be used to indent lines; tabs are not allowed
(#142) Tab found within whitespace
(#142) Line indented incorrectly; expected at least 20 spaces, found 4
(#142) Variable "iframeText" must be all lower-case
(#144) Spaces must be used to indent lines; tabs are not allowed
(#144) Tab found within whitespace
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) This comment is 63% valid code; is this commented out code?
(#144) Line indented incorrectly; expected at least 20 spaces, found 4
(#144) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#145) Spaces must be used to indent lines; tabs are not allowed
(#145) Tab found within whitespace
(#145) Line indented incorrectly; expected 16 spaces, found 3
(#147) Spaces must be used to indent lines; tabs are not allowed
(#147) Tab found within whitespace
(#147) Line indented incorrectly; expected 16 spaces, found 3
(#148) Spaces must be used to indent lines; tabs are not allowed
(#148) Tab found within whitespace
(#148) This comment is 63% valid code; is this commented out code?
(#148) Inline comments must start with a capital letter, digit or 3-dots sequence
(#148) Line indented incorrectly; expected at least 20 spaces, found 4
(#148) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#149) Spaces must be used to indent lines; tabs are not allowed
(#149) Tab found within whitespace
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#149) Line indented incorrectly; expected at least 20 spaces, found 4
(#150) Spaces must be used to indent lines; tabs are not allowed
(#150) Tab found within whitespace
(#150) Line indented incorrectly; expected at least 20 spaces, found 4
(#151) Spaces must be used to indent lines; tabs are not allowed
(#151) Tab found within whitespace
(#151) Line indented incorrectly; expected 16 spaces, found 3
(#151) Spaces must be used for alignment; tabs are not allowed
(#151) Tab found within whitespace
(#151) Whitespace found at end of line
(#152) Spaces must be used for alignment; tabs are not allowed
(#152) Tab found within whitespace
(#152) This comment is 55% valid code; is this commented out code?
(#152) Inline comments must start with a capital letter, digit or 3-dots sequence
(#152) Line indented incorrectly; expected at least 16 spaces, found 3
(#152) No space found before comment text; expected "// $text = encodeURLs($text, $options);" but found "//$text = encodeURLs($text, $options);"
(#153) Line indented incorrectly; expected at least 16 spaces, found 0
(#153) Tab found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "// echo "<script>console.log(".$text.")</script>";"
(#154) Spaces must be used for alignment; tabs are not allowed
(#154) Tab found within whitespace
(#154) This comment is 73% valid code; is this commented out code?
(#154) Line indented incorrectly; expected at least 16 spaces, found 2
(#154) No space found before comment text; expected "// echo "<script>console.log(".$newtext['url'].")</script>";" but found "//echo "<script>console.log(".$newtext['url'].")</script>";"
(#155) Spaces must be used for alignment; tabs are not allowed
(#155) Tab found within whitespace
(#155) This comment is 73% valid code; is this commented out code?
(#155) Line indented incorrectly; expected at least 16 spaces, found 2
(#155) No space found before comment text; expected "// echo "<script>console.log(".$b64text[1].")</script>";" but found "//echo "<script>console.log(".$b64text[1].")</script>";"
(#156) Spaces must be used for alignment; tabs are not allowed
(#156) Tab found within whitespace
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) This comment is 64% valid code; is this commented out code?
(#156) Line indented incorrectly; expected at least 16 spaces, found 2
(#156) No space found before comment text; expected "// echo "<br/><script>console.log(".json_encode($text).")</script>";" but found "//echo "<br/><script>console.log(".json_encode($text).")</script>";"
(#157) Spaces must be used for alignment; tabs are not allowed
(#157) Tab found within whitespace
(#157) Line indented incorrectly; expected 12 spaces, found 2
(#158) Spaces must be used for alignment; tabs are not allowed
(#158) Tab found within whitespace
(#158) This comment is 100% valid code; is this commented out code?
(#158) Inline comments must start with a capital letter, digit or 3-dots sequence
(#158) Line indented incorrectly; expected at least 12 spaces, found 2
(#158) No space found before comment text; expected "// else" but found "//else"
(#159) Spaces must be used for alignment; tabs are not allowed
(#159) Tab found within whitespace
(#159) This comment is 100% valid code; is this commented out code?
(#159) Line indented incorrectly; expected at least 12 spaces, found 2
(#159) No space found before comment text; expected "// {" but found "//{"
(#160) Spaces must be used for alignment; tabs are not allowed
(#160) Tab found within whitespace
(#160) This comment is 67% valid code; is this commented out code?
(#160) Line indented incorrectly; expected at least 12 spaces, found 2
(#160) Tab found before comment text; expected "// break;" but found "// break;"
(#161) Spaces must be used for alignment; tabs are not allowed
(#161) Tab found within whitespace
(#161) This comment is 63% valid code; is this commented out code?
(#161) Line indented incorrectly; expected at least 12 spaces, found 3
(#161) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#162) Spaces must be used for alignment; tabs are not allowed
(#162) Tab found within whitespace
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#162) This comment is 100% valid code; is this commented out code?
(#162) Line indented incorrectly; expected at least 12 spaces, found 2
(#162) No space found before comment text; expected "// }" but found "//}"
(#164) Spaces must be used for alignment; tabs are not allowed
(#164) Tab found within whitespace
(#164) Line indented incorrectly; expected 8 spaces, found 1
(#165) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#166) Whitespace found at end of line
(#167) Spaces must be used for alignment; tabs are not allowed
(#167) Tab found within whitespace
(#167) Line indented incorrectly; expected at least 8 spaces, found 1
(#167) Spaces must be used for alignment; tabs are not allowed
(#167) Tab found within whitespace
(#167) Whitespace found at end of line
(#168) Line indented incorrectly; expected 4 spaces, found 2
(#170) Line indented incorrectly; expected 4 spaces, found 2
(#170) method name "filter_learn360::encodeURLs" must be in lower-case letters only
(#170) Visibility must be declared on method "encodeURLs"
(#171) Spaces must be used for alignment; tabs are not allowed
(#171) Tab found within whitespace
(#171) Line indented incorrectly; expected at least 4 spaces, found 1
(#171) Opening brace should be on the same line as the declaration
(#172) Spaces must be used for alignment; tabs are not allowed
(#172) Tab found within whitespace
(#172) Line indented incorrectly; expected 8 spaces, found 2
(#173) Spaces must be used for alignment; tabs are not allowed
(#173) Tab found within whitespace
(#173) Inline comments must start with a capital letter, digit or 3-dots sequence
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) Line indented incorrectly; expected at least 12 spaces, found 2
(#174) Spaces must be used for alignment; tabs are not allowed
(#174) Tab found within whitespace
(#174) Line indented incorrectly; expected at least 12 spaces, found 3
(#175) Spaces must be used for alignment; tabs are not allowed
(#175) Tab found within whitespace
(#175) Line indented incorrectly; expected 8 spaces, found 2
(#177) Spaces must be used for alignment; tabs are not allowed
(#177) Tab found within whitespace
(#177) Line indented incorrectly; expected 8 spaces, found 2
(#178) Spaces must be used for alignment; tabs are not allowed
(#178) Tab found within whitespace
(#178) Line indented incorrectly; expected at least 12 spaces, found 2
(#179) Spaces must be used for alignment; tabs are not allowed
(#179) Tab found within whitespace
(#179) Line indented incorrectly; expected at least 12 spaces, found 3
(#180) Spaces must be used for alignment; tabs are not allowed
(#180) Tab found within whitespace
(#180) Line indented incorrectly; expected 8 spaces, found 2
(#182) Spaces must be used for alignment; tabs are not allowed
(#182) Tab found within whitespace
(#182) Line indented incorrectly; expected at least 8 spaces, found 2
(#184) Spaces must be used for alignment; tabs are not allowed
(#184) Tab found within whitespace
(#184) Line indented incorrectly; expected at least 8 spaces, found 2
(#186) Spaces must be used for alignment; tabs are not allowed
(#186) Tab found within whitespace
(#186) This comment is 52% valid code; is this commented out code?
(#186) Line indented incorrectly; expected at least 8 spaces, found 2
(#187) Line indented incorrectly; expected at least 8 spaces, found 3
(#188) Line indented incorrectly; expected at least 8 spaces, found 3
(#190) Spaces must be used for alignment; tabs are not allowed
(#190) Tab found within whitespace
(#190) Inline comments must start with a capital letter, digit or 3-dots sequence
(#190) Inline comments must end in full-stops, exclamation marks, or question marks
(#190) This comment is 73% valid code; is this commented out code?
(#190) Line indented incorrectly; expected at least 8 spaces, found 2
(#190) No space found before comment text; expected "// preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\"/", $text, $newtext);" but found "//preg_match("/<a\s+(?:[^>]*?\s+)?href=\"([^\"]*)\"/", $text, $newtext);"
(#191) Spaces must be used for alignment; tabs are not allowed
(#191) Tab found within whitespace
(#191) Line indented incorrectly; expected at least 8 spaces, found 2
(#193) Spaces must be used for alignment; tabs are not allowed
(#193) Tab found within whitespace
(#193) Inline comments must start with a capital letter, digit or 3-dots sequence
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) This comment is 73% valid code; is this commented out code?
(#193) Line indented incorrectly; expected at least 8 spaces, found 2
(#193) No space found before comment text; expected "// echo "<script>console.log(".$newtext[0].")</script>";" but found "//echo "<script>console.log(".$newtext[0].")</script>";"
(#195) Spaces must be used for alignment; tabs are not allowed
(#195) Tab found within whitespace
(#195) Inline comments must start with a capital letter, digit or 3-dots sequence
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) This comment is 75% valid code; is this commented out code?
(#195) Line indented incorrectly; expected at least 8 spaces, found 2
(#195) No space found before comment text; expected "// $text=$newtext;" but found "//$text=$newtext;"
(#197) Spaces must be used for alignment; tabs are not allowed
(#197) Tab found within whitespace
(#197) Line indented incorrectly; expected at least 8 spaces, found 2
(#197) Expected 1 space after "="; 2 found
(#198) Spaces must be used for alignment; tabs are not allowed
(#198) Tab found within whitespace
(#198) Line indented incorrectly; expected at least 8 spaces, found 2
(#200) Spaces must be used for alignment; tabs are not allowed
(#200) Tab found within whitespace
(#200) Line indented incorrectly; expected 8 spaces, found 2
(#200) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#201) Spaces must be used for alignment; tabs are not allowed
(#201) Tab found within whitespace
(#201) Line indented incorrectly; expected at least 8 spaces, found 2
(#202) Spaces must be used for alignment; tabs are not allowed
(#202) Tab found within whitespace
(#202) Line indented incorrectly; expected at least 12 spaces, found 3
(#204) Spaces must be used for alignment; tabs are not allowed
(#204) Tab found within whitespace
(#204) Line indented incorrectly; expected at least 12 spaces, found 3
(#204) Expected 1 space before "-"; 0 found
(#204) Expected 1 space after "-"; 0 found
(#205) Spaces must be used for alignment; tabs are not allowed
(#205) Tab found within whitespace
(#205) Line indented incorrectly; expected at least 12 spaces, found 3
(#205) Expected 1 space after "-"; 0 found
(#207) Spaces must be used for alignment; tabs are not allowed
(#207) Tab found within whitespace
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) This comment is 63% valid code; is this commented out code?
(#207) Line indented incorrectly; expected at least 12 spaces, found 3
(#207) No space found before comment text; expected "// echo "<script>console.log(".$height.")</script>";" but found "//echo "<script>console.log(".$height.")</script>";"
(#208) Spaces must be used for alignment; tabs are not allowed
(#208) Tab found within whitespace
(#208) Line indented incorrectly; expected 8 spaces, found 2
(#210) Spaces must be used for alignment; tabs are not allowed
(#210) Tab found within whitespace
(#210) Line indented incorrectly; expected 8 spaces, found 2
(#210) Expected "if (...) {\n"; found "if(...) {\n"
(#212) Spaces must be used for alignment; tabs are not allowed
(#212) Tab found within whitespace
(#212) Line indented incorrectly; expected at least 12 spaces, found 3
(#212) Variable "iframeText" must be all lower-case
(#212) Line exceeds 132 characters; contains 153 characters
(#214) Spaces must be used for alignment; tabs are not allowed
(#214) Tab found within whitespace
(#214) Line indented incorrectly; expected at least 12 spaces, found 3
(#214) Variable "iframeText" must be all lower-case
(#216) Spaces must be used for alignment; tabs are not allowed
(#216) Tab found within whitespace
(#216) Inline comments must start with a capital letter, digit or 3-dots sequence
(#216) Inline comments must end in full-stops, exclamation marks, or question marks
(#216) This comment is 63% valid code; is this commented out code?
(#216) Line indented incorrectly; expected at least 12 spaces, found 3
(#216) No space found before comment text; expected "// echo "<script>console.log(".$text.")</script>";" but found "//echo "<script>console.log(".$text.")</script>";"
(#217) Spaces must be used for alignment; tabs are not allowed
(#217) Tab found within whitespace
(#217) Line indented incorrectly; expected 8 spaces, found 2
(#219) Spaces must be used for alignment; tabs are not allowed
(#219) Tab found within whitespace
(#219) Line indented incorrectly; expected 8 spaces, found 2
(#220) Spaces must be used for alignment; tabs are not allowed
(#220) Tab found within whitespace
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#220) Line indented incorrectly; expected at least 12 spaces, found 3
(#221) Spaces must be used for alignment; tabs are not allowed
(#221) Tab found within whitespace
(#221) Line indented incorrectly; expected at least 12 spaces, found 3
(#222) Spaces must be used for alignment; tabs are not allowed
(#222) Tab found within whitespace
(#222) Line indented incorrectly; expected 8 spaces, found 2
(#224) Spaces must be used for alignment; tabs are not allowed
(#224) Tab found within whitespace
(#224) Line indented incorrectly; expected at least 8 spaces, found 2
(#225) Spaces must be used for alignment; tabs are not allowed
(#225) Tab found within whitespace
(#225) Line indented incorrectly; expected 4 spaces, found 1
(#225) Closing brace indented incorrectly; expected 2 spaces, found 1
(#226) Whitespace found at end of line
(#227) Line indented incorrectly; expected at least 4 spaces, found 2
(#228) Expected 3 space(s) before asterisk; 5 found
(#229) Expected 3 space(s) before asterisk; 5 found
(#230) Expected 3 space(s) before asterisk; 5 found
(#231) Expected 3 space(s) before asterisk; 5 found
(#232) Expected 3 space(s) before asterisk; 5 found
(#235) Whitespace found at end of line
(#242) Expected 1 space after "="; 2 found
(#244) Whitespace found at end of line
(#245) Line exceeds 132 characters; contains 158 characters
(#246) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#249) Spaces must be used for alignment; tabs are not allowed
(#249) Tab found within whitespace
(#249) Line indented incorrectly; expected at least 8 spaces, found 2
(#250) Spaces must be used for alignment; tabs are not allowed
(#250) Tab found within whitespace
(#250) Whitespace found at end of line
(#250) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#252) Spaces must be used for alignment; tabs are not allowed
(#252) Tab found within whitespace
(#252) Whitespace found at end of line
(#257) Inline comments must start with a capital letter, digit or 3-dots sequence
(#257) Inline comments must end in full-stops, exclamation marks, or question marks
(#257) This comment is 86% valid code; is this commented out code?
(#257) No space found before comment text; expected "// return $obj[0];" but found "//return $obj[0];"
filter/learn360/version.php
(#33) This comment is 53% valid code; is this commented out code?

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

(13 errors, 0 warnings)

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

filter/learn360/db/install.php
(#25) Function xmldb_filter_learn360_install is not documented
(#17) File-level phpdocs block does not have @copyright tag
(#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
(#170) Function filter_learn360::encodeURLs is not documented
(#31) Variable filter_learn360::$embedmarkers is not documented
(#18) File-level phpdocs block does not have @copyright tag
(#20) Invalid phpdocs tag @Author used
filter/learn360/lang/en/filter_learn360.php
(#18) File-level phpdocs block does not have @copyright tag
(#21) Invalid phpdocs tag @Author used
filter/learn360/version.php
(#18) File-level phpdocs block does not have @copyright tag
(#20) Invalid phpdocs tag @Author used

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]