chamilo/chamilo-lms

View on GitHub
public/main/admin/languages.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $row_td[] = $row['original_name'];

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

    $language_data[] = $row_td;

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

    $row_td[] = $row['english_name'].' ('.$row['isocode'].')';

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

                $allow_add_term_sub_language = '';

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

            $allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=".Security::remove_XSS($all_information_of_sub_language['parent_id'])."&sub_language_id=".Security::remove_XSS($row['id'])."'>".Display::getMdiIcon(ActionIcon::VIEW_DETAILS, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Add terms to the sub-language'))."</a>";

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

        if (1 == $language_info['available']) {

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

            &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

$form_actions = [];

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

    $row_td = [];

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

    $allow_add_term_sub_language = null;

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

                $allow_add_term_sub_language = '';

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

                     &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

        $row_td[] = "<a class=\"make_visible_and_invisible\" id=\"linktool_".$row['id']."\" href='".api_get_self()."?action=$action&id=".$row['id']."'>".

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

            &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

                $sql = "UPDATE $tbl_admin_languages SET available='0' WHERE id IN ('".implode("','", $ids)."')";

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

    $allow_delete_sub_language = null;

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

            $allow_use_sub_language = "&nbsp;<a href='sub_language_add.php?action=definenewsublanguage&id=".$row['id']."'>".

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

            $allow_use_sub_language = '';

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

                     &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

$this_section = SECTION_PLATFORM_ADMIN;

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

    $sql = "UPDATE $tbl_admin_languages SET original_name='$name'

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

    $allow_add_term_sub_language = '';

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

            $verified_if_is_father = SubLanguageManager::check_if_language_is_father($row['id']);

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

$form_actions['makeunavailable'] = get_lang('Make unavailable');

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

$sql_select = "SELECT * FROM $tbl_admin_languages";

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

$table = new SortableTableFromArrayConfig($language_data, 1, count($language_data));

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

                $sql = "UPDATE $tbl_admin_languages SET available='1' WHERE id IN ('".implode("','", $ids)."')";

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

        $verified_if_is_sub_language = SubLanguageManager::check_if_language_is_sub_language($row['id']);

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

    $language_data[] = $row_td;

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

$form_actions['makeavailable'] = get_lang('Make available');

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

$table->set_form_actions($form_actions);

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

$result_select = Database::query($sql_select);

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

$result_select = Database::query($sql_select);

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

            &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

$tbl_settings_current = Database::get_main_table(TABLE_MAIN_SETTINGS);

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

            UserManager::update_all_user_languages($language_info['english_name'], $platform_language);

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

$sql_select = "SELECT * FROM $tbl_admin_languages";

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

$language_data = [];

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

            $all_information_of_sub_language = SubLanguageManager::get_all_information_of_language($row['id']);

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

            $allow_add_term_sub_language = "&nbsp;<a href='sub_language.php?action=registersublanguage&id=".Security::remove_XSS($all_information_of_sub_language['parent_id'])."&sub_language_id=".Security::remove_XSS($row['id'])."'>".Display::getMdiIcon(ActionIcon::VIEW_DETAILS, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Add terms to the sub-language'))."</a>";

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

            $allow_delete_sub_language = "&nbsp;<a href='sub_language_add.php?action=deletesublanguage&id=".Security::remove_XSS($all_information_of_sub_language['parent_id'])."&sub_language_id=".Security::remove_XSS($row['id'])."'>".Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Delete sub-language'))."</a>";

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

                     &nbsp;".$setplatformlanguage.$allow_use_sub_language.$allow_add_term_sub_language.$allow_delete_sub_language;

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

    $row_td[] = $row['id'];

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

        $row_td[] = Display::getMdiIcon(StateIcon::ACTIVE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Visible')).

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

        $language_info = SubLanguageManager::get_all_information_of_language($id);

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

while ($row = Database::fetch_array($result_select)) {

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

        if (false === $verified_if_is_sub_language) {

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

$table = new SortableTableFromArrayConfig($language_data, 1, count($language_data));

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

$tbl_admin_languages = Database::get_main_table(TABLE_MAIN_LANGUAGE);

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

            $platform_language = api_get_setting('platformLanguage');

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

    $allow_use_sub_language = '';

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

            $allow_delete_sub_language = "&nbsp;<a href='sub_language_add.php?action=deletesublanguage&id=".Security::remove_XSS($all_information_of_sub_language['parent_id'])."&sub_language_id=".Security::remove_XSS($row['id'])."'>".Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Delete sub-language'))."</a>";

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

            UserManager::update_all_user_languages($language_info['english_name'], $platform_language);

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

$tool_name = get_lang('Chamilo Portal Languages');

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

Display::display_header($tool_name);

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

        $row_td[] = '

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

            if (true === $verified_if_is_father) {

There are no issues that match your filters.

Category
Status