chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    $language_name = $language_details['original_name'];

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

        $original_name = $get_all_information['original_name'];

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

        $original_name = $get_all_information['original_name'];

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

                get_lang('Already exists').' "'.get_lang('English name').'" '.'('.$english_name.')',

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

    $language_name = get_lang('Delete sub-language');

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

    $english_name = str_replace(' ', '_', $english_name);

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

        if ('execute_add' == $index_information && true === $value_information) {

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

            $mkdir_result = SubLanguageManager::addPoFileForSubLanguage($isocode);

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

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

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

        $sub_language_id_exist = false;

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

    $language_name = $language_details['original_name'];

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

        if ('english_name' == $index_information) {

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

            $english_name = str_replace(' ', '_', $english_name);

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

        $language_id_exist = false;

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

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

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

$language_name = '';

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

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

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

            $str_info = '<br/>'.get_lang('Original name').' : '.$original_name.'<br/>'.get_lang('English name').' : '.$english_name.'<br/>'.get_lang('Character set').' : '.$isocode;

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

            $str_info = '<br/>'.get_lang('Original name').' : '.$original_name.'<br/>'.get_lang('English name').' : '.$english_name.'<br/>'.get_lang('Character set').' : '.$isocode;

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

Display:: display_header($language_name);

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

$language_details = [];

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

    $english_name = $_POST['english_name'];

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

    $english_name = str_replace(' ', '_', $english_name);

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

        if ('isocode' == $index_information) {

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

            $english_name = str_replace(' ', '_', $english_name);

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

            $english_name = api_strtolower($english_name);

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

                    api_location(api_get_path(WEB_CODE_PATH).'admin/languages.php?sub_language_id='.$sl_id);

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

            if (false === $language_id_exist) {

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

                if (false === $sl_id) {

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

        $parent_id = (int) $_GET['id'];

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

        $english_name = $get_all_information['english_name'];

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

    $original_name = $_POST['original_name'];

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

    $check_information = SubLanguageManager::checkIfLanguageExists($original_name, $english_name, $isocode);

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

    if (strlen($original_name) > 0 && strlen($english_name) > 0 && strlen($isocode) > 0) {

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

            $firstIso = substr($language_details['isocode'], 0, 2);

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

    $check_information = [];

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

    $check_information = SubLanguageManager::checkIfLanguageExists($original_name, $english_name, $isocode);

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

        $allow_insert_info = false;

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

    if (strlen($original_name) > 0 && strlen($english_name) > 0 && strlen($isocode) > 0) {

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

            $str_info = '<br/>'.get_lang('Original name').' : '.$original_name.'<br/>'.get_lang('English name').' : '.$english_name.'<br/>'.get_lang('Character set').' : '.$isocode;

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

    foreach ($check_information as $index_information => $value_information) {

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

        if ('execute_add' == $index_information && true === $value_information) {

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

        $sub_language_id_exist = true;

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

    $language_id_exist = false;

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

        $english_name = $get_all_information['english_name'];

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

    $sublanguage_available = isset($_POST['sub_language_is_visible']) ? (int) $_POST['sub_language_is_visible'] : 0;

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

        if ('original_name' == $index_information) {

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

$this_section = SECTION_PLATFORM_ADMIN;

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

    foreach ($check_information as $index_information => $value_information) {

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

        if (true === $allow_insert_info && true === $language_id_exist) {

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

                $sl_id = SubLanguageManager::addSubLanguage($original_name, $english_name, $sublanguage_available, $parent_id, $isocode);

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

        $language_id_exist = true;

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

if (true ===  SubLanguageManager::isParentOfSubLanguage($parent_id) &&

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

        $isocode = $get_all_information['isocode'];

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

$language_name = get_lang('Create sub-languageForLanguage').' ( '.strtolower($language_name).' )';

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

    foreach ($check_information as $index_information => $value_information) {

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

                get_lang('Already exists').' "'.get_lang('Original name').'" '.'('.$original_name.')',

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

            $english_name = api_strtolower($english_name);

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

        $get_all_information = SubLanguageManager::getAllInformationOfSubLanguage((int) $_GET['id'], (int) $_GET['sub_language_id']);

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

        if (true === $allow_insert_info && true === $language_id_exist) {

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

                $sl_id = SubLanguageManager::addSubLanguage($original_name, $english_name, $sublanguage_available, $parent_id, $isocode);

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

                $sl_id = SubLanguageManager::addSubLanguage($original_name, $english_name, $sublanguage_available, $parent_id, $isocode);

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

                        Display::return_message(get_lang('The new sub-language has been added').$str_info, null, false)

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

        $sub_language_id = $_GET['sub_language_id'];

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

$language_name = get_lang('Create sub-languageForLanguage').' ( '.strtolower($language_name).' )';

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

    $check_information = SubLanguageManager::checkIfLanguageExists($original_name, $english_name, $isocode);

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

            $allow_insert_info = true;

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

            if ($mkdir_result) {

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

                $sl_id = SubLanguageManager::addSubLanguage($original_name, $english_name, $sublanguage_available, $parent_id, $isocode);

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

                $sl_id = SubLanguageManager::addSubLanguage($original_name, $english_name, $sublanguage_available, $parent_id, $isocode);

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

        $form->addElement('static', '', get_lang('Original name'), $original_name);

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

        $form->addElement('static', '', get_lang('English name'), $english_name);

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

    $text = $language_name;

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

    $values['english_name'] = $language_details['english_name'].'2';

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

    $values['isocode'] = $language_details['isocode'];

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

        $text = $language_name;

There are no issues that match your filters.

Category
Status