chamilo/chamilo-lms

View on GitHub
public/main/lp/ScormApi.php

Summary

Maintainability
A
0 mins
Test Coverage

The method ScormApi::saveItem() calls the typical debug function print_r() which is mostly only used during development.
Open

                error_log("item #$item_id not found in the items array: ".print_r($myLP->items, 1));
Severity: Minor
Found in public/main/lp/ScormApi.php by phpmd

DevelopmentCodeFragment

Since: 2.3.0

Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.

Example

class SuspectCode {

    public function doSomething(array $items)
    {
        foreach ($items as $i => $item) {
            // …

            if ('qafoo' == $item) var_dump($i);

            // …
        }
    }
}

Source https://phpmd.org/rules/design.html#developmentcodefragment

The method saveItem has 20 parameters. Consider reducing the number of parameters to less than 10.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpmd

The method switchItem() has an NPath complexity of 287232. The configured NPath complexity threshold is 200.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 method saveItem() has an NPath complexity of 9223372036854775807. The configured NPath complexity threshold is 200.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

Missing class import via use statement (line '659', column '26').
Open

            $mylpi = new learnpathItem($new_item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpmd

MissingImport

Since: 2.7.0

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

Example

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

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

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

                    } else {
                        $myLPI->set_status('failed');
                        if ($debug) {
                            error_log('Set status: failed');
                        }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                if ($debug > 1) {
                    error_log('Score not updated');
                }
            }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                                } else {
                                    $myStatus = 'failed';
                                }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $myLPI->current_stop_time = time();
            }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                if ($debug > 1) {
                    error_log('Status not updated');
                }
            }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $myStatus = $myStatusInDB;
        }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    if ($debug > 1) {
                        error_log("Status not updated");
                    }
                }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $myStatus = $myStatusInDB;
            }
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    if ($debug > 1) {
                        error_log("Time is in SCORM format");
                    }
                    if ($debug > 1) {
Severity: Minor
Found in public/main/lp/ScormApi.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 switchItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if ($debug > 1) {
                error_log('In switch_item_details - generating new item object', 0);
            }
            $mylpi = new learnpathItem($new_item_id);
Severity: Minor
Found in public/main/lp/ScormApi.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 saveItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            if ($debug > 1) {
                error_log('Prerequisites are OK');
            }

Severity: Minor
Found in public/main/lp/ScormApi.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 switchItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $time_spent = $lpTime;
            }
Severity: Minor
Found in public/main/lp/ScormApi.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 local variables such as '$position'.
Open

            $position = $myLP->isFirstOrLastItem($item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

Avoid unused local variables such as '$interaction'.
Open

                foreach ($interactions as $index => $interaction) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

The parameter $next_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $core_exit is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $lp_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $view_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $user_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $user_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

The parameter $view_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 "item_id" is not in valid camel caps format
Open

            error_log("item_id: $item_id - lp_id: $lp_id - user_id: - $user_id - view_id: $view_id - item_id: $item_id");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $return .= "checkCurrentItemPosition('$item_id'); \n";
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log('Params('.$lpId.','.$user_id.','.$view_id.','.$current_item.','.$next_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $new_item_id = $mylp->get_current_item_id();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $mylpi = $mylp->items[$new_item_id];
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mymax_time_allowed = $mylpi->get_max_time_allowed();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myLPI->set_lp_view($view_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        foreach ($update_list as $my_upd_id => $my_upd_status) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    WHERE login_id = $i_id_last_connection";
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing parameter name
Open

     * @param   int user ID
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing parameter name
Open

     * @param   int View ID
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $core_exit = 'none',
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing parameter name
Open

     * @param   int Current item ID
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {next} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $new_item_id = 0;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $mylp->set_current_item($current_item);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {previous} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $new_item_id = $mylp->get_current_item_id();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mytotal_time = $mylpi->get_scorm_time('js');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                if ($next_item == $current_item) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $new_item_id = $next_item;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylaunch_data = $mylpi->get_launch_data();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $return .= "update_toc('".$my_upd_status."','".$my_upd_id."');";
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $return .= "update_toc('".$my_upd_status."','".$my_upd_id."');";
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $current_time = api_get_utc_datetime();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $sql = "UPDATE $tbl_track_login
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    $mylp->items[$current_item]->restart();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                error_log("item #$item_id not found in the items array: ".print_r($myLP->items, 1));
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                'tool_id' => $lp_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    $myLPI->set_time($real_time, 'int');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylp = learnpath::getLpFromSession(api_get_course_int_id(), $lpId, $user_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $mylpi = new learnpathItem($new_item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing class doc comment
Open

class ScormApi
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                        error_log('Calling $real_time '.$real_time.' ');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing parameter name
Open

     * @param   int New item ID
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $mylp->set_current_item($current_item);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $mylp->set_current_item($new_item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $mylpi->set_lp_view($view_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mymastery_score = $mylpi->get_mastery_score();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("item_id: $item_id - lp_id: $lp_id - user_id: - $user_id - view_id: $view_id - item_id: $item_id");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        if ($myLP->items && isset($myLP->items[$item_id])) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                'tool_id_detail' => $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        foreach ($update_list as $my_upd_id => $my_upd_status) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    SET logout_date='".$current_time."'
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $user_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {first} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mysession_time = $mylpi->get_total_time();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mysuspend_data = $mylpi->get_suspend_data();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $myLPI->set_core_exit($core_exit);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $myLP->save_item($item_id, false);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $lp_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $position = $myLP->isFirstOrLastItem($item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $new_item_id = $mylp->get_current_item_id();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {previous} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        if (is_object($mylp->items[$new_item_id])) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        foreach ($update_list as $my_upd_id => $my_upd_status) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $view_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $myLPI->max_score = $max;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    $myLPI->add_interaction($index, $clean_interaction);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if (Database::num_rows($q_last_connection) > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log('Params('.$lpId.','.$user_id.','.$view_id.','.$current_item.','.$next_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $mylp->set_current_item($current_item);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                if ($next_item == $current_item) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {default} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("TIME: $time - suspend: $suspend - location: $location - core_exit: $core_exit");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $myLPI->current_stop_time = time();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    $clean_interaction = str_replace('@.|@', ',', $interactions[$index]);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if ($my_upd_id != $item_id) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                FROM $tbl_track_login
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $q_last_connection = Database::query($sql);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $row = Database::fetch_array($q_last_connection);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $user_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("item_id: $item_id - lp_id: $lp_id - user_id: - $user_id - view_id: $view_id - item_id: $item_id");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("item_id: $item_id - lp_id: $lp_id - user_id: - $user_id - view_id: $view_id - item_id: $item_id");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myLP = learnpath::getLpFromSession($courseId, $lp_id, $user_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $tbl_track_login = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("lp_view_session_id :".$myLP->lp_view_session_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Missing parameter name
Open

     * @param   int LP ID
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        switch ($next_item) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $myLPI = $myLP->items[$item_id];
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $my_type = $myLPI->get_type();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    $real_time = time() - $time;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $myLPI->current_data = $suspend;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if ('undefined' !== $core_exit) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $return .= "update_toc('".$myStatus."','".$item_id."');";
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $update_list = $myLP->get_update_queue();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $mediaplayer = $myLP->get_mediaplayer($item_id, 'true');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {default} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylesson_status = $mylpi->get_status();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $lp_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $view_id,
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if ($my_upd_id != $item_id) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $i_id_last_connection = $row['login_id'];
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        if ($mylp->force_commit) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myLP = learnpath::getLpFromSession($courseId, $lp_id, $user_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $prerequisitesCheck = $myLP->prerequisites_match($item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $myLPI->min_score = $min;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            } elseif ('sco' === $my_type) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log('Params('.$lpId.','.$user_id.','.$view_id.','.$current_item.','.$next_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log('Params('.$lpId.','.$user_id.','.$view_id.','.$current_item.','.$next_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {next} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylesson_location = $mylpi->get_lesson_location();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            error_log("item_id: $item_id - lp_id: $lp_id - user_id: - $user_id - view_id: $view_id - item_id: $item_id");
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if ('hotpotatoes' === $my_type) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                    error_log('In {first} - next item is '.$new_item_id.'(current: '.$current_item.')');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $new_item_id = $next_item;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myprogress_mode = ('' == $myprogress_mode ? '%' : $myprogress_mode);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lesson_location='".$mylesson_location."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylesson_mode = $mylpi->get_lesson_mode();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.next_item=".$new_item_id.";".// This one is very important to replace possible literal strings.
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                update_time_bar('$time_spent','$time_total','%');\n
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            update_toc('highlight','".$new_item_id."');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            update_toc('$mylesson_status','".$new_item_id."');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myprogress_mode = ('' == $myprogress_mode ? '%' : $myprogress_mode);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylaunch_data = $mylpi->get_launch_data();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_user_id=".$user_id.";".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_interactions_count = '".$myinteractions_count."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            update_toc('$mylesson_status','".$new_item_id."');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $time_spent = $time_total;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        Session::write('scorm_item_id', $new_item_id);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.suspend_data='".$mysuspend_data."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myprogress_mode = $mylp->get_progress_bar_mode();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            update_progress_bar('$mycomplete','$mytotal','$myprogress_mode');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

            $escapedParents = array_map(function($parentTitle) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_lesson_mode = '".$mylesson_mode."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_core_exit = '".$mycore_exit."';\n".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_launch_data = '".$mylaunch_data."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            if ($lpTime >= $time_total) {
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.session_time='".$mysession_time."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mycore_exit = $mylpi->get_core_exit();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.launch_data = '".$mylaunch_data."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myprogress_mode = ('' == $myprogress_mode ? '%' : $myprogress_mode);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_view_id=".$view_id.";".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $time_spent = $time_total;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                $time_spent = $lpTime;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.total_time = '".$mytotal_time."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.mastery_score = '".$mymastery_score."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_objectives_count = '".$myinteractions_count."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "update_toc('unhighlight','".$current_item."');
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $myinteractions_count = $mylpi->get_interactions_count();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lms_item_id=".$new_item_id.";".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $time_total = intval($pl * $tc * $perc / 100) * 60;
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            $lpTimeList = Tracking::getCalculateTime($user_id, api_get_course_int_id(), $sessionId);
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

        $mylesson_location = $mylpi->get_lesson_location();
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.lesson_status='".$mylesson_status."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

                update_time_bar('$time_spent','$time_total','%');\n
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

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

            "olms.max_time_allowed = '".$mymax_time_allowed."';".
Severity: Minor
Found in public/main/lp/ScormApi.php by phpcodesniffer

The variable $my_upd_status is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mysuspend_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myinteractions_count is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_spent is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $tbl_track_login is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mytotal_time is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $core_exit is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $update_list is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_status is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mytotal_time is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_location is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mysuspend_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mymax_time_allowed is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylaunch_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mysession_time is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myprogress_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mycore_exit is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $lp_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $real_time is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_time is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $next_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mymastery_score is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mymastery_score is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myprogress_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_type is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $tbl_track_login is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $i_id_last_connection is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mymax_time_allowed is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylaunch_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_total is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $core_exit is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_upd_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $q_last_connection is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylaunch_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myinteractions_count is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $clean_interaction is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $update_list is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $tbl_track_login is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $q_last_connection is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $next_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylaunch_data is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myinteractions_count is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $lp_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_type is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $clean_interaction is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_upd_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_spent is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_spent is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myprogress_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $q_last_connection is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_time is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_location is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myprogress_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mycore_exit is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_total is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $lp_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $real_time is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_location is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_status is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $lp_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $item_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $next_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mylesson_status is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_total is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $core_exit is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_type is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $real_time is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_upd_id is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $my_upd_status is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $i_id_last_connection is not named in camelCase.
Open

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function saveItem(
        $lp_id,
        $user_id,
        $view_id,
        $item_id,
Severity: Minor
Found in public/main/lp/ScormApi.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 $next_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $current_item is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $mysession_time is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $myprogress_mode is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $time_total is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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 $new_item_id is not named in camelCase.
Open

    public static function switchItem($lpId, $user_id, $view_id, $current_item, $next_item)
    {
        $debug = 0;
        $return = '';
        if ($debug > 0) {
Severity: Minor
Found in public/main/lp/ScormApi.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