chamilo/chamilo-lms

View on GitHub
public/main/upload/upload_ppt.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $allowed_extensions = ['odp', 'sxi', 'ppt', 'pps', 'sxd', 'pptx'];

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

                if (!empty($o_ppt->error)) {

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

        $form->addElement('text', $specific_field['code'], $specific_field['name'].' : ');

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

            if (isset($o_ppt) && 0 != $first_item_id) {

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

                    foreach ($specific_fields as $specific_field) {

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

                header('Location: ../lp/lp_controller.php?'.api_get_cidreq().'&lp_id='.$o_ppt->lp_id.'&action=view_item&id='.$first_item_id);

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

                                        $specific_field['id'],

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

                header('Location: ../lp/lp_controller.php?'.api_get_cidreq().'&lp_id='.$o_ppt->lp_id.'&action=view_item&id='.$first_item_id);

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

                header('Location: ../lp/lp_controller.php?'.api_get_cidreq().'&lp_id='.$o_ppt->lp_id.'&action=view_item&id='.$first_item_id);

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

                                        $o_ppt->lp_id,

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

            $allowed_extensions

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

            if (isset($o_ppt) && 0 != $first_item_id) {

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

                                        $o_ppt->lp_id,

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

$is_allowed_to_edit = api_is_allowed_to_edit();

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

    $specific_fields = get_specific_field_list();

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

    foreach ($specific_fields as $specific_field) {

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

        $form->addElement('text', $specific_field['code'], $specific_field['name'].' : ');

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

$div_upload_limit = get_lang('Upload max size').' : '.ini_get('post_max_size');

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

                    foreach ($specific_fields as $specific_field) {

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

    foreach ($specific_fields as $specific_field) {

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

if (!$is_allowed_to_edit) {

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

                    $errorMessage = $o_ppt->error;

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

                    $specific_fields = get_specific_field_list();

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

                        $values = explode(',', trim($_POST[$specific_field['code']]));

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

$form->addElement('file', 'user_file', [Display::getMdiIcon('file-presentation-box', 'ch-tool-icon', null, ICON_SIZE_SMALL), $div_upload_limit]);

There are no issues that match your filters.

Category
Status