chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/banner.lib.php

Summary

Maintainability
A
0 mins
Test Coverage

The function return_navigation_array() has an NPath complexity of 9525648. The configured NPath complexity threshold is 200.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

The function return_breadcrumb() has an NPath complexity of 450882432. The configured NPath complexity threshold is 200.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = $userinfo['complete_name'];
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Gallery');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $breadcrumb_step['title'] = Security::remove_XSS($navigation_item['title']);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['url'] = $breadcrumb_step['url'].$sep.$courseParams;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Folders of users');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Chat conversations history');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$home_link' which will lead to PHP notices.
Open

                $lis .= Display::tag('li', $home_link);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                    $navigation_item['url'] = '#';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Flash');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation_item['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation_item['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Folders of users');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Audio');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$home_link' which will lead to PHP notices.
Open

            if (!empty($home_link)) {
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $breadcrumb_step['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

        $navigation[] = $navigation_item;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$home_link' which will lead to PHP notices.
Open

                $lis .= Display::tag('li', $home_link);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Video');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

        $navigation_item['url'] = '#';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['url'] = '#';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation[] = $navigation_item;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation_item['title'] = Security::remove_XSS($navigation_item['title']);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                    $navigation_item['url'] = $breadcrumb_step['url'].$sep.api_get_cidreq();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

        $navigation_item['title'] = $nameTools;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation_item['title'] = Security::remove_XSS($navigation_item['title']);
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$home_link' which will lead to PHP notices.
Open

            if (!empty($home_link)) {
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

            $navigation_item['title'] = $breadcrumb_step['name'];
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$navigation_item' which will lead to PHP notices.
Open

                $navigation_item['title'] = get_lang('Images');
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

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

        } else {
            if (api_is_teacher() || api_is_drh() || api_is_session_admin() || api_is_student_boss()) {
                $menu_navigation['session_my_space'] = $possible_tabs['session_my_space'];
            } else {
                $menu_navigation['session_my_space'] = $possible_tabs['session_my_progress'];
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_breadcrumb uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $additionalBlocks .= Display::return_message(
                            get_lang('You are already registered but your allowed access time has expired.'),
                            'warning'
                        );
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_breadcrumb uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if (!empty($home_link)) {
                $lis .= Display::tag('li', $home_link);
            }
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_breadcrumb uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $navigation_item['url'] = '#';
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 getOnlineUsersInCourseCount uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $numberOnlineInCourse = who_is_online_in_this_course_count(
                $userId,
                api_get_setting('time_limit_whosonline'),
                $courseInfo['id']
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $menu_navigation['session_my_space'] = $possible_tabs['session_my_progress'];
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_breadcrumb uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $final_navigation[$index] = '<a href="'.$navigation_info['url'].'" target="_self">'.$navigation_info['title'].'</a>';
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $menu_navigation['platform_admin'] = $possible_tabs['platform_admin'];
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $menu_navigation['mycourses'] = $possible_tabs['mycourses'];
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 getOnlineUsersCount uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $number = who_is_online_count(api_get_setting('time_limit_whosonline'));
            apcu_store($apcVar, $number, 15);
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $menu_navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    if (isset($possible_tabs[$tab['subkey']])) {
                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];
                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];
                    }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 getOnlineUsersCount uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $number = who_is_online_count(api_get_setting('time_limit_whosonline'));
    }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $menu_navigation['mygradebook'] = $possible_tabs['mygradebook'];
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $menu_navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $menu_navigation['myprofile'] = $possible_tabs['myprofile'];
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $menu_navigation['myagenda'] = $possible_tabs['myagenda'];
        }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $navigation['session_my_space'] = $possible_tabs['session_my_progress'];
            }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        // Show custom tabs that are specifically marked as public
        $customTabs = getCustomTabs();
        if (!empty($customTabs)) {
            foreach ($customTabs as $tab) {
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $menu_navigation[SECTION_CAMPUS] = $possible_tabs[SECTION_CAMPUS];
    }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_navigation_array uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    if (isset($possible_tabs[$tab['subkey']])) {
                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];
                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];
                    }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 return_breadcrumb uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $navigation_item['url'] = '#';
                }
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 getOnlineUsersInCourseCount uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $numberOnlineInCourse = who_is_online_in_this_course_count(
                    $userId,
                    api_get_setting('time_limit_whosonline'),
                    $courseInfo['id']
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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

Avoid unused parameters such as '$language_file'.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

The parameter $language_file is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 "possible_tabs" is not in valid camel caps format
Open

                $navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;

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

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)

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

function return_navigation_array()

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

    $possible_tabs = get_tabs();

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

                $menu_navigation['mygradebook'] = $possible_tabs['mygradebook'];

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

                $navigation['session_my_space'] = $possible_tabs['session_my_space'];

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

                $navigation['platform_admin'] = $possible_tabs['platform_admin'];

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

                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

            if (isset($breadcrumb_step['type']) && 'right' == $breadcrumb_step['type']) {

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

                $navigation_item['title'] = get_lang('Folders of users');

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

                $userinfo = api_get_user_info(substr($breadcrumb_step['name'], 8));

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

            } elseif ('flash' == $breadcrumb_step['name']) {

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

            } elseif ('gallery' == $breadcrumb_step['name']) {

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

function getCustomTabs()

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

        if ($number_online_in_course &&

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

                .' '.$number_online_in_course.' </a></li>';

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

                $menu_navigation['session_my_space'] = $possible_tabs['session_my_space'];

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

            $menu_navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;

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

                    $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

        'menu_navigation' => $menu_navigation,

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

    $web_course_path = api_get_path(WEB_COURSE_PATH);

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

                .' '.$course_title.$sessionName;

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

            $menu_navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;

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

                $menu_navigation['platform_admin'] = $possible_tabs['platform_admin'];

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

                    if (isset($possible_tabs[$tab['subkey']])) {

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

                    $navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

    $user_id = api_get_user_id();

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

                $navigation_item['title'] = get_lang('Video');

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

        $navigation[SECTION_CAMPUS] = $possible_tabs[SECTION_CAMPUS];

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

            $menu_navigation['myagenda'] = $possible_tabs['myagenda'];

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

                $menu_navigation['session_my_space'] = $possible_tabs['session_my_progress'];

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

            $menu_navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;

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

                $navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;

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

                    $navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

        $course_title = cut($courseInfo['name'], MAX_LENGTH_BREADCRUMB);

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

                $navigation_item['url'] = '#';

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

        $menu_navigation[SECTION_CAMPUS] = $possible_tabs[SECTION_CAMPUS];

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

        $navigation[SECTION_CATALOG] = $possible_tabs[SECTION_CATALOG];

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

                $menu_navigation['mygradebook'] = $possible_tabs['mygradebook'];

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

            if ('#' != $breadcrumb_step['url']) {

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

                $navigation_item['title'] = get_lang('Chat conversations history');

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

            } elseif ('images' == $breadcrumb_step['name']) {

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

function accessToWhoIsOnline()

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

        ('true' === api_get_setting('showonline', 'users') && $user_id) ||

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

            ('true' == api_get_setting('showonline', 'world') && !$user_id) ||

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

                $menu_navigation['session_my_space'] = $possible_tabs['session_my_space'];

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

                $menu_navigation['session_my_space'] = $possible_tabs['session_my_progress'];

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

                $menu_navigation['platform_admin'] = $possible_tabs['platform_admin'];

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

                $courseParams = false === strpos($breadcrumb_step['url'], 'cidReq') ? api_get_cidreq() : '';

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

            } elseif (strstr($breadcrumb_step['name'], 'shared_folder_session_')) {

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

    $course_id = api_get_course_int_id();

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

        $number_online_in_course = getOnlineUsersInCourseCount($user_id, $courseInfo);

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

                $navigation['mygradebook'] = $possible_tabs['mygradebook'];

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

                    isset($possible_tabs[$tab['subkey']])

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

                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

                    isset($possible_tabs[$tab['subkey']]) &&

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

                    $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)

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

            if (isset($breadcrumb_step['type']) && 'right' == $breadcrumb_step['type']) {

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

            } elseif ('chat_files' == $breadcrumb_step['name']) {

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

        $number_online_in_course = getOnlineUsersInCourseCount($user_id, $courseInfo);

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

                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

            $navigation_item['title'] = $breadcrumb_step['name'];

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

                $navigation_item['title'] = get_lang('Audio');

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

                $navigation_item['title'] = get_lang('Flash');

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

    $user_id = api_get_user_id();

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

            ('true' == api_get_setting('showonline', 'users') && $user_id)

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

                    $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

                    if (isset($possible_tabs[$tab['subkey']])) {

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

                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

                $navigation_item['title'] = get_lang('Gallery');

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

            $navigation['myagenda'] = $possible_tabs['myagenda'];

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

                        $menu_navigation[$tab['subkey']] = $possible_tabs[$tab['subkey']];

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

        'possible_tabs' => $possible_tabs,

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

                        $user_id

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

            'url' => $web_course_path.$courseInfo['path'].'/index.php?id_session='.$sessionId,

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

                $navigation_item['url'] = $breadcrumb_step['url'].$sep.$courseParams;

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

            $navigation_item['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);

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

    if (('true' === api_get_setting('showonline', 'world') && !$user_id) ||

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

            $navigation['mycourses'] = $possible_tabs['mycourses'];

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

            $menu_navigation['mycourses'] = $possible_tabs['mycourses'];

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

            $menu_navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;

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

                $navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;

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

            if ('shared_folder' == $breadcrumb_step['name']) {

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

        ('true' === api_get_setting('showonline', 'course') && $user_id && $course_id)

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

                        $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

        foreach ($interbreadcrumb as $breadcrumb_step) {

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

                $sep = strrchr($breadcrumb_step['url'], '?') ? '&' : '?';

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

                $navigation_item['url'] = $breadcrumb_step['url'].$sep.$courseParams;

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

                $navigation_item['title'] = get_lang('Folders of users');

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

            $menu_navigation['myprofile'] = $possible_tabs['myprofile'];

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

            $menu_navigation['myprofile'] = $possible_tabs['myprofile'];

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

            $menu_navigation['myagenda'] = $possible_tabs['myagenda'];

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

                    $possible_tabs[$tab['subkey']]['url'] = api_get_path(WEB_PATH).$possible_tabs[$tab['subkey']]['url'];

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

                $navigation_item['title'] = get_lang('Images');

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

            } elseif ('video' == $breadcrumb_step['name']) {

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

function return_logo($theme = '', $responsive = true)

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

        ('true' === api_get_setting('showonline', 'course') && $user_id && $course_id)

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

    $user_id = api_get_user_id();

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

    $menu_navigation = [];

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

            $navigation['myprofile'] = $possible_tabs['myprofile'];

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

                $navigation['session_my_space'] = $possible_tabs['session_my_progress'];

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

                $navigation['social'] = isset($possible_tabs['social']) ? $possible_tabs['social'] : null;

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

            $menu_navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;

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

            $menu_navigation['dashboard'] = isset($possible_tabs['dashboard']) ? $possible_tabs['dashboard'] : null;

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

            $navigation_item['title'] = $breadcrumb_step['name'];

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

            } elseif (strstr($breadcrumb_step['name'], 'sf_user_')) {

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

                $navigation_item['title'] = $userinfo['complete_name'];

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

            } elseif ('audio' == $breadcrumb_step['name']) {

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

function returnNotificationMenu()

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

        $menu_navigation[SECTION_CAMPUS] = $possible_tabs[SECTION_CAMPUS];

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

            $menu_navigation['mycourses'] = $possible_tabs['mycourses'];

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

            $navigation_item['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);

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

                    $sep = (strrchr($breadcrumb_step['url'], '?') ? '&amp;' : '?');

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

    foreach ($navigation as $index => $navigation_info) {

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

                $final_navigation[$index] = '<a href="'.$navigation_info['url'].'" target="_self">'.$navigation_info['title'].'</a>';

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

        $final_navigation_count = count($final_navigation);

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

            if (!empty($home_link)) {

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

            if ('#' == $navigation_info['url']) {

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

                $final_navigation[$index] = '<a href="'.$navigation_info['url'].'" target="_self">'.$navigation_info['title'].'</a>';

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

        foreach ($interbreadcrumb as $breadcrumb_step) {

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

                $navigation_right[] = $breadcrumb_step;

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

                $final_navigation[$index] = '<a href="'.$navigation_info['url'].'" target="_self">'.$navigation_info['title'].'</a>';

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

            if (!empty($learnPath) && !empty($view_as_student_link)) {

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

                $breadcrumb_step['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);

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

                $final_navigation[$index] = $navigation_info['title'];

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

                $final_navigation[$index] = $navigation_info['title'];

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

    if (!empty($final_navigation)) {

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

            $navigation[] = $navigation_item;

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

    $final_navigation = [];

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

    $view_as_student_link = null;

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

            $navigation_item['title'] = Security::remove_XSS($navigation_item['title']);

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

            if (isset($breadcrumb_step['type']) && 'right' == $breadcrumb_step['type']) {

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

                $breadcrumb_step['title'] = Security::remove_XSS($navigation_item['title']);

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

                $breadcrumb_step['title'] = Security::remove_XSS($navigation_item['title']);

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

                if (!empty($bread_check)) {

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

                    if ($final_navigation_count - 1 > $i) {

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

                if ('#' != $breadcrumb_step['url']) {

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

                $lis .= Display::tag('li', $home_link);

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

            foreach ($navigation_right as $item) {

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

    $navigation_right = [];

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

                    $navigation_item['url'] = '#';

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

        $navigation_item['title'] = $nameTools;

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

            $view_as_student_link = api_display_tool_view_option();

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

                    $view_as_student_link = '';

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

        $final_navigation_count = count($final_navigation);

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

            $navigation_item['title'] = Security::remove_XSS($navigation_item['title']);

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

                $breadcrumb_step['title'] = cut($navigation_item['title'], MAX_LENGTH_BREADCRUMB);

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

            if (!empty($home_link)) {

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

                $lis .= Display::tag('li', $home_link);

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

            $html .= Display::tag('div', $view_as_student_link, ['id' => 'view_as_link', 'class' => 'pull-right']);

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

        if (!empty($navigation_right)) {

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

function getOnlineUsersCount()

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

                $navigation_right[] = $breadcrumb_step;

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

    if ($user_id && !empty($courseInfo)) {

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

                $extra_class = isset($item['class']) ? $item['class'] : null;

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

        if (!empty($navigation_info['title'])) {

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

        if (!empty($final_navigation)) {

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

            foreach ($final_navigation as $bread) {

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

                    ['class' => $extra_class.' pull-right']

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

function getOnlineUsersInSessionCount($sessionId)

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

            if (isset($breadcrumb_step['type']) && 'right' == $breadcrumb_step['type']) {

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

                    $navigation_item['url'] = $breadcrumb_step['url'].$sep.api_get_cidreq();

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

        $navigation_item['url'] = '#';

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

                $bread_check = trim(strip_tags($bread));

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

function getOnlineUsersInCourseCount($userId, $courseInfo)

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

                    $navigation_item['url'] = $breadcrumb_step['url'].$sep.api_get_cidreq();

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

        $navigation[] = $navigation_item;

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

        if (!empty($view_as_student_link)) {

The variable $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_right is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $number_online_in_course is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $home_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $home_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $home_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $extra_class is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $number_online_in_course is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $web_course_path is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $web_course_path is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $home_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $extra_class is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $user_id is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $number_online_in_course is not named in camelCase.
Open

function returnNotificationMenu()
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $sessionId = api_get_session_id();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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_id is not named in camelCase.
Open

function accessToWhoIsOnline()
{
    $user_id = api_get_user_id();
    $course_id = api_get_course_int_id();
    $access = false;
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $menu_navigation is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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_title is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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_title is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_right is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_item is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $view_as_student_link is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $breadcrumb_step is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation_count is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $bread_check is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $final_navigation_count is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $possible_tabs is not named in camelCase.
Open

function return_navigation_array()
{
    $navigation = [];
    $menu_navigation = [];
    $possible_tabs = get_tabs();
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_right is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_info is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $bread_check is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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 $navigation_right is not named in camelCase.
Open

function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
{
    $courseInfo = api_get_course_info();
    $user_id = api_get_user_id();
    $additionalBlocks = '';
Severity: Minor
Found in public/main/inc/lib/banner.lib.php by phpmd

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