chamilo/chamilo-lms

View on GitHub
public/plugin/customcertificate/src/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Consider putting global function "checkInstanceImage" in a static class
Open

function checkInstanceImage($certificateId, $imagePath, $field, $type = 'certificates')

Variable "course_info" is not in valid camel caps format
Open

$course_info = api_get_course_info();

Variable "course_plugin" is not in valid camel caps format
Open

$course_plugin = 'customcertificate';

Variable "date_end" is not in valid camel caps format
Open

        $date_end = str_replace('/', '-', $formValues['date_end']);

Variable "date_end" is not in valid camel caps format
Open

            'date_end' => date("Y-m-d", strtotime($date_end)),

Variable "date_start" is not in valid camel caps format
Open

            'date_start' => date("Y-m-d", strtotime($date_start)),

Variable "_setting" is not in valid camel caps format
Open

$_setting['student_view_enabled'] = 'false';

Variable "course_info" is not in valid camel caps format
Open

    $enableCourse = 1 == api_get_course_setting('customcertificate_course_enable', $course_info) ? true : false;

Variable "date_start" is not in valid camel caps format
Open

        $date_start = str_replace('/', '-', $formValues['date_start']);

Variable "course_info" is not in valid camel caps format
Open

    $useDefault = 1 == api_get_course_setting('use_certificate_default', $course_info) ? true : false;

There are no issues that match your filters.

Category
Status