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

(311 errors, 24 warnings)

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

blocks/slider/block_slider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
(#25) Spaces must be used to indent lines; tabs are not allowed
(#25) Tab found within whitespace
(#25) Line indented incorrectly; expected 4 spaces, found 1
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Line indented incorrectly; expected at least 8 spaces, found 4
(#27) Line indented incorrectly; expected 4 spaces, found 3
(#27) Closing brace indented incorrectly; expected 1 spaces, found 3
(#28) Line indented incorrectly; expected at least 4 spaces, found 3
(#29) Line indented incorrectly; expected at least 4 spaces, found 3
(#31) Line indented incorrectly; expected 4 spaces, found 3
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 8 spaces, found 4
(#33) Line indented incorrectly; expected at least 8 spaces, found 6
(#34) Line indented incorrectly; expected at least 8 spaces, found 6
(#35) Line indented incorrectly; expected at least 8 spaces, found 6
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Whitespace found at end of line
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line indented incorrectly; expected 8 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 7
(#39) Line indented incorrectly; expected 8 spaces, found 6
(#39) Closing brace indented incorrectly; expected 2 spaces, found 6
(#41) Line indented incorrectly; expected at least 8 spaces, found 6
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Whitespace found at end of line
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected 8 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 at least 12 spaces, found 7
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected 8 spaces, found 2
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected at least 12 spaces, found 3
(#46) Spaces must be used for alignment; tabs are not allowed
(#46) Tab found within whitespace
(#46) Whitespace found at end of line
(#47) Spaces must be used for alignment; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected 8 spaces, found 2
(#49) Spaces must be used for alignment; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 8 spaces, found 2
(#51) Spaces must be used for alignment; tabs are not allowed
(#51) Tab found within whitespace
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Line indented incorrectly; expected at least 8 spaces, found 2
(#51) No space found before comment text; expected "// get and display images" but found "//get and display images"
(#52) Spaces must be used for alignment; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) Spaces must be used for alignment; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 8 spaces, found 2
(#54) Spaces must be used for alignment; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected 8 spaces, found 2
(#55) Spaces must be used for alignment; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 12 spaces, found 3
(#56) Spaces must be used for alignment; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected 12 spaces, found 6
(#57) Spaces must be used for alignment; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 16 spaces, found 6
(#57) Line exceeds 132 characters; contains 156 characters
(#58) Spaces must be used for alignment; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 16 spaces, found 4
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected 12 spaces, found 3
(#59) Closing brace indented incorrectly; expected 6 spaces, found 3
(#60) Spaces must be used for alignment; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected 8 spaces, found 2
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Line indented incorrectly; expected at least 8 spaces, found 2
(#61) No space found before comment text; expected "// Navigation Left/Right" but found "//Navigation Left/Right"
(#62) Line indented incorrectly; expected 8 spaces, found 6
(#63) Spaces must be used for alignment; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 12 spaces, found 7
(#63) Line exceeds 132 characters; contains 140 characters
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 12 spaces, found 3
(#64) Line exceeds 132 characters; contains 133 characters
(#65) Line indented incorrectly; expected 8 spaces, found 6
(#66) Whitespace found at end of line
(#67) Spaces must be used for alignment; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 8 spaces, found 2
(#69) Spaces must be used for alignment; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected 8 spaces, found 2
(#70) Spaces must be used for alignment; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 12 spaces, found 7
(#71) Line indented incorrectly; expected 8 spaces, found 6
(#71) Closing brace indented incorrectly; expected 2 spaces, found 6
(#72) Spaces must be used for alignment; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 12 spaces, found 7
(#73) Line indented incorrectly; expected 8 spaces, found 6
(#74) Whitespace found at end of line
(#75) Spaces must be used for alignment; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected 8 spaces, found 2
(#76) Spaces must be used for alignment; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 12 spaces, found 7
(#77) Line indented incorrectly; expected 8 spaces, found 6
(#77) Closing brace indented incorrectly; expected 2 spaces, found 6
(#78) Spaces must be used for alignment; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 12 spaces, found 7
(#79) Line indented incorrectly; expected 8 spaces, found 6
(#80) Spaces must be used for alignment; tabs are not allowed
(#80) Tab found within whitespace
(#80) Whitespace found at end of line
(#81) Spaces must be used for alignment; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected 8 spaces, found 2
(#81) Spaces must be used for alignment; tabs are not allowed
(#81) Tab found within whitespace
(#81) Whitespace found at end of line
(#82) Spaces must be used for alignment; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 12 spaces, found 7
(#83) Line indented incorrectly; expected 8 spaces, found 6
(#83) Closing brace indented incorrectly; expected 2 spaces, found 6
(#84) Spaces must be used for alignment; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 12 spaces, found 7
(#85) Line indented incorrectly; expected 8 spaces, found 6
(#87) Line indented incorrectly; expected 8 spaces, found 6
(#88) Line indented incorrectly; expected at least 12 spaces, found 9
(#89) Line indented incorrectly; expected 8 spaces, found 6
(#90) Line indented incorrectly; expected at least 12 spaces, found 9
(#91) Line indented incorrectly; expected 8 spaces, found 6
(#93) Line indented incorrectly; expected 8 spaces, found 6
(#94) Line indented incorrectly; expected at least 12 spaces, found 9
(#95) Line indented incorrectly; expected 8 spaces, found 6
(#96) Line indented incorrectly; expected at least 12 spaces, found 9
(#97) Line indented incorrectly; expected 8 spaces, found 6
(#99) Spaces must be used for alignment; tabs are not allowed
(#99) Tab found within whitespace
(#99) Line indented incorrectly; expected 8 spaces, found 2
(#100) Line indented incorrectly; expected at least 12 spaces, found 9
(#101) Line indented incorrectly; expected 8 spaces, found 6
(#101) Closing brace indented incorrectly; expected 2 spaces, found 6
(#102) Line indented incorrectly; expected at least 12 spaces, found 9
(#103) Line indented incorrectly; expected 8 spaces, found 6
(#105) Line indented incorrectly; expected at least 8 spaces, found 6
(#105) Whitespace found at end of line within string
(#106) Whitespace found at end of line within string
(#107) Whitespace found at end of line within string
(#108) Whitespace found at end of line within string
(#109) Whitespace found at end of line within string
(#110) Whitespace found at end of line within string
(#111) Whitespace found at end of line within string
(#112) Whitespace found at end of line within string
(#113) Whitespace found at end of line within string
(#114) Whitespace found at end of line within string
(#115) Whitespace found at end of line within string
(#116) Whitespace found at end of line within string
(#117) Whitespace found at end of line within string
(#118) Whitespace found at end of line within string
(#119) Whitespace found at end of line within string
(#120) Whitespace found at end of line within string
(#121) Whitespace found at end of line within string
(#122) Whitespace found at end of line within string
(#123) Whitespace found at end of line within string
(#124) Whitespace found at end of line within string
(#125) Whitespace found at end of line within string
(#126) Whitespace found at end of line within string
(#127) Whitespace found at end of line within string
(#128) Whitespace found at end of line within string
(#129) Whitespace found at end of line within string
(#130) Whitespace found at end of line within string
(#131) Whitespace found at end of line within string
(#132) Whitespace found at end of line within string
(#133) Whitespace found at end of line within string
(#134) Whitespace found at end of line within string
(#135) Whitespace found at end of line within string
(#136) Whitespace found at end of line within string
(#137) Whitespace found at end of line within string
(#138) Whitespace found at end of line within string
(#139) Whitespace found at end of line within string
(#140) Whitespace found at end of line within string
(#141) Whitespace found at end of line within string
(#142) Whitespace found at end of line within string
(#143) Whitespace found at end of line within string
(#145) Spaces must be used for alignment; tabs are not allowed
(#145) Tab found within whitespace
(#145) Whitespace found at end of line
(#146) Spaces must be used for alignment; tabs are not allowed
(#146) Tab found within whitespace
(#146) Line indented incorrectly; expected 8 spaces, found 2
(#147) Spaces must be used for alignment; tabs are not allowed
(#147) Tab found within whitespace
(#147) Line indented incorrectly; expected at least 12 spaces, found 3
(#148) Spaces must be used for alignment; tabs are not allowed
(#148) Tab found within whitespace
(#148) Line indented incorrectly; expected at least 12 spaces, found 3
(#149) Spaces must be used for alignment; tabs are not allowed
(#149) Tab found within whitespace
(#149) Line indented incorrectly; expected 8 spaces, found 2
(#151) Line indented incorrectly; expected at least 8 spaces, found 6
(#152) Spaces must be used for alignment; tabs are not allowed
(#152) Tab found within whitespace
(#152) Line indented incorrectly; expected 4 spaces, found 1
(#152) Closing brace indented incorrectly; expected 3 spaces, found 1
(#154) Line indented incorrectly; expected 4 spaces, found 3
(#154) Visibility must be declared on method "has_config"
(#155) Spaces must be used for alignment; tabs are not allowed
(#155) Tab found within whitespace
(#155) Line indented incorrectly; expected at least 8 spaces, found 2
(#156) Spaces must be used for alignment; tabs are not allowed
(#156) Tab found within whitespace
(#156) Line indented incorrectly; expected 4 spaces, found 1
(#156) Closing brace indented incorrectly; expected 3 spaces, found 1
(#157) Spaces must be used for alignment; tabs are not allowed
(#157) Tab found within whitespace
(#157) Line indented incorrectly; expected 4 spaces, found 1
(#158) Spaces must be used for alignment; tabs are not allowed
(#158) Tab found within whitespace
(#158) Line indented incorrectly; expected at least 8 spaces, found 2
(#159) Spaces must be used for alignment; tabs are not allowed
(#159) Tab found within whitespace
(#159) Line indented incorrectly; expected 4 spaces, found 1
(#160) Spaces must be used for alignment; tabs are not allowed
(#160) Tab found within whitespace
(#160) Line indented incorrectly; expected 4 spaces, found 1
(#161) Spaces must be used for alignment; tabs are not allowed
(#161) Tab found within whitespace
(#161) Line indented incorrectly; expected at least 8 spaces, found 4
(#162) Spaces must be used for alignment; tabs are not allowed
(#162) Tab found within whitespace
(#162) Line indented incorrectly; expected at least 8 spaces, found 5
(#163) Spaces must be used for alignment; tabs are not allowed
(#163) Tab found within whitespace
(#163) Line indented incorrectly; expected at least 8 spaces, found 5
(#164) Spaces must be used for alignment; tabs are not allowed
(#164) Tab found within whitespace
(#164) Line indented incorrectly; expected at least 8 spaces, found 4
(#165) Spaces must be used for alignment; tabs are not allowed
(#165) Tab found within whitespace
(#165) Line indented incorrectly; expected 4 spaces, found 1
(#166) Line indented incorrectly; expected 4 spaces, found 3
(#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 2
(#168) Spaces must be used for alignment; tabs are not allowed
(#168) Tab found within whitespace
(#168) Line indented incorrectly; expected 8 spaces, found 2
(#168) Expected "if (...) {\n"; found "if(...){\n"
(#169) Spaces must be used for alignment; tabs are not allowed
(#169) Tab found within whitespace
(#169) Line indented incorrectly; expected at least 12 spaces, found 7
(#170) Spaces must be used for alignment; tabs are not allowed
(#170) Tab found within whitespace
(#170) Line indented incorrectly; expected 8 spaces, found 2
(#171) Spaces must be used for alignment; tabs are not allowed
(#171) Tab found within whitespace
(#171) Line indented incorrectly; expected at least 12 spaces, found 3
(#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) Line indented incorrectly; expected 4 spaces, found 3
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/slider/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#46) Line indented incorrectly; expected at least 4 spaces, found 0
blocks/slider/edit_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#23) Expected MOODLE_INTERNAL check or config.php inclusion
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) No space found before comment text; expected "// slider width" but found "//slider width"
(#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) No space found before comment text; expected "// slider height" but found "//slider height"
(#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
(#41) No space found before comment text; expected "// slider int" but found "//slider int"
(#45) Commas (,) must be followed by white space.
(#46) Line exceeds 132 characters; contains 172 characters
(#48) Line exceeds 132 characters; contains 172 characters
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected at least 8 spaces, found 4
(#50) Line exceeds 132 characters; contains 179 characters
(#50) Spaces must be used for alignment; tabs are not allowed
(#50) Tab found within whitespace
(#50) Whitespace found at end of line
(#57) Visibility must be declared on method "set_data"
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#73) Whitespace found at end of line
blocks/slider/lang/en/block_slider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/slider/lang/pl/block_slider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/slider/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
(#25) Variable "birecord_or_cm" must not contain underscores.
(#27) Spaces must be used to indent lines; tabs are not allowed
(#27) Tab found within whitespace
(#27) Whitespace found at end of line
(#63) Variable "birecord_or_cm" must not contain underscores.
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) No space found before comment text; expected "// because we do not have reliable way to find out from where this is used" but found "//because we do not have reliable way to find out from where this is used"
(#70) Inline comments must start with a capital letter, digit or 3-dots sequence
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Expected 1 space before "*"; 0 found
(#75) Expected 1 space after "*"; 0 found
blocks/slider/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#25) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 12 warnings)

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

blocks/slider/js/jquery.slides.js
(#72) Line is too long.
(#325) Line is too long.
(#328) Line is too long.
(#346) Did you mean to return a conditional instead of an assignment?
(#381) Wrapping non-IIFE function literals in parens is unnecessary.
(#398) Wrapping non-IIFE function literals in parens is unnecessary.
(#503) Wrapping non-IIFE function literals in parens is unnecessary.
(#551) Wrapping non-IIFE function literals in parens is unnecessary.
(#561) Wrapping non-IIFE function literals in parens is unnecessary.
(#560) Wrapping non-IIFE function literals in parens is unnecessary.
(#589) Did you mean to return a conditional instead of an assignment?
(#596) 'jQuery' is not defined.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(11 errors, 0 warnings)

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

blocks/slider/block_slider.php
(#17) File-level phpdocs block is not found
(#25) Function block_slider::init is not documented
(#31) Function block_slider::get_content is not documented
(#154) Function block_slider::has_config is not documented
(#157) Function block_slider::instance_allow_multiple is not documented
(#160) Function block_slider::applicable_formats is not documented
(#166) Function block_slider::hide_header is not documented
blocks/slider/edit_form.php
(#16) File-level phpdocs block is not found
(#25) Function block_slider_edit_form::specific_definition is not documented
(#57) Function block_slider_edit_form::set_data is not documented
blocks/slider/lib.php
(#25) Function block_slider_pluginfile 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]