chamilo/chamilo-lms

View on GitHub
public/main/lp/lp_edit.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$display_date = 'none';
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

if (!empty($expired_on)) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$defaults['expired_on'] = (!empty($expired_on))
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        ->setPublishedOn(api_get_utc_datetime($published_on, true, true))
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    foreach ($specific_fields as $specific_field) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$display_date = 'none';
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$published_on = $learnPath->published_on;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$form->addElement('html', '<div id="start_date_div" style="display:'.$display_date.';">');
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$form->addElement('html', '<div id="end_date_div" style="display:'.$display_date.';">');
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $defaults['use_max_score'] = $learnPath->use_max_score;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $published_on = null;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    ? api_get_local_time($published_on)
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        ->setExpiredOn(api_get_utc_datetime($expired_on, true, true))
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        foreach ($specific_fields as $specific_field) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $learnPath->set_terms_by_prefix($_REQUEST[$specific_field['code']], $specific_field['code']);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$defaults['published_on'] = !empty($published_on) && '0000-00-00 00:00:00' !== $published_on
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $s_theme = $learnPath->get_theme();
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$published_on = $learnPath->published_on;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $published_on = $_REQUEST['published_on'];
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $expired_on = $_REQUEST['expired_on'];
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

                            $specific_field['id'],
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            'ref_id' => $learnPath->lp_id,
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $new_values = explode(',', trim($_REQUEST[$specific_field['code']]));
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            'field_id' => $specific_field['id'],
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $defaults[$specific_field['code']] = implode(', ', $arr_str_values);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$expired_on = $learnPath->expired_on;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $hide_toc_frame = 0;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $expired_on = null;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    ? api_get_local_time($expired_on)
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $specific_fields = get_specific_field_list();
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        foreach ($specific_fields as $specific_field) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $learnPath->set_terms_by_prefix($_REQUEST[$specific_field['code']], $specific_field['code']);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $form->addElement('text', $specific_field['code'], $specific_field['name']);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $display_date = 'block';
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$this_section = SECTION_COURSES;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $themeSelect->setSelected($s_theme); //default
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

if (!empty($published_on) && '0000-00-00 00:00:00' !== $published_on) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $display_date = 'block';
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            if (!empty($new_values)) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $arr_str_values = [];
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$expired_on = $learnPath->expired_on;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

                    $specific_field['id'],
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $form->addElement('text', $specific_field['code'], $specific_field['name']);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $new_values = explode(',', trim($_REQUEST[$specific_field['code']]));
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

                foreach ($new_values as $value) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    $specific_fields = get_specific_field_list();
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

$defaults['published_on'] = !empty($published_on) && '0000-00-00 00:00:00' !== $published_on
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

                array_walk($new_values, 'trim');
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

            $defaults[$specific_field['code']] = implode(', ', $arr_str_values);
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        $hide_toc_frame = 1;
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

    foreach ($specific_fields as $specific_field) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

                $arr_str_values[] = $value['value'];
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

if (!empty($published_on) && '0000-00-00 00:00:00' !== $published_on) {
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

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

        ->setHideTocFrame($hide_toc_frame)
Severity: Minor
Found in public/main/lp/lp_edit.php by phpcodesniffer

There are no issues that match your filters.

Category
Status