MDL-46116 mod_imscp: Fix codechecker issues, some moodlecheck issues.