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

(69 errors, 5 warnings)

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

repository/filmsondemand/callback.php
(#20) Whitespace found at end of line
(#22) Whitespace found at end of line
(#32) Variable "fileShortPlusSource" must be all lower-case
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) This comment is 47% valid code; is this commented out code?
(#33) Expected 1 space after "="; 2 found
(#35) Line indented incorrectly; expected at least 4 spaces, found 0
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
(#43) Commas (,) must be followed by white space.
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
(#46) Expected 1 space after "="; 0 found
(#53) Whitespace found at end of line within string
repository/filmsondemand/lang/en/repository_filmsondemand.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#28) Expected 1 space after "="; 2 found
repository/filmsondemand/lib.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
(#45) Variable "tempURl" must be all lower-case
(#47) Whitespace found at end of line
(#48) Expected 1 space after "="; 2 found
(#48) Variable "tempURl" must be all lower-case
(#55) Whitespace found at end of line
(#70) Whitespace found at end of line
(#77) Commas (,) must be followed by white space.
(#88) Variable "launchURl" must be all lower-case
(#89) Whitespace found at end of line
(#93) Whitespace found at end of line
(#94) Line indented incorrectly; expected 8 spaces, found 9
(#94) Variable "launchURl" must be all lower-case
(#95) Variable "launchURl" must be all lower-case
(#96) Closing brace indented incorrectly; expected 9 spaces, found 8
(#99) Whitespace found at end of line
(#100) Expected 1 space before "=>"; 0 found
(#100) Expected 1 space after "=>"; 0 found
(#100) Variable "launchURl" must be all lower-case
(#100) Commas (,) must be followed by white space.
(#100) Line exceeds 132 characters; contains 145 characters
(#103) Whitespace found at end of line
(#104) Expected 1 space before "=>"; 0 found
(#104) Expected 1 space after "=>"; 0 found
(#104) Commas (,) must be followed by white space.
(#104) Line exceeds 132 characters; contains 148 characters
(#107) Whitespace found at end of line
(#108) Whitespace found at end of line
(#110) Line indented incorrectly; expected at least 8 spaces, found 4
(#110) Variable "templaunchUrl" must be all lower-case
(#110) Whitespace found at end of line
(#111) Whitespace found at end of line
(#112) Line indented incorrectly; expected 8 spaces, found 4
(#112) Expected "if (...) {\n"; found "if(...)\n {\n"
(#112) Variable "templaunchUrl" must be all lower-case
(#114) Line indented incorrectly; expected at least 12 spaces, found 10
(#115) Closing brace indented incorrectly; expected 4 spaces, found 8
(#116) Line indented incorrectly; expected 8 spaces, found 4
(#116) Expected "} else {\n"; found "}\n else\n {\n"
(#118) Line indented incorrectly; expected 12 spaces, found 13
(#118) Expected "if (...) {\n"; found "if(...)\n {\n"
(#118) Variable "templaunchUrl" must be all lower-case
(#118) Whitespace found at end of line
(#119) Variable "templaunchUrl" must be all lower-case
(#119) Expected 1 space before "==="; 4 found
(#122) Line indented incorrectly; expected 12 spaces, found 16
(#122) Closing brace indented incorrectly; expected 13 spaces, found 16
(#123) Expected "} else {\n"; found "}\n else\n {\n"
(#125) Whitespace found at end of line
(#126) Line indented incorrectly; expected 12 spaces, found 16
(#126) Closing brace indented incorrectly; expected 12 spaces, found 16
(#127) Closing brace indented incorrectly; expected 4 spaces, found 8
(#128) Whitespace found at end of line
(#131) Whitespace found at end of line
(#140) 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 eslint [More info]


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(17 errors, 1 warnings)

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

repository/filmsondemand/callback.php
(#17) File-level phpdocs block does not have @copyright tag
(#22) Invalid phpdocs tag @Author used
repository/filmsondemand/db/access.php
(#17) File-level phpdocs block does not have @copyright tag
(#21) Invalid phpdocs tag @Author used
repository/filmsondemand/lang/en/repository_filmsondemand.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#22) Invalid phpdocs tag @Author used
repository/filmsondemand/lib.php
(#28) Class repository_filmsondemand is not documented
(#30) Function repository_filmsondemand::__construct is not documented
(#109) Function repository_filmsondemand::type_form_validation is not documented
(#141) Function repository_filmsondemand::supported_filetypes is not documented
(#37) Phpdocs for function repository_filmsondemand::get_listing has incomplete parameters list
(#83) Phpdocs for function repository_filmsondemand::type_config_form has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#22) Invalid phpdocs tag @Author used
repository/filmsondemand/version.php
(#17) File-level phpdocs block does not have @copyright tag
(#22) Invalid phpdocs tag @Author used
(#20) Package repository is not valid

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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