chamilo/chamilo-lms

View on GitHub
public/main/course_copy/copy_course_session.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '159', column '27').
Open

    $xajax_response = new xajaxResponse();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Remove error control operator '@' on line 221.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

Remove error control operator '@' on line 172.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

The method make_select_session_list uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $output .= '<option value = "0">'.get_lang('Select a session').'</option>';
    }

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method search_courses uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';
                $select_destination .= '<option value = "0">'.get_lang('There are no sessions available').'</option>';
                $select_destination .= '</select>';
                $xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method search_courses uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            // Search courses by id_session where course codes is include en courses list destination
            $sql = "SELECT c.code, c.visual_code, c.title, src.session_id
                    FROM $tbl_course c, $tbl_session_rel_course src
                    WHERE src.c_id = c.id

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The parameter $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

$with_base_content = true;

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

        $origin_session = $_POST['origin_session'];

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

            $cr->restore($destination_course, $destination_session);

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

            $arr_course_origin = $_POST['SessionCoursesListOrigin'];

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

            $destination_session = $_POST['sessions_list_destination'];

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

                    $cb = new CourseBuilder('', $course_origin);

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

        $arr_course_destination = $_POST['SessionCoursesListDestination'];

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

        $course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);

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

                    if ($id_session == $session['id']) {

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

            $select_multiple_empty = '<select id="destination" name="SessionCoursesListDestination[]" class="form-control"></select>';

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

        if ($destination_course !== $origin_course) {

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

                if ($course_code != $course_destinatination) {

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

        $destination_session = $_POST['sessions_list_destination'];

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

        $hiddenFields['origin_session'] = $origin_session;

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

$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

            $course_list_destination = [];

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

    return $xajax_response;

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

    $destination_course = $origin_course = $destination_session = $origin_session = '';

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

        $origin_session = '';

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

    $origin_session = '';

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

        $origin_session = $_POST['sessions_list_origin'];

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

$current_course_tool = TOOL_COURSE_MAINTENANCE;

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

                    $select_destination .= '<option value="'.$session['id'].'">'.$session['title'].' '.$session['category_name'].'</option>';

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

                    FROM $tbl_course c, $tbl_session_rel_course src

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

                    FROM $tbl_course c, $tbl_session_rel_course src

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

$this_section = SECTION_PLATFORM_ADMIN;

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

            Session::write('course_list_destination', $course_list_destination);

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

$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

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

        $course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);

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

    global $tbl_course, $tbl_session_rel_course;

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

            $temp_course_list = [];

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

                $xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));

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

    $destination_course = $origin_course = $destination_session = $origin_session = '';

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

    global $tbl_course, $tbl_session_rel_course;

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

            $xajax_response->addAssign(

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

        if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

                    $cr->restore($course_destinatination, $destination_session);

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

    $destination_session = '';

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

    if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

        $course_origin = api_get_course_info($arr_course_origin[0]);

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

    $with_base_content = false;

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

            $origin_session = $_POST['sessions_list_origin'];

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

    if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

        $course = $cb->build($origin_session, $arr_course_origin[0], $with_base_content);

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

    $select_destination = '';

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

                $temp_course_list[] = "'{$course['code']}'";

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

            if (!empty($id_session)) {

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

                $select_destination .= '</select>';

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

            $xajax_response->addAssign('ajax_list_courses_origin', 'innerHTML', api_utf8_encode($return));

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

                $course_list_destination[] = $course['code'];

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

        if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

                if ($course_code != $course_destinatination) {

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

        $arr_course_origin = $_POST['SessionCoursesListOrigin'];

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

                $select_destination .= '<option value = "0">'.get_lang('There are no sessions available').'</option>';

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

                    AND src.session_id = '".intval($id_session)."'";

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

    $destination_course = $origin_course = $destination_session = $origin_session = '';

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

$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);

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

        $destination_course = $_POST['destination_course'];

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

    $xajax_response = new xajaxResponse();

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

        $origin_course = $_POST['origin_course'];

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

                $select_destination .= '<option value = "0">-- '.get_lang('Select a session').' --</option>';

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

        if ($destination_course !== $origin_course) {

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

        $destination_session = $_POST['destination_session'];

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

                    $course = $cb->build($origin_session, $course_code, $with_base_content);

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

                    $cr->restore($course_destinatination, $destination_session);

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

            $cr->restore($destination_course, $destination_session);

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

                $course_code = $arr_course_origin[0];

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

        $course_origin = api_get_course_info($arr_course_origin[0]);

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

    $arr_course_origin = [];

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

        $cb = new CourseBuilder('', $course_origin);

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

        $hiddenFields['origin_course'] = $arr_course_origin[0];

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

        $hiddenFields['destination_session'] = $destination_session;

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

            $course_list = SessionManager::get_course_list_by_session_id($id_session);

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

                $xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));

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

                $course_destinatination = $arr_course_destination[0];

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

                    $course = $cb->build($origin_session, $course_code, $with_base_content);

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

            Session::write('session_origin', $id_session);

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

                $select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';

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

                $xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));

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

    $destination_course = $origin_course = $destination_session = $origin_session = '';

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

                $origin_course

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

        $destination_session = '';

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

        if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

            if (count($arr_course_origin) > 1 || count($arr_course_destination) > 1) {

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

                    $course_origin = api_get_course_info($course_code);

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

                    $course = $cb->build($origin_session, $course_code, $with_base_content);

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

function display_form()

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

function search_courses($id_session, $type)

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

            foreach ($course_list as $course) {

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

                $course_code = $arr_course_origin[0];

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

                $course_destinatination = $arr_course_destination[0];

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

    $arr_course_destination = [];

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

    if ((is_array($arr_course_origin) && count($arr_course_origin) > 0) && !empty($destination_session)) {

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

        $id_session = (int) $id_session;

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

            $course_list = SessionManager::get_course_list_by_session_id($id_session);

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

            Session::write('course_list', $temp_course_list);

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

                $xajax_response->addAssign('ajax_sessions_list_destination', 'innerHTML', api_utf8_encode($select_destination));

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

                $select_destination .= '</select>';

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

            $xajax_response->addAssign('ajax_list_courses_destination', 'innerHTML', api_utf8_encode($select_multiple_empty));

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

function make_select_session_list($name, $sessions, $attr = [])

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

            $xajax_response->addAssign('ajax_list_courses_destination', 'innerHTML', api_utf8_encode($select_multiple_empty));

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

                $origin_session,

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

        $arr_course_destination = [];

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

            if (count($arr_course_origin) > 1 || count($arr_course_destination) > 1) {

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

        $hiddenFields['destination_course'] = $arr_course_destination[0];

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

function search_courses($id_session, $type)

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

        $id_session = (int) $id_session;

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

                $select_destination .= '<select name="sessions_list_destination" class="form-control" onchange = "javascript: xajax_search_courses(this.value,\'destination\');">';

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

        $arr_course_origin = [];

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

            $arr_course_destination = $_POST['SessionCoursesListDestination'];

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

                    $course_origin = api_get_course_info($course_code);

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_list_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_multiple_empty is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_list_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_course is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_course_list is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_course_list is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_multiple_empty is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_session_rel_course is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_course_list is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_course is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_list is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_list is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $xajax_response is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $select_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_session is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $course_list_destination is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $tbl_course is not named in camelCase.
Open

function search_courses($id_session, $type)
{
    global $tbl_course, $tbl_session_rel_course;
    $xajax_response = new xajaxResponse();
    $select_destination = '';

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status