chamilo/chamilo-lms

View on GitHub
public/main/create_course/add_course.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    if (!empty($terms_and_conditions_url)) {

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

    if ($course_validation_feature) {

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

        $wanted_code = CourseManager::generate_course_code(

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

$tool_name = $course_validation_feature ? get_lang('Create a course request') : get_lang('Add a new course');

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

$course_validation_feature = false;

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

if ($course_validation_feature) {

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

        $form->addElement('label', null, $link_terms_and_conditions);

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

if (isset($_user['language']) && '' != $_user['language']) {

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

        $target_audience = $course_values['target_audience'];

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

$allowed_picture_types = api_get_supported_image_extensions(false);

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

    $exemplary_content = !empty($course_values['exemplary_content']);

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

$this_section = SECTION_COURSES;

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

$form->addElement('header', $tool_name);

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    true);

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

$tool_name = $course_validation_feature ? get_lang('Create a course request') : get_lang('Add a new course');

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

$tpl = new Template($tool_name);

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

        $link_terms_and_conditions = '

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

if (isset($_user['language']) && '' != $_user['language']) {

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

    $course_values = $form->exportValues();

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

    $title = $course_values['title'];

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

    $exemplary_content = !empty($course_values['exemplary_content']);

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

    $terms_and_conditions_url = trim(

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

        $link_terms_and_conditions .= Display::url(

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

            ['onclick' => "javascript:MM_openBrWindow('$terms_and_conditions_url', 'Conditions', 'scrollbars=yes, width=800');"]

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

    $course_language = $course_values['course_language'];

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

            $terms_and_conditions_url = api_get_path(WEB_CODE_PATH).'auth/inscription.php?legal';

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

    $category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';

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

        $objetives = $course_values['objetives'];

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

    $category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';

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

    $wanted_code = $course_values['wanted_code'];

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

    $allowed_picture_types

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

if ($course_validation_feature) {

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

        $description = $course_values['description'];

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

        $target_audience = $course_values['target_audience'];

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

        $course_code_ok = !CourseManager::course_code_exists($wanted_code);

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

    $course_validation_feature = true;

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

    if (empty($terms_and_conditions_url)) {

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

    $values['course_language'] = $_user['language'];

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

    $wanted_code = $course_values['wanted_code'];

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

    $course_language = $course_values['course_language'];

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

    if ('' == $wanted_code) {

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

    if (!$course_validation_feature) {

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

    get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(',', $allowed_picture_types).')',

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

$form->addButtonCreate($course_validation_feature ? get_lang('Create this course request') : get_lang('Create this course'));

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

    $category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';

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

                $course_language,

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

        $course_code_ok = !CourseManager::course_code_exists($wanted_code);

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

            $params['gradebook_model_id'] = isset($course_values['gradebook_model_id']) ? $course_values['gradebook_model_id'] : null;

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

                $wanted_code,

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

                $category_code,

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

                $message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('Your request for a new course has been sent successfully. You may receive a reply soon, within one or two days.');

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

        if (!$course_validation_feature) {

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

            $params['wanted_code'] = $wanted_code;

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

                $exemplary_content

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

                $course_request_info = CourseRequestManager::get_course_request_info($request_id);

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

        $course_code_ok = !CourseRequestManager::course_code_exists($wanted_code);

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

            $params['course_language'] = $course_language;

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

                        $file->setCrop($course_values['picture_crop_result_for_resource']);

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

    if (!$course_validation_feature) {

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

            $request_id = CourseRequestManager::create_course_request(

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

                $target_audience,

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

            if ($request_id) {

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

                $message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('Your request for a new course has been sent successfully. You may receive a reply soon, within one or two days.');

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

            $params['exemplary_content'] = $exemplary_content;

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

            $params['gradebook_model_id'] = isset($course_values['gradebook_model_id']) ? $course_values['gradebook_model_id'] : null;

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

            $params['course_template'] = isset($course_values['course_template']) ? $course_values['course_template'] : '';

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

            $params['course_template'] = isset($course_values['course_template']) ? $course_values['course_template'] : '';

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

        $course_code_ok = !CourseRequestManager::course_code_exists($wanted_code);

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

    if ($course_code_ok) {

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

                $course_request_info = CourseRequestManager::get_course_request_info($request_id);

Multi-line function call not indented correctly; expected 0 spaces but found 4
Open

    true);

Closing parenthesis of a multi-line function call must be on a line by itself
Open

    true);

There are no issues that match your filters.

Category
Status