public/plugin/customcertificate/src/index.php
Consider putting global function "checkInstanceImage" in a static class Open
Open
function checkInstanceImage($certificateId, $imagePath, $field, $type = 'certificates')
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info();
- Exclude checks
Variable "course_plugin" is not in valid camel caps format Open
Open
$course_plugin = 'customcertificate';
- Exclude checks
Variable "date_end" is not in valid camel caps format Open
Open
$date_end = str_replace('/', '-', $formValues['date_end']);
- Exclude checks
Variable "date_end" is not in valid camel caps format Open
Open
'date_end' => date("Y-m-d", strtotime($date_end)),
- Exclude checks
Variable "date_start" is not in valid camel caps format Open
Open
'date_start' => date("Y-m-d", strtotime($date_start)),
- Exclude checks
Variable "_setting" is not in valid camel caps format Open
Open
$_setting['student_view_enabled'] = 'false';
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$enableCourse = 1 == api_get_course_setting('customcertificate_course_enable', $course_info) ? true : false;
- Exclude checks
Variable "date_start" is not in valid camel caps format Open
Open
$date_start = str_replace('/', '-', $formValues['date_start']);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$useDefault = 1 == api_get_course_setting('use_certificate_default', $course_info) ? true : false;
- Exclude checks