chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    $stopping_error = false;
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $o_ppt = new OpenofficePresentation($take_slide_name);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $first_item_id = $o_ppt->convert_document($_FILES['user_file'], 'make_lp', $_POST['slide_size']);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $stopping_error = false;
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

                $oAICC->parse_config_files($config_dir);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

if (isset($_POST) && $is_error) {
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $o_doc = new OpenofficeText($split_steps);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $config_dir = $oAICC->import_local_package($s, $current_dir);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$user_file = $user_file ? $user_file : [];
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $new_dir = api_replace_dangerous_char(trim($file_base_name));
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$user_file = $user_file ? $user_file : [];
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $new_dir = api_replace_dangerous_char(trim($file_base_name));
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $new_dir = api_replace_dangerous_char(trim($file_base_name));
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $current_dir = api_replace_dangerous_char(trim($_POST['current_dir']));
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

                $current_dir,
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $config_dir = $oAICC->import_package($_FILES['user_file']);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $file_base_name = str_replace('.'.$extension, '', $filename);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$user_file = $_GET['user_file'] ?? [];
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$is_error = $user_file['error'] ?? false;
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $new_dir = api_replace_dangerous_char(trim($file_base_name));
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $split_steps = empty($_POST['split_steps']) || 'per_page' === $_POST['split_steps'] ? 'per_page' : 'per_chapter';
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $first_item_id = $o_doc->convert_document($_FILES['user_file']);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $current_dir = '';
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $take_slide_name = empty($_POST['take_slide_name']) ? false : true;
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $o_doc = new OpenofficeText($split_steps);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $o_ppt = new OpenofficePresentation($take_slide_name);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $first_item_id = $o_ppt->convert_document($_FILES['user_file'], 'make_lp', $_POST['slide_size']);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $manifest = $oScorm->import_local_package($s, $current_dir);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

            $first_item_id = $o_doc->convert_document($_FILES['user_file']);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

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

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

                $oAICC->parse_config_files($config_dir);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$user_file = $user_file ? $user_file : [];
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

$is_error = $user_file['error'] ?? false;
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

    $file_base_name = str_replace('.'.$extension, '', $filename);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

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

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

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

            $config_dir = $oAICC->import_local_package($s, $current_dir);
Severity: Minor
Found in public/main/lp/lp_upload.php by phpcodesniffer

There are no issues that match your filters.

Category
Status