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

(646 errors, 338 warnings)

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

local/moofactory_notification/addnotif.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space after "=>"; 0 found
(#43) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#45) Expected "if (...) {\n"; found "if(...){\n"
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Expected "if (...) {\n"; found "if(...){\n"
local/moofactory_notification/classes/info_moofactory_notification.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
local/moofactory_notification/classes/observer.php
(#30) Opening brace should be on the same line as the declaration for class local_moofactory_observer
(#31) Expected 1 space before opening brace; found 0
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) This comment is 61% valid code; is this commented out code?
(#33) No space found before comment text; expected "// $event->courseid" but found "//$event->courseid"
(#34) No space found before comment text; expected "// $event->relateduserid" but found "//$event->relateduserid"
(#35) No space found before comment text; expected "// set_config('test', 1000, 'local_moofactory_notification');" but found "//set_config('test', 1000, 'local_moofactory_notification');"
(#36) No space found before comment text; expected "// test();" but found "//test();"
(#37) This comment is 57% valid code; is this commented out code?
local/moofactory_notification/classes/task/send_coursesaccess_notification.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) File must end with a newline character
local/moofactory_notification/classes/task/send_coursesenroll_notification.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) File must end with a newline character
local/moofactory_notification/classes/task/send_coursesevents_notification.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) File must end with a newline character
local/moofactory_notification/classes/task/send_siteevents_notification.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) File must end with a newline character
local/moofactory_notification/db/events.php
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) This comment is 67% valid code; is this commented out code?
(#31) No space found before comment text; expected "// 'callback' => 'local_moofactory_observer::user_enrolment_created'," but found "//'callback' => 'local_moofactory_observer::user_enrolment_created',"
local/moofactory_notification/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Whitespace found at end of line
(#49) Line exceeds 132 characters; contains 138 characters
(#52) Whitespace found at end of line
(#64) Line exceeds 132 characters; contains 172 characters
(#65) Whitespace found at end of line
(#77) Line exceeds maximum limit of 180 characters; contains 181 characters
(#79) Whitespace found at end of line
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#109) Line exceeds 132 characters; contains 141 characters
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#130) Line exceeds maximum limit of 180 characters; contains 211 characters
(#131) Line exceeds 132 characters; contains 161 characters
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#150) Expected 1 space before "=>"; 0 found
(#150) Expected 1 space after "=>"; 0 found
(#151) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#155) Expected 1 space before "=>"; 0 found
(#155) Expected 1 space after "=>"; 0 found
(#155) Line exceeds 132 characters; contains 151 characters
(#157) Whitespace found at end of line
(#161) Line exceeds maximum limit of 180 characters; contains 197 characters
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#176) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#182) Line exceeds 132 characters; contains 141 characters
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#197) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#203) Line exceeds maximum limit of 180 characters; contains 211 characters
(#204) Line exceeds 132 characters; contains 156 characters
(#213) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#223) Expected 1 space before "=>"; 0 found
(#223) Expected 1 space after "=>"; 0 found
(#224) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#228) Expected 1 space before "=>"; 0 found
(#228) Expected 1 space after "=>"; 0 found
(#228) Line exceeds 132 characters; contains 146 characters
(#230) Whitespace found at end of line
(#234) Line exceeds maximum limit of 180 characters; contains 197 characters
(#243) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#254) Line exceeds 132 characters; contains 141 characters
(#263) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#275) Line exceeds 132 characters; contains 141 characters
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#290) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#296) Line exceeds 132 characters; contains 141 characters
(#305) Inline comments must end in full-stops, exclamation marks, or question marks
(#311) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#317) Line exceeds 132 characters; contains 141 characters
(#326) Inline comments must end in full-stops, exclamation marks, or question marks
(#332) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#336) Expected 1 space before "=>"; 0 found
(#336) Expected 1 space after "=>"; 0 found
(#337) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#341) Expected 1 space before "=>"; 0 found
(#341) Expected 1 space after "=>"; 0 found
(#341) Line exceeds 132 characters; contains 146 characters
(#343) Whitespace found at end of line
(#347) Line exceeds maximum limit of 180 characters; contains 197 characters
(#356) Inline comments must end in full-stops, exclamation marks, or question marks
(#357) Line exceeds 132 characters; contains 152 characters
(#358) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#365) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#371) Line exceeds maximum limit of 180 characters; contains 215 characters
(#372) Line exceeds 132 characters; contains 150 characters
(#378) Whitespace found at end of line
local/moofactory_notification/db/tasks.php
(#64) File must end with a newline character
local/moofactory_notification/db/uninstall.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Whitespace found at end of line
(#37) Expected 1 space after "=>"; 0 found
(#37) Line exceeds 132 characters; contains 150 characters
(#38) Expected "if (...) {\n"; found "if (...){\n"
local/moofactory_notification/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#62) Expected 1 space before "=>"; 0 found
(#62) Expected 1 space after "=>"; 0 found
(#62) Expected 1 space before "=>"; 0 found
(#62) Expected 1 space after "=>"; 0 found
(#63) Expected "if (...) {\n"; found "if(...){\n"
(#65) Line exceeds 132 characters; contains 146 characters
(#68) Whitespace found at end of line
(#75) Whitespace found at end of line
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#84) Expected "if (...) {\n"; found "if(...){\n"
(#86) Line exceeds 132 characters; contains 180 characters
(#87) Whitespace found at end of line
(#94) Whitespace found at end of line
(#98) Whitespace found at end of line
(#98) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#101) Line exceeds 132 characters; contains 151 characters
(#103) Expected "if (...) {\n"; found "if(...){\n"
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#109) No space found before comment text; expected "// $handler->move_field(field_controller $field, int $categoryid, int $beforeid = 0)" but found "//$handler->move_field(field_controller $field, int $categoryid, int $beforeid = 0)"
(#110) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Expected "if (...) {\n"; found "if(...){\n"
(#123) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#129) Line exceeds 132 characters; contains 145 characters
(#135) Whitespace found at end of line
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Expected "if (...) {\n"; found "if(...){\n"
(#147) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#153) Line exceeds maximum limit of 180 characters; contains 215 characters
(#154) Line exceeds 132 characters; contains 165 characters
(#160) Whitespace found at end of line
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Expected "if (...) {\n"; found "if(...){\n"
(#172) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#177) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#181) Expected 1 space before "=>"; 0 found
(#181) Expected 1 space after "=>"; 0 found
(#181) Line exceeds 132 characters; contains 155 characters
(#183) Whitespace found at end of line
(#187) Line exceeds maximum limit of 180 characters; contains 201 characters
(#193) Whitespace found at end of line
(#197) Inline comments must end in full-stops, exclamation marks, or question marks
(#201) Expected "if (...) {\n"; found "if(...){\n"
(#207) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#213) Line exceeds 132 characters; contains 145 characters
(#219) Whitespace found at end of line
(#224) Inline comments must end in full-stops, exclamation marks, or question marks
(#226) Expected "if (...) {\n"; found "if(...){\n"
(#232) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#238) Line exceeds maximum limit of 180 characters; contains 215 characters
(#239) Line exceeds 132 characters; contains 160 characters
(#245) Whitespace found at end of line
(#250) Inline comments must end in full-stops, exclamation marks, or question marks
(#252) Expected "if (...) {\n"; found "if(...){\n"
(#258) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#262) Expected 1 space before "=>"; 0 found
(#262) Expected 1 space after "=>"; 0 found
(#263) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#267) Expected 1 space before "=>"; 0 found
(#267) Expected 1 space after "=>"; 0 found
(#267) Line exceeds 132 characters; contains 150 characters
(#269) Whitespace found at end of line
(#273) Line exceeds maximum limit of 180 characters; contains 201 characters
(#279) Whitespace found at end of line
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#286) Expected "if (...) {\n"; found "if(...){\n"
(#292) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#298) Line exceeds 132 characters; contains 145 characters
(#304) Whitespace found at end of line
(#308) Inline comments must end in full-stops, exclamation marks, or question marks
(#310) Expected "if (...) {\n"; found "if(...){\n"
(#316) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#322) Line exceeds 132 characters; contains 145 characters
(#328) Whitespace found at end of line
(#332) Inline comments must end in full-stops, exclamation marks, or question marks
(#336) Expected "if (...) {\n"; found "if(...){\n"
(#342) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#348) Line exceeds 132 characters; contains 145 characters
(#354) Whitespace found at end of line
(#359) Inline comments must end in full-stops, exclamation marks, or question marks
(#361) Expected "if (...) {\n"; found "if(...){\n"
(#367) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#373) Line exceeds 132 characters; contains 145 characters
(#379) Whitespace found at end of line
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#386) Expected "if (...) {\n"; found "if(...){\n"
(#392) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#396) Expected 1 space before "=>"; 0 found
(#396) Expected 1 space after "=>"; 0 found
(#397) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#401) Expected 1 space before "=>"; 0 found
(#401) Expected 1 space after "=>"; 0 found
(#401) Line exceeds 132 characters; contains 150 characters
(#403) Whitespace found at end of line
(#407) Line exceeds maximum limit of 180 characters; contains 201 characters
(#413) Whitespace found at end of line
(#417) Inline comments must end in full-stops, exclamation marks, or question marks
(#418) Line exceeds 132 characters; contains 152 characters
(#419) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#422) Expected "if (...) {\n"; found "if(...){\n"
(#425) Whitespace found at end of line
(#428) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#430) Whitespace found at end of line
(#434) Line exceeds maximum limit of 180 characters; contains 219 characters
(#435) Line exceeds 132 characters; contains 154 characters
(#441) Whitespace found at end of line
local/moofactory_notification/deletenotif.php
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#65) Expected "if (...) {\n"; found "if(...){\n"
(#66) Expected 1 space before "=>"; 0 found
(#66) Expected 1 space after "=>"; 0 found
(#66) Expected 1 space before "=>"; 0 found
(#66) Expected 1 space after "=>"; 0 found
(#81) Expected 1 space before "=>"; 0 found
(#81) Expected 1 space after "=>"; 0 found
(#83) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#85) Expected "if (...) {\n"; found "if(...){\n"
(#89) Expected "if (...) {\n"; found "if(...){\n"
(#102) Expected "if (...) {\n"; found "if(...){\n"
(#106) Usage of ELSEIF not allowed; use ELSE IF instead
(#113) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#117) Whitespace found at end of line
(#119) Expected "if (...) {\n"; found "if(...){\n"
local/moofactory_notification/deletenotif_form.php
(#46) Expected 1 space before "=>"; 0 found
(#46) Expected 1 space after "=>"; 0 found
(#64) Expected "if (...) {\n"; found "if(...){\n"
(#69) Expected 1 space before "=>"; 0 found
(#69) Expected 1 space after "=>"; 0 found
(#71) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#73) Expected "if (...) {\n"; found "if(...){\n"
(#86) Expected "if (...) {\n"; found "if(...){\n"
(#94) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#98) Whitespace found at end of line
(#100) Expected "if (...) {\n"; found "if(...){\n"
(#108) Whitespace found at end of line
(#110) Expected "if (...) {\n"; found "if(...){\n"
(#111) Line exceeds 132 characters; contains 160 characters
(#113) Expected "if (...) {\n"; found "if(...){\n"
(#114) Expected "if (...) {\n"; found "if(...){\n"
(#115) Line exceeds 132 characters; contains 165 characters
(#116) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#120) Expected "} else {\n"; found "}\n else{\n"
(#121) Line exceeds maximum limit of 180 characters; contains 211 characters
(#124) Expected "if (...) {\n"; found "if(...){\n"
(#125) Expected "if (...) {\n"; found "if(...){\n"
(#126) Line exceeds 132 characters; contains 168 characters
(#127) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#131) Expected "} else {\n"; found "}\n else{\n"
(#132) Line exceeds maximum limit of 180 characters; contains 216 characters
(#135) Line exceeds 132 characters; contains 175 characters
(#140) File must end with a newline character
local/moofactory_notification/duplicatenotif.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Expected 1 space before "=>"; 0 found
(#56) Expected 1 space after "=>"; 0 found
(#58) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#60) Expected "if (...) {\n"; found "if(...){\n"
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Expected "if (...) {\n"; found "if(...){\n"
local/moofactory_notification/lang/en/local_moofactory_notification.php
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
local/moofactory_notification/lang/fr/local_moofactory_notification.php
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
local/moofactory_notification/lib.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Expected 1 space before opening brace; found 0
(#35) Expected "if (...) {\n"; found "if(...){\n"
(#36) Line exceeds 132 characters; contains 154 characters
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Line exceeds 132 characters; contains 151 characters
(#46) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
(#50) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#54) Whitespace found at end of line
(#56) Line exceeds maximum limit of 180 characters; contains 206 characters
(#57) Whitespace found at end of line
(#61) Line exceeds 132 characters; contains 147 characters
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Expected 1 space before "=>"; 0 found
(#63) Expected 1 space after "=>"; 0 found
(#63) Line exceeds 132 characters; contains 146 characters
(#71) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#74) Expected 1 space before "=>"; 0 found
(#74) Expected 1 space after "=>"; 0 found
(#75) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#79) Whitespace found at end of line
(#81) Line exceeds maximum limit of 180 characters; contains 206 characters
(#82) Whitespace found at end of line
(#86) Line exceeds 132 characters; contains 151 characters
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Expected 1 space before "=>"; 0 found
(#88) Expected 1 space after "=>"; 0 found
(#88) Line exceeds 132 characters; contains 146 characters
(#96) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#99) Expected 1 space before "=>"; 0 found
(#99) Expected 1 space after "=>"; 0 found
(#100) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#104) Whitespace found at end of line
(#106) Line exceeds maximum limit of 180 characters; contains 206 characters
(#107) Whitespace found at end of line
(#112) Expected "if (...) {\n"; found "if(...){\n"
(#122) Expected "if (...) {\n"; found "if(...){\n"
(#133) Line exceeds 132 characters; contains 156 characters
(#134) Expected "if (...) {\n"; found "if(...){\n"
(#146) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#151) Expected "} else {\n"; found "}\n else{\n"
(#152) Expected "if (...) {\n"; found "if(...){\n"
(#157) Expected "if (...) {\n"; found "if(...){\n"
(#162) Expected "if (...) {\n"; found "if(...){\n"
(#168) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#175) Expected "if (...) {\n"; found "if(...){\n"
(#179) Expected "if (...) {\n"; found "if(...){\n"
(#184) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#224) Line exceeds maximum limit of 180 characters; contains 218 characters
(#238) Expected "if (...) {\n"; found "if(...){\n"
(#239) Expected "if (...) {\n"; found "if(...){\n"
(#245) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#248) Expected "if (...) {\n"; found "if(...){\n"
(#249) Line exceeds 132 characters; contains 174 characters
(#253) Expected "if (...) {\n"; found "if(...){\n"
(#256) Line exceeds 132 characters; contains 163 characters
(#259) Line exceeds 132 characters; contains 137 characters
(#282) Inline comments must end in full-stops, exclamation marks, or question marks
(#286) Expected "if (...) {\n"; found "if(...){\n"
(#290) Expected "} else {\n"; found "}\n else{\n"
(#294) Expected 1 space before "=>"; 0 found
(#294) Expected 1 space after "=>"; 0 found
(#295) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#299) Variable "is_enrolled" must not contain underscores.
(#301) Expected "if (...) {\n"; found "if(...){\n"
(#301) Variable "is_enrolled" must not contain underscores.
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#312) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#314) Inline comments must end in full-stops, exclamation marks, or question marks
(#316) Inline comments must end in full-stops, exclamation marks, or question marks
(#318) Inline comments must end in full-stops, exclamation marks, or question marks
(#319) Expected 1 space before "=>"; 0 found
(#319) Expected 1 space after "=>"; 0 found
(#319) Line exceeds 132 characters; contains 134 characters
(#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
(#322) Expected "if (...) {\n"; found "if(...){\n"
(#323) Inline comments must start with a capital letter, digit or 3-dots sequence
(#323) Inline comments must end in full-stops, exclamation marks, or question marks
(#324) Expected "if (...) {\n"; found "if(...){\n"
(#326) Inline comments must start with a capital letter, digit or 3-dots sequence
(#326) Inline comments must end in full-stops, exclamation marks, or question marks
(#327) Expected "if (...) {\n"; found "if(...){\n"
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#330) Expected "if (...) {\n"; found "if(...){\n"
(#331) Inline comments must start with a capital letter, digit or 3-dots sequence
(#331) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) Inline comments must end in full-stops, exclamation marks, or question marks
(#335) Expected "} else {\n"; found "}\n // Sinon, mise en liste d'attente dans la table 'local_mf_enrollnotif'\n else{\n"
(#352) Whitespace found at end of line
(#357) Variable "is_enrolled" must not contain underscores.
(#358) Expected "if (...) {\n"; found "if(...){\n"
(#358) Variable "is_enrolled" must not contain underscores.
(#360) Inline comments must end in full-stops, exclamation marks, or question marks
(#361) Expected 1 space before "=>"; 0 found
(#361) Expected 1 space after "=>"; 0 found
(#361) Expected 1 space before "=>"; 0 found
(#361) Expected 1 space after "=>"; 0 found
(#368) Whitespace found at end of line
(#373) Inline comments must end in full-stops, exclamation marks, or question marks
(#374) Expected 1 space before "=>"; 0 found
(#374) Expected 1 space after "=>"; 0 found
(#374) Expected 1 space before "=>"; 0 found
(#374) Expected 1 space after "=>"; 0 found
(#375) Expected 1 space before "=>"; 0 found
(#375) Expected 1 space after "=>"; 0 found
(#375) Expected 1 space before "=>"; 0 found
(#375) Expected 1 space after "=>"; 0 found
(#381) Whitespace found at end of line
(#385) Inline comments must end in full-stops, exclamation marks, or question marks
(#386) Expected 1 space before "=>"; 0 found
(#386) Expected 1 space after "=>"; 0 found
(#386) Expected 1 space before "=>"; 0 found
(#386) Expected 1 space after "=>"; 0 found
(#392) Whitespace found at end of line
(#395) Inline comments must end in full-stops, exclamation marks, or question marks
(#398) Expected "if (...) {\n"; found "if(...){\n"
(#400) Inline comments must end in full-stops, exclamation marks, or question marks
(#401) Expected 1 space before "=>"; 0 found
(#401) Expected 1 space after "=>"; 0 found
(#406) Inline comments must end in full-stops, exclamation marks, or question marks
(#407) Expected 1 space before opening brace; found 0
(#409) Whitespace found at end of line
(#412) Inline comments must end in full-stops, exclamation marks, or question marks
(#414) Inline comments must end in full-stops, exclamation marks, or question marks
(#416) Inline comments must end in full-stops, exclamation marks, or question marks
(#416) Whitespace found at end of line
(#418) Inline comments must end in full-stops, exclamation marks, or question marks
(#419) Expected 1 space before "=>"; 0 found
(#419) Expected 1 space after "=>"; 0 found
(#421) Inline comments must end in full-stops, exclamation marks, or question marks
(#424) Inline comments must end in full-stops, exclamation marks, or question marks
(#426) Expected "if (...) {\n"; found "if(...){\n"
(#430) Expected "} else {\n"; found "}\n else{\n"
(#433) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#435) Inline comments must end in full-stops, exclamation marks, or question marks
(#436) Expected "if (...) {\n"; found "if(...){\n"
(#437) Inline comments must end in full-stops, exclamation marks, or question marks
(#438) Expected "if (...) {\n"; found "if(...){\n"
(#439) Inline comments must end in full-stops, exclamation marks, or question marks
(#443) Expected "if (...) {\n"; found "if(...){\n"
(#444) Inline comments must end in full-stops, exclamation marks, or question marks
(#445) Line exceeds 132 characters; contains 140 characters
(#447) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#448) Expected "if (...) {\n"; found "if(...){\n"
(#449) Line exceeds 132 characters; contains 158 characters
(#449) Inline comments must start with a capital letter, digit or 3-dots sequence
(#449) This comment is 56% valid code; is this commented out code?
(#449) No space found before comment text; expected "// $targetedevents = calendar_get_legacy_events($previoussiteeventstasktime + $delay, $time + $delay, false, false, true, true, false);" but found "//$targetedevents = calendar_get_legacy_events($previoussiteeventstasktime + $delay, $time + $delay, false, false, true, true, false);"
(#450) No space found before comment text; expected "// foreach($targetedevents as $targetedevent) {" but found "//foreach($targetedevents as $targetedevent) {"
(#451) No space found before comment text; expected "// if($targetedevent->id == $event->id){" but found "//if($targetedevent->id == $event->id){"
(#457) Commas (,) must be followed by white space.
(#457) Commas (,) must be followed by white space.
(#463) Line indented incorrectly; expected 24 spaces, found 32
(#463) Expected "if (...) {\n"; found "if(...){\n"
(#464) Line indented incorrectly; expected 28 spaces, found 36
(#465) Line indented incorrectly; expected 32 spaces, found 40
(#465) Expected "if (...) {\n"; found "if(...){\n"
(#466) Line indented incorrectly; expected 36 spaces, found 44
(#466) Expected "if (...) {\n"; found "if(...){\n"
(#485) Line exceeds 132 characters; contains 141 characters
(#493) Line exceeds 132 characters; contains 147 characters
(#495) Variable "dateEnvoi" must be all lower-case
(#496) Variable "dateEnvoi" must be all lower-case
(#496) Line exceeds maximum limit of 180 characters; contains 186 characters
(#499) Line indented incorrectly; expected 36 spaces, found 44
(#500) Line indented incorrectly; expected 32 spaces, found 40
(#501) Line indented incorrectly; expected 28 spaces, found 36
(#502) Line indented incorrectly; expected 24 spaces, found 32
(#503) Line indented incorrectly; expected 24 spaces, found 32
(#503) Expected "} else {\n"; found "}\n else{\n"
(#505) Line indented incorrectly; expected 24 spaces, found 32
(#506) Inline comments must start with a capital letter, digit or 3-dots sequence
(#506) No space found before comment text; expected "// }" but found "//}"
(#507) No space found before comment text; expected "// }" but found "//}"
(#516) Inline comments must end in full-stops, exclamation marks, or question marks
(#517) Expected 1 space before opening brace; found 0
(#520) Inline comments must end in full-stops, exclamation marks, or question marks
(#522) Inline comments must end in full-stops, exclamation marks, or question marks
(#524) Whitespace found at end of line
(#525) Inline comments must end in full-stops, exclamation marks, or question marks
(#527) Expected "if (...) {\n"; found "if(...){\n"
(#531) Expected "} else {\n"; found "}\n else{\n"
(#541) Expected "if (...) {\n"; found "if(...){\n"
(#542) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#548) Inline comments must end in full-stops, exclamation marks, or question marks
(#549) Expected "if (...) {\n"; found "if(...){\n"
(#550) Inline comments must end in full-stops, exclamation marks, or question marks
(#551) Expected "if (...) {\n"; found "if(...){\n"
(#552) Expected 1 space before "=>"; 0 found
(#552) Expected 1 space after "=>"; 0 found
(#553) Inline comments must end in full-stops, exclamation marks, or question marks
(#555) Inline comments must end in full-stops, exclamation marks, or question marks
(#557) Inline comments must end in full-stops, exclamation marks, or question marks
(#558) Expected 1 space before "=>"; 0 found
(#558) Expected 1 space after "=>"; 0 found
(#558) Line exceeds 132 characters; contains 150 characters
(#560) Inline comments must end in full-stops, exclamation marks, or question marks
(#561) Expected "if (...) {\n"; found "if(...){\n"
(#562) Inline comments must start with a capital letter, digit or 3-dots sequence
(#562) Inline comments must end in full-stops, exclamation marks, or question marks
(#563) Expected "if (...) {\n"; found "if(...){\n"
(#564) Line exceeds 132 characters; contains 138 characters
(#565) Inline comments must start with a capital letter, digit or 3-dots sequence
(#565) Inline comments must end in full-stops, exclamation marks, or question marks
(#566) Expected "if (...) {\n"; found "if(...){\n"
(#567) Inline comments must start with a capital letter, digit or 3-dots sequence
(#567) Inline comments must end in full-stops, exclamation marks, or question marks
(#568) Line exceeds 132 characters; contains 139 characters
(#573) Line exceeds 132 characters; contains 133 characters
(#573) Inline comments must end in full-stops, exclamation marks, or question marks
(#574) Expected 1 space before "=>"; 0 found
(#574) Expected 1 space after "=>"; 0 found
(#574) Expected 1 space before "=>"; 0 found
(#574) Expected 1 space after "=>"; 0 found
(#574) Expected 1 space before "=>"; 0 found
(#574) Expected 1 space after "=>"; 0 found
(#574) Line exceeds 132 characters; contains 160 characters
(#576) Inline comments must end in full-stops, exclamation marks, or question marks
(#577) Expected "} else {\n"; found "}\n // Update de notificationtime dans la table 'local_mf_enrollnotif' avec l'heure courante\n else{\n"
(#589) Inline comments must end in full-stops, exclamation marks, or question marks
(#590) Expected 1 space before opening brace; found 0
(#593) Inline comments must end in full-stops, exclamation marks, or question marks
(#595) Inline comments must end in full-stops, exclamation marks, or question marks
(#597) Inline comments must end in full-stops, exclamation marks, or question marks
(#597) Whitespace found at end of line
(#599) Inline comments must end in full-stops, exclamation marks, or question marks
(#600) Expected 1 space before "=>"; 0 found
(#600) Expected 1 space after "=>"; 0 found
(#601) Inline comments must end in full-stops, exclamation marks, or question marks
(#601) Whitespace found at end of line
(#603) Inline comments must end in full-stops, exclamation marks, or question marks
(#605) Expected "if (...) {\n"; found "if(...){\n"
(#606) Inline comments must end in full-stops, exclamation marks, or question marks
(#607) Line exceeds 132 characters; contains 135 characters
(#607) Inline comments must end in full-stops, exclamation marks, or question marks
(#611) Inline comments must end in full-stops, exclamation marks, or question marks
(#614) Inline comments must end in full-stops, exclamation marks, or question marks
(#615) Expected "if (...) {\n"; found "if(...){\n"
(#619) Inline comments must start with a capital letter, digit or 3-dots sequence
(#619) Inline comments must end in full-stops, exclamation marks, or question marks
(#620) Expected "if (...) {\n"; found "if(...){\n"
(#621) Inline comments must start with a capital letter, digit or 3-dots sequence
(#621) Inline comments must end in full-stops, exclamation marks, or question marks
(#622) Expected "if (...) {\n"; found "if(...){\n"
(#625) Line exceeds 132 characters; contains 139 characters
(#632) Inline comments must start with a capital letter, digit or 3-dots sequence
(#632) Inline comments must end in full-stops, exclamation marks, or question marks
(#633) Expected "if (...) {\n"; found "if(...){\n"
(#635) Inline comments must start with a capital letter, digit or 3-dots sequence
(#637) Line exceeds 132 characters; contains 139 characters
(#640) Expected "if (...) {\n"; found "if(...){\n"
(#644) Inline comments must end in full-stops, exclamation marks, or question marks
(#645) Expected "if (...) {\n"; found "if(...){\n"
(#646) Inline comments must end in full-stops, exclamation marks, or question marks
(#647) Line exceeds 132 characters; contains 136 characters
(#648) Inline comments must start with a capital letter, digit or 3-dots sequence
(#650) Inline comments must end in full-stops, exclamation marks, or question marks
(#652) Line exceeds 132 characters; contains 152 characters
(#652) Inline comments must end in full-stops, exclamation marks, or question marks
(#654) Inline comments must end in full-stops, exclamation marks, or question marks
(#655) Line exceeds maximum limit of 180 characters; contains 190 characters
(#657) Expected "if (...) {\n"; found "if(...){\n"
(#662) Expected "if (...) {\n"; found "if(...){\n"
(#664) Expected "if (...) {\n"; found "if(...){\n"
(#665) Inline comments must start with a capital letter, digit or 3-dots sequence
(#665) Inline comments must end in full-stops, exclamation marks, or question marks
(#669) Line exceeds 132 characters; contains 162 characters
(#669) Inline comments must end in full-stops, exclamation marks, or question marks
(#670) Whitespace found at end of line
(#675) Inline comments must end in full-stops, exclamation marks, or question marks
(#676) Line exceeds 132 characters; contains 160 characters
(#682) Inline comments must end in full-stops, exclamation marks, or question marks
(#683) Expected "} else {\n"; found "}\n\n // Si aucune notif n'a été envoyée, on regarde depuis combien de temps il n'y a pas eu d'accès\n else{\n"
(#684) Line exceeds 132 characters; contains 173 characters
(#685) Inline comments must end in full-stops, exclamation marks, or question marks
(#686) Expected "if (...) {\n"; found "if(...){\n"
(#689) Inline comments must end in full-stops, exclamation marks, or question marks
(#690) Expected "} else {\n"; found "}\n // Sinon on récupère la date de son inscription la plus ancienne\n else{\n"
(#700) Expected "if (...) {\n"; found "if(...){\n"
(#701) Inline comments must end in full-stops, exclamation marks, or question marks
(#705) Line exceeds 132 characters; contains 158 characters
(#705) Inline comments must end in full-stops, exclamation marks, or question marks
(#710) Inline comments must end in full-stops, exclamation marks, or question marks
(#711) Line exceeds 132 characters; contains 156 characters
(#727) Whitespace found at end of line
(#956) Expected "if (...) {\n"; found "if(...){\n"
(#958) Expected "if (...) {\n"; found "if(...){\n"
(#965) Expected "if (...) {\n"; found "if(...){\n"
(#970) Expected "} else {\n"; found "}\n else{\n"
(#977) Expected "if (...) {\n"; found "if(...){\n"
(#996) Expected 1 space before "=>"; 0 found
(#996) Expected 1 space after "=>"; 0 found
(#996) Expected 1 space before "=>"; 0 found
(#996) Expected 1 space after "=>"; 0 found
(#996) Expected 1 space before "=>"; 0 found
(#996) Expected 1 space after "=>"; 0 found
(#996) Expected 1 space before "=>"; 0 found
(#996) Expected 1 space after "=>"; 0 found
(#1019) Inline comments must end in full-stops, exclamation marks, or question marks
(#1020) Expected 1 space before opening brace; found 0
(#1022) Whitespace found at end of line
(#1025) Inline comments must end in full-stops, exclamation marks, or question marks
(#1027) Inline comments must end in full-stops, exclamation marks, or question marks
(#1029) Inline comments must end in full-stops, exclamation marks, or question marks
(#1029) Whitespace found at end of line
(#1031) Inline comments must end in full-stops, exclamation marks, or question marks
(#1032) Expected 1 space before "=>"; 0 found
(#1032) Expected 1 space after "=>"; 0 found
(#1034) Inline comments must end in full-stops, exclamation marks, or question marks
(#1037) Inline comments must end in full-stops, exclamation marks, or question marks
(#1039) Expected "if (...) {\n"; found "if(...){\n"
(#1043) Expected "} else {\n"; found "}\n else{\n"
(#1047) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1047) Inline comments must end in full-stops, exclamation marks, or question marks
(#1048) Expected "if (...) {\n"; found "if(...){\n"
(#1049) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1049) Inline comments must end in full-stops, exclamation marks, or question marks
(#1050) Expected "if (...) {\n"; found "if(...){\n"
(#1051) Inline comments must end in full-stops, exclamation marks, or question marks
(#1054) Inline comments must end in full-stops, exclamation marks, or question marks
(#1059) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1060) Expected "if (...) {\n"; found "if (...){\n"
(#1063) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1065) Line exceeds 132 characters; contains 139 characters
(#1074) Inline comments must end in full-stops, exclamation marks, or question marks
(#1074) Whitespace found at end of line
(#1078) Expected "if (...) {\n"; found "if(...){\n"
(#1079) Inline comments must end in full-stops, exclamation marks, or question marks
(#1080) Line exceeds 132 characters; contains 161 characters
(#1081) Inline comments must end in full-stops, exclamation marks, or question marks
(#1082) Line exceeds 132 characters; contains 169 characters
(#1083) Inline comments must end in full-stops, exclamation marks, or question marks
(#1084) Line exceeds 132 characters; contains 171 characters
(#1087) Expected "} else {\n"; found "}\n // Sinon on prend le paramétrage de l'activité.\n else{\n"
(#1088) Inline comments must end in full-stops, exclamation marks, or question marks
(#1090) Line exceeds 132 characters; contains 134 characters
(#1091) Inline comments must end in full-stops, exclamation marks, or question marks
(#1093) Line exceeds 132 characters; contains 142 characters
(#1094) Inline comments must end in full-stops, exclamation marks, or question marks
(#1096) Line exceeds 132 characters; contains 144 characters
(#1098) Line exceeds 132 characters; contains 141 characters
(#1098) Inline comments must end in full-stops, exclamation marks, or question marks
(#1099) Expected "if (...) {\n"; found "if(...){\n"
(#1100) Line exceeds 132 characters; contains 165 characters
(#1102) Inline comments must end in full-stops, exclamation marks, or question marks
(#1103) Expected "if (...) {\n"; found "if(...){\n"
(#1104) Line exceeds 132 characters; contains 173 characters
(#1106) Inline comments must end in full-stops, exclamation marks, or question marks
(#1107) Expected "if (...) {\n"; found "if(...){\n"
(#1108) Line exceeds 132 characters; contains 175 characters
(#1113) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#1116) Inline comments must end in full-stops, exclamation marks, or question marks
(#1116) Whitespace found at end of line
(#1117) Expected "if (...) {\n"; found "if(...){\n"
(#1118) Inline comments must end in full-stops, exclamation marks, or question marks
(#1121) Expected "} else {\n"; found "}\n else{\n"
(#1122) Inline comments must end in full-stops, exclamation marks, or question marks
(#1122) Whitespace found at end of line
(#1124) Expected "if (...) {\n"; found "if(...){\n"
(#1125) Inline comments must end in full-stops, exclamation marks, or question marks
(#1131) Expected "if (...) {\n"; found "if(...){\n"
(#1132) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1133) Line exceeds 132 characters; contains 164 characters
(#1135) Inline comments must end in full-stops, exclamation marks, or question marks
(#1136) Line exceeds 132 characters; contains 157 characters
(#1140) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#1141) Expected "if (...) {\n"; found "if(...){\n"
(#1142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1142) Inline comments must end in full-stops, exclamation marks, or question marks
(#1143) Expected "if (...) {\n"; found "if(...){\n"
(#1144) Inline comments must end in full-stops, exclamation marks, or question marks
(#1145) Line exceeds 132 characters; contains 149 characters
(#1146) Expected "if (...) {\n"; found "if(...){\n"
(#1150) Expected "} else {\n"; found "}\n else{\n"
(#1154) Expected "} else {\n"; found "}\n else{\n"
(#1155) Inline comments must end in full-stops, exclamation marks, or question marks
(#1156) Line exceeds 132 characters; contains 140 characters
(#1157) Expected "if (...) {\n"; found "if(...){\n"
(#1162) Whitespace found at end of line
(#1166) Commas (,) must be followed by white space.
(#1166) Commas (,) must be followed by white space.
(#1170) Expected "if (...) {\n"; found "if(...){\n"
(#1172) Line exceeds 132 characters; contains 137 characters
(#1174) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1174) Inline comments must end in full-stops, exclamation marks, or question marks
(#1174) This comment is 67% valid code; is this commented out code?
(#1175) Whitespace found at end of line
(#1182) Expected "if (...) {\n"; found "if(...){\n"
(#1197) Line exceeds 132 characters; contains 133 characters
(#1199) Expected "if (...) {\n"; found "if(...){\n"
(#1202) Usage of ELSEIF not allowed; use ELSE IF instead
(#1203) Expected "if (...) {\n"; found "if(...){\n"
(#1206) Expected "} else {\n"; found "}\n else{\n"
(#1210) Usage of ELSEIF not allowed; use ELSE IF instead
(#1211) Expected "if (...) {\n"; found "if(...){\n"
(#1214) Expected "} else {\n"; found "}\n else{\n"
(#1221) Inline comments must end in full-stops, exclamation marks, or question marks
(#1222) Line exceeds 132 characters; contains 175 characters
(#1225) Expected "if (...) {\n"; found "if(...){\n"
(#1226) Inline comments must end in full-stops, exclamation marks, or question marks
(#1227) Expected "if (...) {\n"; found "if(...){\n"
(#1235) Line exceeds 132 characters; contains 140 characters
(#1237) Line exceeds 132 characters; contains 146 characters
(#1238) Line exceeds 132 characters; contains 140 characters
(#1239) Line exceeds 132 characters; contains 176 characters
(#1240) Line exceeds 132 characters; contains 157 characters
(#1241) Line exceeds 132 characters; contains 151 characters
(#1248) Line exceeds 132 characters; contains 141 characters
(#1256) Line exceeds 132 characters; contains 150 characters
(#1257) Whitespace found at end of line
(#1258) Variable "dateEnvoi" must be all lower-case
(#1259) Variable "dateEnvoi" must be all lower-case
(#1259) Line exceeds maximum limit of 180 characters; contains 263 characters
(#1266) Expected "} else {\n"; found "}\n else{\n"
(#1279) function name "local_moofactory_notification_getCustomfield" must be lower-case letters only
(#1279) Expected 1 space before opening brace; found 0
(#1290) Line indented incorrectly; expected 4 spaces, found 8
(#1290) Closing brace indented incorrectly; expected 4 spaces, found 8
(#1301) function name "local_moofactory_notification_setCustomfield" must be lower-case letters only
(#1301) Expected 1 space before opening brace; found 0
(#1312) Line indented incorrectly; expected 4 spaces, found 8
(#1312) Closing brace indented incorrectly; expected 4 spaces, found 8
(#1320) Expected 1 space before opening brace; found 0
(#1333) Expected "if (...) {\n"; found "if(...){\n"
(#1336) Expected "} else {\n"; found "}\n else{\n"
(#1343) Whitespace found at end of line
(#1344) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#1348) Commas (,) must be followed by white space.
(#1348) Commas (,) must be followed by white space.
(#1351) Commas (,) must be followed by white space.
(#1351) Commas (,) must be followed by white space.
(#1354) Commas (,) must be followed by white space.
(#1354) Commas (,) must be followed by white space.
(#1357) Commas (,) must be followed by white space.
(#1357) Commas (,) must be followed by white space.
(#1360) Commas (,) must be followed by white space.
(#1360) Commas (,) must be followed by white space.
(#1363) Commas (,) must be followed by white space.
(#1363) Commas (,) must be followed by white space.
(#1366) Commas (,) must be followed by white space.
(#1366) Commas (,) must be followed by white space.
(#1369) Commas (,) must be followed by white space.
(#1369) Commas (,) must be followed by white space.
(#1372) Commas (,) must be followed by white space.
(#1372) Commas (,) must be followed by white space.
(#1375) Commas (,) must be followed by white space.
(#1375) Commas (,) must be followed by white space.
(#1378) Commas (,) must be followed by white space.
(#1378) Commas (,) must be followed by white space.
(#1381) Commas (,) must be followed by white space.
(#1381) Commas (,) must be followed by white space.
(#1384) Commas (,) must be followed by white space.
(#1384) Commas (,) must be followed by white space.
(#1387) Commas (,) must be followed by white space.
(#1387) Commas (,) must be followed by white space.
(#1390) Commas (,) must be followed by white space.
(#1390) Commas (,) must be followed by white space.
(#1393) Commas (,) must be followed by white space.
(#1393) Commas (,) must be followed by white space.
(#1395) Line indented incorrectly; expected 8 spaces, found 12
(#1395) Closing brace indented incorrectly; expected 8 spaces, found 12
(#1404) Expected "if (...) {\n"; found "if(...){\n"
(#1408) Expected "} else {\n"; found "}\n else{\n"
(#1415) Commas (,) must be followed by white space.
(#1415) Commas (,) must be followed by white space.
(#1416) Whitespace found at end of line
(#1418) Whitespace found at end of line
(#1419) Expected "if (...) {\n"; found "if(...){\n"
(#1431) Line exceeds 132 characters; contains 136 characters
(#1438) Expected "if (...) {\n"; found "if(...){\n"
(#1441) Expected "} else {\n"; found "}\n else{\n"
(#1446) Whitespace found at end of line
(#1454) Expected "} else {\n"; found "}\n else{\n"
(#1463) Expected "if (...) {\n"; found "if(...){\n"
(#1467) Expected "} else {\n"; found "}\n else{\n"
(#1473) Commas (,) must be followed by white space.
(#1473) Commas (,) must be followed by white space.
(#1474) Whitespace found at end of line
(#1476) Whitespace found at end of line
(#1477) Expected "if (...) {\n"; found "if(...){\n"
(#1489) Line exceeds 132 characters; contains 136 characters
(#1497) Whitespace found at end of line
(#1499) Whitespace found at end of line
(#1506) Whitespace found at end of line
(#1507) Variable "dateEnvoi" must be all lower-case
(#1508) Variable "dateEnvoi" must be all lower-case
(#1508) Line exceeds maximum limit of 180 characters; contains 203 characters
(#1510) Line indented incorrectly; expected 4 spaces, found 0
(#1510) Closing brace indented incorrectly; expected 4 spaces, found 0
(#1511) Expected "} else {\n"; found "}\n else{\n"
(#1523) Line exceeds 132 characters; contains 167 characters
(#1523) Inline comments must end in full-stops, exclamation marks, or question marks
(#1532) Inline comments must end in full-stops, exclamation marks, or question marks
(#1539) Expected "if (...) {\n"; found "if(...){\n"
(#1548) Expected 1 space before opening brace; found 0
(#1549) Line exceeds 132 characters; contains 148 characters
(#1551) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#1552) Expected "if (...) {\n"; found "if(...){\n"
(#1555) Expected "} else {\n"; found "}\n else{\n"
(#1564) Expected "if (...) {\n"; found "if(...){\n"
(#1564) Expected 1 space before "!=="; 0 found
(#1564) Expected 1 space after "!=="; 0 found
(#1567) Expected "if (...) {\n"; found "if(...){\n"
(#1567) Expected 1 space before "!=="; 0 found
(#1567) Expected 1 space after "!=="; 0 found
(#1572) Expected "if (...) {\n"; found "if(...){\n"
(#1572) Expected 1 space before "!=="; 0 found
(#1572) Expected 1 space after "!=="; 0 found
(#1575) Expected "if (...) {\n"; found "if(...){\n"
(#1575) Expected 1 space before "!=="; 0 found
(#1575) Expected 1 space after "!=="; 0 found
(#1580) Expected "if (...) {\n"; found "if(...){\n"
(#1580) Expected 1 space before "!=="; 0 found
(#1580) Expected 1 space after "!=="; 0 found
(#1583) Expected "if (...) {\n"; found "if(...){\n"
(#1583) Expected 1 space before "!=="; 0 found
(#1583) Expected 1 space after "!=="; 0 found
(#1591) Expected "if (...) {\n"; found "if(...){\n"
(#1595) Expected "if (...) {\n"; found "if(...){\n"
(#1599) Expected "if (...) {\n"; found "if(...){\n"
(#1608) Whitespace found at end of line
(#1611) Expected 1 space before opening brace; found 0
(#1612) Spaces must be used to indent lines; tabs are not allowed
(#1612) Tab found within whitespace
(#1612) Line indented incorrectly; expected at least 4 spaces, found 1
(#1613) Spaces must be used to indent lines; tabs are not allowed
(#1613) Tab found within whitespace
(#1613) Line indented incorrectly; expected at least 4 spaces, found 1
(#1614) Spaces must be used to indent lines; tabs are not allowed
(#1614) Tab found within whitespace
(#1614) Line indented incorrectly; expected 4 spaces, found 1
(#1614) Expected "if (...) {\n"; found "if(...){\n"
(#1614) Expected 1 space before ">"; 0 found
(#1614) Expected 1 space after ">"; 0 found
(#1615) Expected 1 space before "="; 0 found
(#1616) Spaces must be used to indent lines; tabs are not allowed
(#1616) Tab found within whitespace
(#1616) Line indented incorrectly; expected at least 8 spaces, found 2
(#1617) Spaces must be used to indent lines; tabs are not allowed
(#1617) Tab found within whitespace
(#1617) Line indented incorrectly; expected 4 spaces, found 1
(#1617) Expected "} else {\n"; found "}else{\n"
(#1618) Spaces must be used to indent lines; tabs are not allowed
(#1618) Tab found within whitespace
(#1618) Line indented incorrectly; expected at least 8 spaces, found 2
(#1619) Spaces must be used to indent lines; tabs are not allowed
(#1619) Tab found within whitespace
(#1619) Line indented incorrectly; expected 4 spaces, found 1
local/moofactory_notification/managenotif.php
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Expected "if (...) {\n"; found "if(...){\n"
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Expected 1 space before "=>"; 0 found
(#70) Expected 1 space after "=>"; 0 found
(#72) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#74) Expected "if (...) {\n"; found "if(...){\n"
(#77) Expected "if (...) {\n"; found "if(...){\n"
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Whitespace found at end of line
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Expected "if (...) {\n"; found "if(...){\n"
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Usage of ELSEIF not allowed; use ELSE IF instead
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#125) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#127) Expected "if (...) {\n"; found "if(...){\n"
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Whitespace found at end of line
(#137) Expected "if (...) {\n"; found "if(...){\n"
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Expected "} else {\n"; found "}\n\n // Pas de changement de type\n else{\n"
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Expected 1 space before "=>"; 0 found
(#158) Expected 1 space after "=>"; 0 found
(#160) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#162) Expected "if (...) {\n"; found "if(...){\n"
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) Expected 1 space before "=>"; 0 found
(#179) Expected 1 space after "=>"; 0 found
(#181) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#183) Expected "if (...) {\n"; found "if(...){\n"
(#192) Expected "if (...) {\n"; found "if(...){\n"
(#193) Expected "if (...) {\n"; found "if(...){\n"
(#196) Expected "if (...) {\n"; found "if(...){\n"
(#199) Expected "if (...) {\n"; found "if(...){\n"
(#207) Line exceeds 132 characters; contains 143 characters
local/moofactory_notification/managenotif_form.php
(#38) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#41) Line exceeds maximum limit of 180 characters; contains 234 characters
(#46) Line exceeds 132 characters; contains 139 characters
(#48) Line exceeds 132 characters; contains 149 characters
(#49) Line exceeds 132 characters; contains 143 characters
(#53) Expected "if (...) {\n"; found "if(...){\n"
(#64) Expected "} else {\n"; found "}\n else{\n"
(#73) Expected "} else {\n"; found "}\n else{\n"
(#79) Whitespace found at end of line
(#85) Expected "if (...) {\n"; found "if(...){\n"
(#90) Line exceeds 132 characters; contains 138 characters
(#92) Expected "} else {\n"; found "}\n else{\n"
(#95) Whitespace found at end of line
(#101) Line exceeds 132 characters; contains 156 characters
(#108) Line exceeds 132 characters; contains 162 characters
(#177) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#179) Whitespace found at end of line
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#186) This comment is 75% valid code; is this commented out code?
(#186) No space found before comment text; expected "// $mform->setDefault('notificationbodyhtml', $record->bodyhtml);" but found "//$mform->setDefault('notificationbodyhtml', $record->bodyhtml);"
(#187) Commas (,) must be followed by white space.
(#189) Expected "} else {\n"; found "}\n else{\n"
(#195) Whitespace found at end of line
(#200) File must end with a newline character
local/moofactory_notification/module.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#45) Expected "if (...) {\n"; found "if(...){\n"
(#48) Expected "} else {\n"; found "}\n else{\n"
(#54) Expected "if (...) {\n"; found "if(...){\n"
(#57) Expected "} else {\n"; found "}\n else{\n"
(#63) Expected "if (...) {\n"; found "if(...){\n"
(#66) Expected "} else {\n"; found "}\n else{\n"
(#72) Expected "if (...) {\n"; found "if(...){\n"
(#75) Expected "} else {\n"; found "}\n else{\n"
(#84) Line exceeds maximum limit of 180 characters; contains 184 characters
(#85) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Expected "if (...) {\n"; found "if(...){\n"
(#89) Expected "if (...) {\n"; found "if(...){\n"
(#92) Expected "} else {\n"; found "}\n else{\n"
(#95) Whitespace found at end of line
(#97) Expected "} else {\n"; found "}\n else{\n"
local/moofactory_notification/module_form.php
(#37) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#54) Expected "if (...) {\n"; found "if(...){\n"
(#55) Line exceeds maximum limit of 180 characters; contains 182 characters
(#57) Expected "} else {\n"; found "}\n else{\n"
(#58) Line exceeds 132 characters; contains 145 characters
(#62) Expected "if (...) {\n"; found "if(...){\n"
(#68) Expected "if (...) {\n"; found "if(...){\n"
(#69) Line exceeds maximum limit of 180 characters; contains 190 characters
(#71) Expected "} else {\n"; found "}\n else{\n"
(#72) Line exceeds 132 characters; contains 153 characters
(#76) Expected "if (...) {\n"; found "if(...){\n"
(#82) Expected "if (...) {\n"; found "if(...){\n"
(#83) Line exceeds maximum limit of 180 characters; contains 192 characters
(#85) Expected "} else {\n"; found "}\n else{\n"
(#86) Line exceeds 132 characters; contains 155 characters
(#90) Expected "if (...) {\n"; found "if(...){\n"
(#96) Expected 1 space before "=>"; 0 found
(#96) Expected 1 space after "=>"; 0 found
(#97) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#100) Expected "if (...) {\n"; found "if(...){\n"
(#101) Line exceeds 132 characters; contains 174 characters
(#103) Expected "} else {\n"; found "}\n else{\n"
(#104) Line exceeds 132 characters; contains 141 characters
(#108) Expected "if (...) {\n"; found "if(...){\n"
(#110) Expected "if (...) {\n"; found "if(...){\n"
(#115) Expected "} else {\n"; found "}\n else{\n"
(#123) Line exceeds 132 characters; contains 152 characters
(#124) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#126) Expected "if (...) {\n"; found "if(...){\n"
(#127) Line exceeds 132 characters; contains 171 characters
(#129) Expected "} else {\n"; found "}\n else{\n"
(#130) Line exceeds 132 characters; contains 145 characters
(#133) Whitespace found at end of line
(#135) Expected "if (...) {\n"; found "if(...){\n"
(#156) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#159) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#169) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#179) Line indented incorrectly; expected 8 spaces, found 12
(#179) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#182) Closing brace indented incorrectly; expected 12 spaces, found 8
(#197) Line exceeds maximum limit of 180 characters; contains 181 characters
(#204) This comment is 62% valid code; is this commented out code?
local/moofactory_notification/settings.php
(#36) 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
(#76) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#106) Expected 1 space before "=>"; 0 found
(#106) Expected 1 space after "=>"; 0 found
(#107) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#137) Expected 1 space before "=>"; 0 found
(#137) Expected 1 space after "=>"; 0 found
(#138) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#169) Expected 1 space before "=>"; 0 found
(#169) Expected 1 space after "=>"; 0 found
(#170) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#176) This comment is 63% valid code; is this commented out code?
(#192) Line exceeds 132 characters; contains 138 characters
local/moofactory_notification/test.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) This comment is 55% valid code; is this commented out code?
(#40) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(1 errors, 0 warnings)

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

local/moofactory_notification/util.js
(#27) Parsing error: The keyword 'const' is reserved

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(39 errors, 13 warnings)

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

local/moofactory_notification/classes/info_moofactory_notification.php
(#14) Class info_moofactory_notification is not documented
(#16) Function info_moofactory_notification::set_modinfo is not documented
local/moofactory_notification/classes/observer.php
(#29) Class local_moofactory_observer is not documented
(#31) Function local_moofactory_observer::user_enrolment_created is not documented
local/moofactory_notification/classes/task/send_coursesaccess_notification.php
(#29) Class send_coursesaccess_notification is not documented
(#30) Function send_coursesaccess_notification::get_name is not documented
(#33) Function send_coursesaccess_notification::execute is not documented
local/moofactory_notification/classes/task/send_coursesenroll_notification.php
(#29) Class send_coursesenroll_notification is not documented
(#30) Function send_coursesenroll_notification::get_name is not documented
(#33) Function send_coursesenroll_notification::execute is not documented
local/moofactory_notification/classes/task/send_coursesevents_notification.php
(#29) Class send_coursesevents_notification is not documented
(#30) Function send_coursesevents_notification::get_name is not documented
(#33) Function send_coursesevents_notification::execute is not documented
local/moofactory_notification/classes/task/send_siteevents_notification.php
(#29) Class send_siteevents_notification is not documented
(#30) Function send_siteevents_notification::get_name is not documented
(#33) Function send_siteevents_notification::execute is not documented
local/moofactory_notification/db/install.php
(#28) Function xmldb_local_moofactory_notification_install is not documented
local/moofactory_notification/db/messages.php
(#17) No one-line description found in phpdocs for file
local/moofactory_notification/db/uninstall.php
(#20) Package format_moofactory is not valid
local/moofactory_notification/deletenotif_form.php
(#29) Class deletenotif_form is not documented
(#30) Function deletenotif_form::definition is not documented
local/moofactory_notification/lib.php
(#27) Function test is not documented
(#32) Function local_moofactory_notification_extend_navigation_course is not documented
(#283) Function local_moofactory_notification_user_enrolment_created is not documented
(#350) Function local_moofactory_notification_user_enrolment_updated is not documented
(#366) Function local_moofactory_notification_user_enrolment_deleted is not documented
(#379) Function local_moofactory_notification_course_viewed is not documented
(#390) Function local_moofactory_notification_course_updated is not documented
(#407) Function local_moofactory_notification_send_siteevents_notification is not documented
(#517) Function local_moofactory_notification_send_coursesenroll_notification is not documented
(#590) Function local_moofactory_notification_send_coursesaccess_notification is not documented
(#725) Function local_moofactory_notification_get_progress is not documented
(#796) Function local_moofactory_notification_get_all_activities is not documented
(#988) Function local_moofactory_notification_get_user_enrolments is not documented
(#1005) Function local_moofactory_notification_get_user_enrolment_dates is not documented
(#1020) Function local_moofactory_notification_send_coursesevents_notification is not documented
(#1279) Function local_moofactory_notification_getCustomfield is not documented
(#1301) Function local_moofactory_notification_setCustomfield is not documented
(#1320) Function local_moofactory_notification_get_group is not documented
(#1342) Function local_moofactory_notification_replace_variables is not documented
(#1400) Function local_moofactory_notification_prepare_access_email is not documented
(#1459) Function local_moofactory_notification_prepare_enrollments_email is not documented
(#1517) Function local_moofactory_notification_send_email is not documented
(#1548) Function local_moofactory_notification_get_delays is not documented
(#746) Phpdocs for function local_moofactory_notification_get_activities has incomplete parameters list
(#933) Phpdocs for function local_moofactory_notification_percentage has incomplete parameters list
(#1608) Phpdocs for function local_moofactory_notification_fetch_variables has incomplete parameters list
local/moofactory_notification/managenotif_form.php
(#29) Class managenotif_form is not documented
(#30) Function managenotif_form::definition is not documented
local/moofactory_notification/module_form.php
(#30) Class module_form is not documented
(#31) Function module_form::definition is not documented
(#203) Function module_form::validation is not documented

Update savepoints problems

(4 errors, 0 warnings)

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

local/moofactory_notification/db/upgrade.php
Detected more 'if' blocks (3) than 'savepoint' calls (0)
version 2021012700 is missing corresponding savepoint call
version 2021020900 is missing corresponding savepoint call
version 2021031500 is missing corresponding savepoint call

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

(0 errors, 0 warnings)

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