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

(183 errors, 48 warnings)

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

filter/botr/db/install.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
filter/botr/db/upgrade.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
filter/botr/filter.php
(#21) Whitespace found at end of line
(#22) Whitespace found at end of line
(#24) Whitespace found at end of line
(#30) Whitespace found at end of line
(#37) Visibility must be declared on method "filter"
(#38) This comment is 43% valid code; is this commented out code?
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Line indented incorrectly; expected at least 8 spaces, found 0
(#38) Expected 1 space before comment text but found 7; use block comment if you need indentation
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Line indented incorrectly; expected at least 8 spaces, found 0
(#39) Tab found before comment text; expected "// $text .= "<br> botr filter aktiv";" but found "// $text .= "<br> botr filter aktiv";"
(#41) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Line indented incorrectly; expected at least 12 spaces, found 11
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) This comment is 67% valid code; is this commented out code?
(#48) Line indented incorrectly; expected at least 12 spaces, found 3
(#48) No space found before comment text; expected "// return $text."<br> botr filter shortcut, no [botr -Tag";" but found "//return $text."<br> botr filter shortcut, no [botr -Tag";"
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Line indented incorrectly; expected at least 8 spaces, found 0
(#52) No space found before comment text; expected "// print_object("Vorher:".$newtext);" but found "//print_object("Vorher:".$newtext);"
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 8 spaces, found 2
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) This comment is 72% valid code; is this commented out code?
(#55) Line indented incorrectly; expected at least 8 spaces, found 0
(#55) No space found before comment text; expected "// print_object("Nachher:".$newtext);" but found "//print_object("Nachher:".$newtext);"
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) This comment is 58% valid code; is this commented out code?
(#59) Line indented incorrectly; expected at least 12 spaces, found 11
(#60) Line indented incorrectly; expected at least 12 spaces, found 11
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) This comment is 58% valid code; is this commented out code?
(#63) Line indented incorrectly; expected at least 8 spaces, found 0
(#63) Expected 1 space before comment text but found 6; use block comment if you need indentation
(#81) This comment is 69% valid code; is this commented out code?
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#81) Line indented incorrectly; expected at least 4 spaces, found 0
(#81) No space found before comment text; expected "// echo '<pre>'; print_r($arguments);echo '</pre>';" but found "//echo '<pre>'; print_r($arguments);echo '</pre>';"
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Line indented incorrectly; expected at least 4 spaces, found 0
(#82) No space found before comment text; expected "// echo '<pre>'; print_r($CFG);echo '</pre>';" but found "//echo '<pre>'; print_r($CFG);echo '</pre>';"
(#83) Variable "video_hash" must not contain underscores.
(#84) Expected "if (...) {\n"; found "if (...){\n"
(#85) Variable "player_hash" must not contain underscores.
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Variable "player_hash" must not contain underscores.
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Variable "content_mask" must not contain underscores.
(#89) Space found before semicolon; expected "botr_dnsmask;" but found "botr_dnsmask ;"
(#91) Variable "video_hash" must not contain underscores.
(#92) Expected "if (...) {\n"; found "if(...) {\n"
(#93) Variable "content_mask" must not contain underscores.
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Variable "api_secret" must not contain underscores.
(#98) Variable "content_mask" must not contain underscores.
(#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 56% valid code; is this commented out code?
(#99) Line indented incorrectly; expected at least 8 spaces, found 0
(#99) Tab found before comment text; expected "// echo "<pre>".$url."</pre><br>";" but found "// echo "<pre>".$url."</pre><br>";"
(#103) A closing tag is not permitted at the end of a PHP file
filter/botr/filtersettings.php
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Line indented incorrectly; expected at least 4 spaces, found 0
(#29) No space found before comment text; expected "// just a headline" but found "//just a headline"
(#30) Line indented incorrectly; expected at least 4 spaces, found 0
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
(#31) Line indented incorrectly; expected at least 4 spaces, found 1
(#31) Spaces must be used for alignment; tabs are not allowed
(#31) Tab found within whitespace
(#31) Whitespace found at end of line
(#32) Spaces must be used for alignment; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#32) Commas (,) must be followed by white space.
(#32) Whitespace found at end of line
(#33) Spaces must be used for alignment; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Commas (,) must be followed by white space.
(#34) Spaces must be used for alignment; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected at least 4 spaces, found 1
(#35) Line indented incorrectly; expected at least 4 spaces, found 0
(#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 4 spaces, found 0
(#38) Line indented incorrectly; expected at least 4 spaces, found 0
(#39) Spaces must be used for alignment; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected at least 4 spaces, found 1
(#40) Spaces must be used for alignment; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 4 spaces, found 1
(#40) Commas (,) must be followed by white space.
(#41) Spaces must be used for alignment; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 4 spaces, found 1
(#41) Commas (,) must be followed by white space.
(#42) Spaces must be used for alignment; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 4 spaces, found 1
(#43) Spaces must be used for alignment; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected at least 4 spaces, found 1
(#44) Spaces must be used for alignment; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#45) Spaces must be used for alignment; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 4 spaces, found 1
(#46) Line indented incorrectly; expected at least 4 spaces, found 0
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Line indented incorrectly; expected at least 4 spaces, found 0
(#49) Line indented incorrectly; expected at least 4 spaces, found 0
(#51) Commas (,) must be followed by white space.
(#52) Commas (,) must be followed by white space.
(#57) Line indented incorrectly; expected at least 4 spaces, found 0
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Line indented incorrectly; expected at least 4 spaces, found 0
(#59) No space found before comment text; expected "// botr_timeout" but found "//botr_timeout"
(#59) Whitespace found at end of line
(#60) Line indented incorrectly; expected at least 4 spaces, found 0
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 4 spaces, found 1
(#62) Spaces must be used for alignment; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 4 spaces, found 1
(#62) Commas (,) must be followed by white space.
(#63) Spaces must be used for alignment; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 4 spaces, found 1
(#63) Commas (,) must be followed by white space.
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 4 spaces, found 1
(#65) Spaces must be used for alignment; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Spaces must be used for alignment; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 4 spaces, found 1
(#67) Line indented incorrectly; expected at least 4 spaces, found 0
(#68) Spaces must be used for alignment; tabs are not allowed
(#68) Tab found within whitespace
(#68) Whitespace found at end of line
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Line indented incorrectly; expected at least 4 spaces, found 0
(#69) No space found before comment text; expected "// botr_dnsmask" but found "//botr_dnsmask"
(#69) Whitespace found at end of line
(#70) Line indented incorrectly; expected at least 4 spaces, found 0
(#71) Spaces must be used for alignment; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 4 spaces, found 1
(#72) Spaces must be used for alignment; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 4 spaces, found 1
(#72) Commas (,) must be followed by white space.
(#73) Spaces must be used for alignment; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 4 spaces, found 1
(#73) Commas (,) must be followed by white space.
(#74) Spaces must be used for alignment; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected at least 4 spaces, found 1
(#76) Spaces must be used for alignment; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 4 spaces, found 1
(#77) Spaces must be used for alignment; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected at least 4 spaces, found 1
(#78) Line indented incorrectly; expected at least 4 spaces, found 0
(#80) Inline comments must start with a capital letter, digit or 3-dots sequence
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Line indented incorrectly; expected at least 4 spaces, found 0
(#80) No space found before comment text; expected "// botr_defaultplayer für diesen Kunden" but found "//botr_defaultplayer für diesen Kunden"
(#81) Line indented incorrectly; expected at least 4 spaces, found 0
(#82) Spaces must be used for alignment; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 4 spaces, found 1
(#83) Spaces must be used for alignment; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected at least 4 spaces, found 1
(#83) Commas (,) must be followed by white space.
(#84) Spaces must be used for alignment; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 4 spaces, found 1
(#84) Commas (,) must be followed by white space.
(#85) Spaces must be used for alignment; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 4 spaces, found 1
(#86) Spaces must be used for alignment; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected at least 4 spaces, found 1
(#87) Spaces must be used for alignment; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected at least 4 spaces, found 1
(#88) Spaces must be used for alignment; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected at least 4 spaces, found 1
(#89) Line indented incorrectly; expected at least 4 spaces, found 0
(#90) Spaces must be used for alignment; tabs are not allowed
(#90) Tab found within whitespace
(#90) Whitespace found at end of line
(#95) Spaces must be used for alignment; tabs are not allowed
(#95) Tab found within whitespace
(#95) Whitespace found at end of line
filter/botr/lang/de/filter_botr.php
(#23) Whitespace found at end of line

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(6 errors, 0 warnings)

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

filter/botr/db/install.php
(#25) Function xmldb_filter_botr_install is not documented
filter/botr/db/upgrade.php
(#25) Function xmldb_filter_botr_upgrade is not documented
filter/botr/filter.php
(#35) Class filter_botr is not documented
(#37) Function filter_botr::filter is not documented
(#79) Function botr_create_js_embed is not documented
(#17) No one-line description found in phpdocs for file

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]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]