Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(145 errors, 11 warnings)

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

report/offlinequizcron/classes/job_files_table.php
(#39) Opening brace must not be followed by a blank line
(#78) Expected at least 1 space before "."; 0 found
(#81) Expected at least 1 space after "."; 0 found
(#98) Expected at least 1 space before "."; 0 found
(#101) Expected at least 1 space before "."; 0 found
(#114) Expected 1 newline at end of file; 0 found
report/offlinequizcron/classes/jobs_table.php
(#39) Opening brace must not be followed by a blank line
(#75) Expected 1 newline at end of file; 0 found
report/offlinequizcron/classes/privacy/provider.php
(#42) Expected 4 spaces before interface name; 0 found
(#42) Opening brace must not be followed by a blank line
(#50) There must not be a space before the colon in a return type declaration
(#53) Expected 1 newline at end of file; 0 found
report/offlinequizcron/db/access.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#34) There should be a comma after the last array item in a multi-line array.
(#38) There should be a comma after the last array item in a multi-line array.
report/offlinequizcron/download.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#40) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#44) Short array syntax must be used to define arrays
(#51) Space found before comma in argument list
(#51) Expected no space between "'default'" and the comma. Found: 1 space
(#53) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
report/offlinequizcron/index.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#35) Short array syntax must be used to define arrays
report/offlinequizcron/lang/en/report_offlinequizcron.php
(#41) The string key "importuser" is not in the correct order, it should be before "intro"
(#49) The string key "pagesize_details" is not in the correct order, it should be before "pagesize_jobs"
(#53) The string key "processingqueue" is not in the correct order, it should be before "processqueue"
(#57) The string key "search" is not in the correct order, it should be before "showjobswithstatus"
(#68) The string key "timefinish" is not in the correct order, it should be before "timestart"
report/offlinequizcron/locallib.php
(#53) Short array syntax must be used to define arrays
(#54) Opening parenthesis of a multi-line function call must be the last content on the line
(#55) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#55) Short array syntax must be used to define arrays
(#58) Multi-line function call not indented correctly; expected 4 spaces but found 18
(#58) Closing parenthesis of a multi-line function call must be on a line by itself
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#63) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#66) Short array syntax must be used to define arrays
(#69) Expected at least 1 space before "."; 0 found
(#77) Expected at least 1 space after "."; 0 found
(#95) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#118) Line exceeds 132 characters; contains 152 characters
(#134) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#147) Long list syntax is not allowed
(#174) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#191) Space found before comma in argument list
(#191) Expected no space between "jobtimefinish" and the comma. Found: 1 space
(#191) There should be a comma after the last array item in a multi-line array.
(#202) Expected at least 1 space after "."; 0 found
(#218) Expected 1 space after SWITCH keyword; 0 found
(#220) Terminating statement must be indented to the same level as the CASE body
(#222) Terminating statement must be indented to the same level as the CASE body
(#224) Terminating statement must be indented to the same level as the CASE body
(#237) Expected at least 1 space after "."; 0 found
(#239) Expected at least 1 space after "."; 0 found
(#266) Short array syntax must be used to define arrays
(#267) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
(#274) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#300) Short array syntax must be used to define arrays
(#307) Short array syntax must be used to define arrays
(#310) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#317) Short array syntax must be used to define arrays
(#320) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#323) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#325) Short array syntax must be used to define arrays
(#327) Short array syntax must be used to define arrays
(#329) Short array syntax must be used to define arrays
(#330) Space found before comma in argument list
(#330) Expected no space between "jobtimefinish" and the comma. Found: 1 space
(#331) Short array syntax must be used to define arrays
(#342) Expected at least 1 space before "."; 0 found
(#344) Expected at least 1 space after "."; 0 found
(#357) Expected at least 1 space before "."; 0 found
(#360) Expected at least 1 space after "."; 0 found
(#371) Expected at least 1 space before "."; 0 found
(#384) Opening parenthesis of a multi-line function call must be the last content on the line
(#384) Only one argument is allowed per line in a multi-line function call
(#385) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#385) Short array syntax must be used to define arrays
(#385) Closing parenthesis of a multi-line function call must be on a line by itself
(#387) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#390) Line exceeds 132 characters; contains 176 characters
(#408) Short array syntax must be used to define arrays
(#424) Short array syntax must be used to define arrays
(#435) Short array syntax must be used to define arrays
(#438) Short array syntax must be used to define arrays
(#440) There should be a comma after the last array item in a multi-line array.
(#445) Short array syntax must be used to define arrays
(#448) Short array syntax must be used to define arrays
(#450) There should be a comma after the last array item in a multi-line array.
(#473) Short array syntax must be used to define arrays
report/offlinequizcron/processqueue.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#33) Short array syntax must be used to define arrays
(#39) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#41) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#41) Only one argument is allowed per line in a multi-line function call
(#41) Short array syntax must be used to define arrays
(#41) Closing parenthesis of a multi-line function call must be on a line by itself
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#50) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#50) Only one argument is allowed per line in a multi-line function call
(#50) Short array syntax must be used to define arrays
(#50) Closing parenthesis of a multi-line function call must be on a line by itself
report/offlinequizcron/resubmit.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#43) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#65) Expected 1 blank line at end of file; 2 found
report/offlinequizcron/settings.php
(#30) Opening parenthesis of a multi-line function call must be the last content on the line
(#30) Only one argument is allowed per line in a multi-line function call
(#31) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#31) Only one argument is allowed per line in a multi-line function call
(#31) Closing parenthesis of a multi-line function call must be on a line by itself
report/offlinequizcron/tests/behat/behat_report_offlinequizcron.php
(#32) Useless alias "Given" found for import of "Behat\Behat\Context\Step\Given"
(#33) Useless alias "TableNode" found for import of "Behat\Gherkin\Node\TableNode"
(#34) Useless alias "ExpectationException" found for import of "Behat\Mink\Exception\ExpectationException"
(#42) Opening brace must not be followed by a blank line
report/offlinequizcron/version.php
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must end in full-stops, exclamation marks, or question marks

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

(34 errors, 10 warnings)

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

report/offlinequizcron/styles.css
(#52) Expected newline before "}" (block-closing-brace-newline-before)
(#70) Expected newline after "{" (block-opening-brace-newline-after)
(#76) Expected newline after "{" (block-opening-brace-newline-after)
(#80) Expected newline after "{" (block-opening-brace-newline-after)
(#84) Expected newline after "{" (block-opening-brace-newline-after)
(#88) Expected newline after "{" (block-opening-brace-newline-after)
(#92) Expected newline after "{" (block-opening-brace-newline-after)
(#38) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#42) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#46) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#47) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#56) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#38) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#42) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#46) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#47) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#56) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#38) Unexpected !important (declaration-no-important)
(#42) Unexpected !important (declaration-no-important)
(#46) Unexpected !important (declaration-no-important)
(#47) Unexpected !important (declaration-no-important)
(#56) Unexpected !important (declaration-no-important)
(#52) Unexpected whitespace at end of line (no-eol-whitespace)
(#70) Unexpected whitespace at end of line (no-eol-whitespace)
(#76) Unexpected whitespace at end of line (no-eol-whitespace)
(#80) Unexpected whitespace at end of line (no-eol-whitespace)
(#84) Unexpected whitespace at end of line (no-eol-whitespace)
(#88) Unexpected whitespace at end of line (no-eol-whitespace)
(#92) Unexpected whitespace at end of line (no-eol-whitespace)
(#29) Expected indentation of 4 spaces (indentation)
(#33) Expected indentation of 4 spaces (indentation)
(#34) Expected indentation of 4 spaces (indentation)
(#38) Expected indentation of 4 spaces (indentation)
(#42) Expected indentation of 4 spaces (indentation)
(#46) Expected indentation of 4 spaces (indentation)
(#47) Expected indentation of 4 spaces (indentation)
(#51) Expected indentation of 4 spaces (indentation)
(#52) Expected indentation of 4 spaces (indentation)
(#56) Expected indentation of 4 spaces (indentation)
(#57) Expected indentation of 4 spaces (indentation)
(#62) Expected indentation of 4 spaces (indentation)
(#66) Expected indentation of 4 spaces (indentation)
(#67) Expected indentation of 4 spaces (indentation)
(#97) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(0 errors, 0 warnings)

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


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

(1 errors, 1 warnings)

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

Problems running grunt
Task "gherkinlint" failed. Use --force to continue.

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]


Gherkin .feature problems

(1 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]

report/offlinequizcron/tests/behat/plugin_installed.feature
(#12) New line at EOF(end of file) is required