chamilo/chamilo-lms

View on GitHub
public/main/work/upload_from_template.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$course_info = api_get_course_info();

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

$workInfo = get_work_data_by_id($work_id);

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        10

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

$form->addElement('hidden', 'id', $work_id);

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

protectWork($course_info, $work_id);

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

protectWork($course_info, $work_id);

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);

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

$student_can_edit_in_session = api_is_allowed_to_session_edit(false, true);

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        api_get_utc_datetime(),

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

            $course_info,

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

$work_id = isset($_REQUEST['id']) ? (int) ($_REQUEST['id']) : null;

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

$is_allowed_to_edit = api_is_allowed_to_edit();

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

$group_id = api_get_group_id();

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);

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

$documentTemplateData = getDocumentTemplateFromWork($work_id, $course_info, $documentId);

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);

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

    api_get_self().'?'.api_get_cidreq().'&id='.$work_id,

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

    if ($student_can_edit_in_session && $check) {

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

        if ($is_allowed_to_edit) {

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

    if ($is_allowed_to_edit) {

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

if (empty($work_id)) {

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);

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

    );

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

if (empty($session_id)) {

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

if (false == $is_course_member) {

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

        Display::addFlash($error_message);

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

$current_course_tool = TOOL_STUDENTPUBLICATION;

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

$course_id = api_get_course_int_id();

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

$course_code = $course_info['code'];

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

$session_id = api_get_session_id();

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        0,

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

        header('Location: '.api_get_path(WEB_CODE_PATH).'work/'.$script.'?'.api_get_cidreq().'&id='.$work_id);

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

$this_section = SECTION_COURSES;

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

$documentTemplateData = getDocumentTemplateFromWork($work_id, $course_info, $documentId);

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

            $user_id,

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

    } elseif ($student_can_edit_in_session && false == $validationStatus['has_ended']) {

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

$is_course_member = $is_course_member || api_is_platform_admin();

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

        $error_message = processWorkForm(

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

            $group_id,

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

        if (api_resource_is_locked_by_gradebook($work_id, LINK_STUDENTPUBLICATION)) {

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

    $is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);

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

$is_course_member = $is_course_member || api_is_platform_admin();

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

$user_id = api_get_user_id();

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

$course_code = $course_info['code'];

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

    'url' => api_get_path(WEB_CODE_PATH).'work/work_list.php?'.api_get_cidreq().'&id='.$work_id,

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

if (!empty($work_id)) {

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

    );

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        10

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        0,

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        api_get_utc_datetime(),

There are no issues that match your filters.

Category
Status