chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Variable "specific_fields" 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

                                        $specific_field['id'],

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

$renderer->setCustomElementTemplate($user_file_template);

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

if (!$is_allowed_to_edit) {

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

                    $specific_fields = get_specific_field_list();

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

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

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

$user_file_template =

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

$form_style = '<style>

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

    $specific_fields = get_specific_field_list();

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

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

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

                                        $o_doc->lp_id,

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

$renderer->setElementTemplate($user_file_template, 'user_file');

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

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

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

                    $errorMessage = $o_doc->error;

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

    <img src="'.Display::returnIconPath('message_error.png').'" alt="'.$alt_text.'" '.$attribute_list.'  /></div>

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

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

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

$s_style_error = "border-width: 1px;

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

        $allowed_extensions = ['doc', 'docx', 'odt', 'txt', 'sxw', 'rtf'];

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

<img src="'.Display::returnIconPath('message_normal.png').'" alt="'.$alt_text.'" '.$attribute_list.'  /></div>

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

    <img src="'.Display::returnIconPath('message_error.png').'" alt="'.$alt_text.'" '.$attribute_list.'  /></div>

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

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

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

$s_style = "border-width: 1px;

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

echo '<div style="'.$s_style.'"><div style="float:left; margin-right:10px;">

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

        if (in_array(strtolower(pathinfo($_FILES['user_file']['name'], PATHINFO_EXTENSION)), $allowed_extensions)) {

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

    foreach ($specific_fields as $specific_field) {

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

    echo '<div style="'.$s_style_error.'"><div style="float:left; margin-right:10px;">

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

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

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

                    foreach ($specific_fields as $specific_field) {

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

$user_file_template =

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 "o_doc" is not in valid camel caps format
Open

                                        $o_doc->lp_id,

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

<img src="'.Display::returnIconPath('message_normal.png').'" alt="'.$alt_text.'" '.$attribute_list.'  /></div>

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

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

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

$htmlHeadXtra[] = $form_style;

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

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

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

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

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

$is_allowed_to_edit = api_is_allowed_to_edit();

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

        <!-- BEGIN required --><span class="form_required">*</span> <!-- END required -->{label}{element}$div_upload_limit

There are no issues that match your filters.

Category
Status