chamilo/chamilo-lms

View on GitHub
public/main/announcements/announcements.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                $extra_params,

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

            $form_name = get_lang('Add an announcement');

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

        if (!isset($announcement_to_modify)) {

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

            AnnouncementManager::delete_announcement($_course, $id);

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

                    $_course,

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

                $email_ann = '1';

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

$_course = api_get_course_info_by_id($courseId);

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

$group_id = api_get_group_id();

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

    $groupEntity = api_get_group_entity($group_id);

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

        $content = AnnouncementManager::displayAnnouncement($announcement_id);

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

        $extra_params['autowidth'] = 'true';

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

                $email_ann = '1';

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

    $show_actions = true;

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

            $extra_params['multiselect'] = true;

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

                        $file_comment,

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

$current_course_tool = TOOL_ANNOUNCEMENT;

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

                        $group_id,

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

$this_section = SECTION_COURSES;

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

        $extra_params['height'] = 'auto';

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

                AnnouncementManager::delete_all_announcements($_course);

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

$use_anonymous = true;

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

$announcement_id = isset($_GET['id']) ? (int) $_GET['id'] : null;

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

                if (empty($group_id)) {

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

        $form_name = get_lang('Edit announcement');

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

                $content_to_modify = sprintf(

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

                $file_comment = $data['file_comment'];

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

        $form->addHeader($form_name);

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

        if (empty($group_id)) {

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

                    $title_to_modify = sprintf(

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

if ($show_actions) {

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

if (!empty($group_id)) {

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

                        $file_comment,

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

        $nameTools = $form_name;

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

                    $content_to_modify = get_lang(

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

                $content_to_modify = sprintf(

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

                $title_to_modify = sprintf(

The CASE body must start on the line following the statement
Open

    case 'move':

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

        if (!empty($announcement_id)) {

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

                api_is_element_in_the_session(TOOL_ANNOUNCEMENT, $announcement_id)

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

            $announcement_to_modify = '';

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

                $file_comment = $announcementAttachmentIsDisabled ? null : $_POST['file_comment'];

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

                    $file_comment,

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

$tbl_announcement = Database::get_course_table(TABLE_ANNOUNCEMENT);

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

$announcement_number = AnnouncementManager::getNumberAnnouncements();

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

                    $announcement_id,

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

                $title_to_modify = sprintf(

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

            if (!empty($group_id)) {

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

$show_actions = false;

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                ");

Opening parenthesis of a multi-line function call must be the last content on the line
Open

            $form->addLabel('',

There are no issues that match your filters.

Category
Status