chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$this_section = SECTION_PLATFORM_ADMIN;

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

if (!empty($sublanguage_folder_error)) {

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

$intro = sprintf(get_lang('Define new terms for sub-language %s by searching some term, then save each translation by clicking the save button. You will then have to switch your own user language to see the new terms appear.'), strtolower($sub_language_name));

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

printf(get_lang('Parent language: %s'), $language_name);

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

        $list_info = search_language_term(

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

$sublanguage_folder_error = false;

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

        $language_id_exist = true;

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

$txt_search_word = (!empty($_REQUEST['txt_search_word']) ? Security::remove_XSS($_REQUEST['txt_search_word']) : '');

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

        $language_id_exist = false;

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

    $all_data_of_language = SubLanguageManager::get_all_information_of_language($_GET['id']);

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

    $all_data_of_sublanguage = SubLanguageManager::get_all_information_of_language($_GET['sub_language_id']);

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

$list_info = [];

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

    echo Display::return_message($sublanguage_folder_error, 'warning');

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

    $sub_language_name = SubLanguageManager::get_name_of_language_by_id($_GET['sub_language_id']);

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

$html .= '<input name="txt_search_word" type="text" size="50"  id="txt_search_word" value="'.$txt_search_word.'" />';

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

    $language_name = SubLanguageManager::get_name_of_language_by_id($_GET['id']);

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

    $language_name = '';

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

$table = new SortableTableFromArrayConfig($list_info, 1, 20, 'data_info');

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

    $language_id_exist = false;

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

    'txt_search_word' => $txt_search_word,

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

Display :: display_header($language_name);

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

$tool_name = get_lang('Create sub-language');

Expected 10 spaces after parameter name; 9 found
Open

 * @param string $term         The term to search for.

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

$this_script = 'sub_language';

Consider putting global function "search_language_term" in a static class
Open

function search_language_term($term, $subLanguageId)

There are no issues that match your filters.

Category
Status