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

(213 errors, 46 warnings)

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

local/coursetocal/classes/helper.php
(#43) Opening brace must not be followed by a blank line
(#66) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#91) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#93) Missing docblock for function build_data
(#130) Opening parenthesis of a multi-line function call must be the last content on the line
(#130) Only one argument is allowed per line in a multi-line function call
(#131) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#131) Closing parenthesis of a multi-line function call must be on a line by itself
(#132) Opening parenthesis of a multi-line function call must be the last content on the line
(#133) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#133) Short array syntax must be used to define arrays
(#134) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#134) Short array syntax must be used to define arrays
(#134) Closing parenthesis of a multi-line function call must be on a line by itself
(#154) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#182) Empty CATCH statement detected
(#183) Inline comments must start with a capital letter, digit or 3-dots sequence
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#184) Line indented incorrectly; expected 16 spaces, found 20
(#184) Closing brace indented incorrectly; expected 16 spaces, found 20
(#186) Line indented incorrectly; expected at least 12 spaces, found 4
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#187) Line indented incorrectly; expected 8 spaces, found 0
(#187) Closing brace indented incorrectly; expected 8 spaces, found 0
(#190) Short array syntax must be used to define arrays
(#194) Short array syntax must be used to define arrays
(#196) Short array syntax must be used to define arrays
(#199) Parentheses must be used when instantiating a new class
(#210) Short array syntax must be used to define arrays
(#236) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#261) Empty CATCH statement detected
(#262) Inline comments must start with a capital letter, digit or 3-dots sequence
(#262) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#274) Line indented incorrectly; expected at least 8 spaces, found 4
(#276) Line indented incorrectly; expected at least 8 spaces, found 4
(#277) Line indented incorrectly; expected at least 8 spaces, found 4
(#278) Line indented incorrectly; expected at least 8 spaces, found 4
(#278) Inline comments must start with a capital letter, digit or 3-dots sequence
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#280) Line indented incorrectly; expected at least 8 spaces, found 4
(#281) Line indented incorrectly; expected at least 8 spaces, found 4
(#282) Line indented incorrectly; expected at least 8 spaces, found 4
(#283) Line indented incorrectly; expected at least 8 spaces, found 4
(#284) Line indented incorrectly; expected 8 spaces, found 4
(#285) Line indented incorrectly; expected at least 12 spaces, found 8
(#286) Line indented incorrectly; expected 12 spaces, found 8
(#287) Line indented incorrectly; expected at least 16 spaces, found 12
(#287) Long list syntax is not allowed
(#287) Variable "inSql" must be all lower-case
(#287) Variable "inParams" must be all lower-case
(#288) Line indented incorrectly; expected at least 16 spaces, found 12
(#288) Variable "inSql" must be all lower-case
(#289) Line indented incorrectly; expected at least 16 spaces, found 12
(#289) Variable "inParams" must be all lower-case
(#290) Line indented incorrectly; expected 12 spaces, found 8
(#291) Line indented incorrectly; expected 8 spaces, found 4
(#293) Line indented incorrectly; expected at least 8 spaces, found 4
(#295) Line indented incorrectly; expected at least 8 spaces, found 4
(#297) Line indented incorrectly; expected at least 8 spaces, found 4
(#298) Line indented incorrectly; expected at least 8 spaces, found 4
(#300) Line indented incorrectly; expected 8 spaces, found 4
(#301) Line indented incorrectly; expected 12 spaces, found 8
(#302) Line indented incorrectly; expected at least 16 spaces, found 12
(#303) Line indented incorrectly; expected 12 spaces, found 8
(#304) Line indented incorrectly; expected at least 12 spaces, found 8
(#306) Line indented incorrectly; expected at least 12 spaces, found 8
(#307) Line indented incorrectly; expected at least 12 spaces, found 8
(#309) Line indented incorrectly; expected at least 12 spaces, found 8
(#311) Expected 1 space between the comma and "// set after we know $event->id". Found: 14 spaces
(#311) Inline comments must start with a capital letter, digit or 3-dots sequence
(#311) Inline comments must end in full-stops, exclamation marks, or question marks
(#313) Expected 1 space between the comma and "// front-page event". Found: 17 spaces
(#313) Inline comments must start with a capital letter, digit or 3-dots sequence
(#313) Inline comments must end in full-stops, exclamation marks, or question marks
(#316) Expected 1 space between the comma and "// real user (not 0)". Found: 6 spaces
(#316) Inline comments must start with a capital letter, digit or 3-dots sequence
(#316) Inline comments must end in full-stops, exclamation marks, or question marks
(#321) Expected 1 space between the comma and "// plugin marker". Found: 13 spaces
(#321) Inline comments must start with a capital letter, digit or 3-dots sequence
(#321) Inline comments must end in full-stops, exclamation marks, or question marks
(#327) Inline comments must start with a capital letter, digit or 3-dots sequence
(#327) Inline comments must end in full-stops, exclamation marks, or question marks
(#328) Line indented incorrectly; expected at least 12 spaces, found 8
(#330) Line indented incorrectly; expected at least 12 spaces, found 8
(#333) Line indented incorrectly; expected at least 16 spaces, found 8
(#335) Line indented incorrectly; expected 16 spaces, found 8
(#336) Line indented incorrectly; expected at least 20 spaces, found 12
(#337) Line indented incorrectly; expected at least 20 spaces, found 12
(#339) Line indented incorrectly; expected at least 20 spaces, found 12
(#340) Line indented incorrectly; expected at least 20 spaces, found 12
(#341) Line indented incorrectly; expected at least 20 spaces, found 12
(#342) Line indented incorrectly; expected at least 20 spaces, found 12
(#344) Line indented incorrectly; expected at least 20 spaces, found 12
(#345) Line indented incorrectly; expected at least 20 spaces, found 12
(#346) Line indented incorrectly; expected at least 20 spaces, found 12
(#347) Line indented incorrectly; expected at least 20 spaces, found 16
(#348) Line indented incorrectly; expected at least 20 spaces, found 16
(#348) Only one argument is allowed per line in a multi-line function call
(#349) Line indented incorrectly; expected at least 28 spaces, found 12
(#350) Line indented incorrectly; expected at least 28 spaces, found 12
(#352) Line indented incorrectly; expected at least 28 spaces, found 12
(#353) Line indented incorrectly; expected at least 28 spaces, found 12
(#354) Line indented incorrectly; expected 16 spaces, found 8
(#355) Line indented incorrectly; expected at least 20 spaces, found 12
(#357) Line indented incorrectly; expected at least 20 spaces, found 12
(#358) Line indented incorrectly; expected at least 20 spaces, found 12
(#359) Line indented incorrectly; expected at least 20 spaces, found 12
(#361) Line indented incorrectly; expected at least 20 spaces, found 12
(#362) Line indented incorrectly; expected at least 20 spaces, found 12
(#363) Line indented incorrectly; expected at least 20 spaces, found 12
(#364) Line indented incorrectly; expected at least 20 spaces, found 16
(#365) Line indented incorrectly; expected at least 20 spaces, found 16
(#365) Only one argument is allowed per line in a multi-line function call
(#366) Line indented incorrectly; expected at least 20 spaces, found 12
(#367) Line indented incorrectly; expected at least 20 spaces, found 12
(#369) Line indented incorrectly; expected at least 20 spaces, found 12
(#370) Line indented incorrectly; expected at least 20 spaces, found 12
(#371) Line indented incorrectly; expected 16 spaces, found 8
(#372) Line indented incorrectly; expected 8 spaces, found 4
(#374) Line indented incorrectly; expected at least 8 spaces, found 4
(#375) Line indented incorrectly; expected 8 spaces, found 4
(#376) Line indented incorrectly; expected at least 12 spaces, found 8
(#376) Long list syntax is not allowed
(#376) Variable "inSql" must be all lower-case
(#376) Variable "inParams" must be all lower-case
(#377) Line indented incorrectly; expected at least 12 spaces, found 8
(#377) Opening parenthesis of a multi-line function call must be the last content on the line
(#378) Variable "inSql" must be all lower-case
(#379) Variable "inParams" must be all lower-case
(#380) Line indented incorrectly; expected at least 16 spaces, found 8
(#381) Line indented incorrectly; expected 8 spaces, found 4
(#383) Line indented incorrectly; expected at least 8 spaces, found 4
(#384) Line indented incorrectly; expected at least 8 spaces, found 4
(#385) Line indented incorrectly; expected at least 8 spaces, found 4
(#386) Line indented incorrectly; expected 4 spaces, found 0
(#386) Closing brace indented incorrectly; expected 4 spaces, found 0
(#395) Line indented incorrectly; expected at least 8 spaces, found 4
(#396) Line indented incorrectly; expected at least 8 spaces, found 4
(#401) There should be a comma after the last array item in a multi-line array.
(#402) Line indented incorrectly; expected at least 8 spaces, found 4
(#403) Line indented incorrectly; expected at least 8 spaces, found 4
(#404) Line indented incorrectly; expected 4 spaces, found 0
(#404) Closing brace indented incorrectly; expected 4 spaces, found 0
(#427) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#437) Short array syntax must be used to define arrays
(#465) Parentheses must be used when instantiating a new class
(#473) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#483) Short array syntax must be used to define arrays
(#484) Expected 1 space after comma in argument list; 2 found
(#484) Expected 1 space between the comma and "'id, eventtype, uuid'". Found: 2 spaces
(#502) The closing brace for the class must go on the next line after the body
local/coursetocal/classes/privacy/provider.php
(#36) Opening brace must not be followed by a blank line
(#44) There must not be a space before the colon in a return type declaration
(#47) Expected 1 newline at end of file; 0 found
local/coursetocal/classes/task/sync.php
(#1) Moodle boilerplate not found
(#4) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#6) Missing @copyright tag
(#6) Missing @license tag
(#6) Missing docblock for class sync
(#7) Missing docblock for function get_name
(#8) Inline comments must start with a capital letter, digit or 3-dots sequence
(#8) Inline comments must end in full-stops, exclamation marks, or question marks
(#10) Missing docblock for function execute
local/coursetocal/db/events.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
local/coursetocal/db/tasks.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file tasks.php
(#1) Moodle boilerplate not found
(#12) There should be a comma after the last array item in a multi-line array.
(#13) There should be a comma after the last array item in a multi-line array.
local/coursetocal/db/upgrade.php
(#1) Moodle boilerplate not found
(#2) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#4) Missing @copyright tag
(#4) Missing @license tag
(#7) DocBlock missing a @package tag for function xmldb_local_coursetocal_upgrade. Expected @package local_coursetocal
(#15) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Expected 1 space before comment text but found 5; use block comment if you need indentation
local/coursetocal/export.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#26) Expected at least 1 space before "."; 0 found
(#26) Expected at least 1 space after "."; 0 found
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) No space found before comment text; expected "// Fetch user information" but found "//Fetch user information"
(#44) Short array syntax must be used to define arrays
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) No space found before comment text; expected "// allowing for fallback check of old url - MDL-27542" but found "//allowing for fallback check of old url - MDL-27542"
(#46) Short array syntax must be used to define arrays
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) No space found before comment text; expected "// No such user" but found "//No such user"
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) No space found before comment text; expected "// Check authentication token" but found "//Check authentication token"
(#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) No space found before comment text; expected "// allowing for fallback check of old url - MDL-27542" but found "//allowing for fallback check of old url - MDL-27542"
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Parentheses must be used when instantiating a new class
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) This comment is 58% valid code; is this commented out code?
(#79) Parentheses must be used when instantiating a new class
(#80) Expected at least 1 space before "."; 0 found
(#80) Expected at least 1 space after "."; 0 found
(#80) Expected at least 1 space before "."; 0 found
(#80) Expected at least 1 space after "."; 0 found
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#101) Inline comments must start with a capital letter, digit or 3-dots sequence
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) No space found before comment text; expected "// dtend is better than duration, because it works in Microsoft Outlook and works better in Korganizer" but found "//dtend is better than duration, because it works in Microsoft Outlook and works better in Korganizer"
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#117) Expected "if (...) {\n"; found "if(...) {\n"
(#117) Expected 1 space after IF keyword; 0 found
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Expected at least 1 space before "."; 0 found
(#124) Expected at least 1 space after "."; 0 found
(#126) Expected at least 1 space before "."; 0 found
(#126) Expected at least 1 space after "."; 0 found
(#129) Expected at least 1 space before "."; 0 found
(#129) Expected at least 1 space after "."; 0 found
(#130) Expected at least 1 space before "."; 0 found
(#130) Expected at least 1 space after "."; 0 found
local/coursetocal/exportcal.php
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#8) Line 7 of the opening comment must start "//".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#13) Line 12 of the opening comment must start "//".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Comment does not contain full Moodle boilerplate
local/coursetocal/lang/en/local_coursetocal.php
(#26) The string key "categoriestoshow" is not in the correct order, it should be before "pluginname"
(#31) The string key "exporttitle" is not in the correct order, it should be before "linktitle_desc"
(#34) The string key "exportcal" is not in the correct order, it should be before "gotocourse"
(#37) The string key "privacy:metadata" is not in the correct order, it should be before "syncevents_desc"
(#39) The string key "calendarurl" is not in the correct order, it should be before "tasksyncname"
local/coursetocal/settings.php
(#27) Blank line found at start of control structure
(#29) Space after opening parenthesis of function call prohibited
(#29) Expected 0 spaces before closing parenthesis; 1 found
(#32) Blank line found at start of control structure
(#39) Short array syntax must be used to define arrays
(#69) Line exceeds maximum limit of 180 characters; contains 196 characters
(#72) Blank line found at end of control structure
(#75) Blank line found at end of control structure
local/coursetocal/sync.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#26) Expected 1 newline at end of file; 0 found

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

(2 errors, 0 warnings)

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

local/coursetocal/classes/helper.php
(#478) Phpdocs for function helper::is_a_course has incomplete parameters list
local/coursetocal/db/upgrade.php
(#4) Phpdocs for function xmldb_local_coursetocal_upgrade has incomplete parameters list

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]


Gherkin .feature problems

(2 errors, 0 warnings)

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

local/coursetocal/tests/behat/see_course_event.feature
(#4) Wrong indentation for "Background", expected indentation level of 2, but got 4
(#13) Wrong indentation for "Scenario", expected indentation level of 2, but got 4