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

(1 errors, 43 warnings)

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

mod/attendance/classes/form/addsession.php
(#86) Logical operator "or" is prohibited; use "||" instead
(#87) Logical operator "and" is prohibited; use "&&" instead
(#327) Logical operator "and" is prohibited; use "&&" instead
mod/attendance/classes/form/export.php
(#51) Logical operator "or" is prohibited; use "||" instead
mod/attendance/classes/import/sessions.php
(#419) Line exceeds 132 characters; contains 143 characters
mod/attendance/classes/output/renderer.php
(#650) Logical operator "and" is prohibited; use "&&" instead
(#651) Logical operator "or" is prohibited; use "||" instead
(#652) Logical operator "and" is prohibited; use "&&" instead
(#965) Logical operator "and" is prohibited; use "&&" instead
(#969) Logical operator "and" is prohibited; use "&&" instead
(#975) Logical operator "and" is prohibited; use "&&" instead
(#986) Logical operator "and" is prohibited; use "&&" instead
(#1027) Logical operator "and" is prohibited; use "&&" instead
(#1031) Logical operator "and" is prohibited; use "&&" instead
(#1037) Logical operator "and" is prohibited; use "&&" instead
(#1048) Logical operator "and" is prohibited; use "&&" instead
(#1330) Logical operator "and" is prohibited; use "&&" instead
(#1976) Logical operator "and" is prohibited; use "&&" instead
(#2411) Logical operator "and" is prohibited; use "&&" instead
mod/attendance/classes/page_with_filter_controls.php
(#230) Logical operator "or" is prohibited; use "||" instead
(#237) Logical operator "or" is prohibited; use "||" instead
mod/attendance/classes/reportbuilder/datasource/attendance.php
(#57) Line exceeds 132 characters; contains 133 characters
mod/attendance/lang/en/attendance.php
(#649) File must end with a newline character
mod/attendance/lib.php
(#465) Logical operator "or" is prohibited; use "||" instead
mod/attendance/renderhelpers.php
(#83) Logical operator "and" is prohibited; use "&&" instead
(#86) Logical operator "and" is prohibited; use "&&" instead
(#91) Logical operator "or" is prohibited; use "||" instead
mod/attendance/tests/externallib_test.php
(#44) PHPUnit testcase name "mod_attendance_external_testcase" does not match file name "externallib_test"
(#44) PHPUnit class "mod_attendance_external_testcase" does not have any namespace. It is recommended to add it to the "mod_attendance" namespace, using more levels if needed, in order to match the code being tested
(#102) Test method test_get_courses_with_today_sessions() is missing any coverage information, own or at class level
(#120) Test method test_get_courses_with_today_sessions_multiple_instances() is missing any coverage information, own or at class level
(#145) Test method test_get_session() is missing any coverage information, own or at class level
(#165) Test method test_get_session_with_group() is missing any coverage information, own or at class level
(#211) Test method test_update_user_status() is missing any coverage information, own or at class level
(#243) Test method test_add_attendance() is missing any coverage information, own or at class level
(#291) Test method test_remove_attendance() is missing any coverage information, own or at class level
(#314) Test method test_add_session() is missing any coverage information, own or at class level
(#357) Test method test_add_session_group_in_no_group_exception() is missing any coverage information, own or at class level
(#384) Test method test_add_session_invalid_group_exception() is missing any coverage information, own or at class level
(#410) Test method test_remove_session() is missing any coverage information, own or at class level
(#437) Test method test_add_session_creates_calendar_event() is missing any coverage information, own or at class level
(#474) Test method test_get_sessions() is missing any coverage information, own or at class level
mod/attendance/view.php
(#87) Logical operator "and" is prohibited; use "&&" instead
(#89) Logical operator "and" is prohibited; use "&&" instead

Javascript coding style problems

(2 errors, 1 warnings)

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

mod/attendance/calendar.js
(#20) 'resetHandler' is defined but never used. (no-unused-vars)
mod/attendance/js/password/attendance_QRCodeRotate.js
(#9) Parsing error: The keyword 'class' is reserved
mod/attendance/yui/src/groupfilter/js/groupfilter.js
(#1) 'M' is already defined as a built-in global variable. (no-redeclare)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


Update savepoints problems

(1 errors, 0 warnings)

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

mod/attendance/db/upgrade.php
'return true;' not found

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, 11 warnings)

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

mod/attendance/templates/mobile_teacher_form_ionic3.mustache
(#1) HTML Validation info, line 10: Attribute “[(ngmodel)]” is not serializable as XML 1.0. (item> <ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> <)
(#1) HTML Validation info, line 10: Attribute “(ionchange)” is not serializable as XML 1.0. (item> <ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> <)
(#1) HTML Validation info, line 14: Attribute “[args]” is not serializable as XML 1.0. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “ion-button” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “core-site-plugins-new-content” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “component” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “method” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
(#1) HTML Validation error, line 14: Attribute “[args]” not allowed on element “button” at this point. (> <button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )
mod/attendance/templates/mobile_teacher_form_latest.mustache
(#1) HTML Validation info, line 10: Attribute “[(ngmodel)]” is not serializable as XML 1.0. (> <ion-radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> )
(#1) HTML Validation info, line 10: Attribute “(ionchange)” is not serializable as XML 1.0. (> <ion-radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)=""> )
(#1) HTML Validation info, line 13: Attribute “[args]” is not serializable as XML 1.0. (span> <ion-button class="ion-margin" expand="block" core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: 25, courseid: 4, sessid: 43}"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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