chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

The function initializeItem() has an NPath complexity of 3072. The configured NPath complexity threshold is 200.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.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 '58', column '22').
Open

        $mylpi = new learnpathItem($next_item);
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.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 initializeItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        if ($debug) {
            error_log('In initialize_item - generating new item object '.$next_item, 0);
        }
        $mylpi = new learnpathItem($next_item);
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.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 parameter $user_id is not named in camelCase.
Open

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

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

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

        error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');

Missing parameter name
Open

 * @param   int View ID

Missing parameter name
Open

 * @param   int user ID

Missing parameter name
Open

 * @param   int LP ID

Missing parameter name
Open

 * @param   int Current item ID

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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)

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

$use_anonymous = true;

Missing parameter name
Open

 * @param   int New item ID

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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)

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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)

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

        error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');

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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)

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

        error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');

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

    $mylp = learnpath::getLpFromSession(api_get_course_int_id(), $lpId, $user_id);

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

    $mylesson_status = $mylpi->get_status();

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

    $mymax_time_allowed = $mylpi->get_max_time_allowed();

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

                WHERE lp_iv_id = $mylp_iv_id AND c_id = $course_id

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

            "olms.mastery_score = '".$mymastery_score."';".

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

            "olms.max_time_allowed = '".$mymax_time_allowed."';".

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

            "olms.lms_user_id=".$user_id.";".

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

        $mylpi = $mylp->items[$next_item];

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

    $mysuspend_data = $mylpi->get_suspend_data();

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

            "olms.lesson_status='".$mylesson_status."';".

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

            "olms.lms_item_launch_data = '".$mylaunch_data."';".

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

            error_log('In initialize_item - recovering existing item object '.$next_item, 0);

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

            error_log('In initialize_item - generating new item object '.$next_item, 0);

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

    if (!empty($mylp_iv_id)) {

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

    $mylaunch_data = $mylpi->get_launch_data();

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

    $myinteractions_count = $mylpi->get_interactions_count();

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

            "olms.lms_item_objectives_count = '".$myinteractions_count."';".

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

    $mylp->set_current_item($next_item);

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

            "olms.total_time = '".$mytotal_time."';".

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

            "olms.lms_item_core_exit = '".$mycore_exit."';".

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

        $mylpi = new learnpathItem($next_item);

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

        error_log("mylp->lp_view_session_id: ".$mylp->lp_view_session_id);

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

        $mylpi->set_lp_view($view_id);

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

            "olms.launch_data = '".$mylaunch_data."';".

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

    $course_id = api_get_course_int_id();

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

            "olms.lesson_location='".$mylesson_location."';".

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

                WHERE lp_iv_id = $mylp_iv_id AND c_id = $course_id

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

            "olms.lms_item_id=".$next_item.";".

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

            "olms.lms_item_lesson_mode = '".$mylesson_mode."';".

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

    $mylesson_location = $mylpi->get_lesson_location();

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

            "olms.session_time='".$mysession_time."';".

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

    $mylesson_mode = $mylpi->get_lesson_mode();

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

    $mycore_exit = $mylpi->get_core_exit();

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

            "olms.lms_view_id=".$view_id.";".

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

            "olms.lms_item_interactions_count = '".$myinteractions_count."';".

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

    $mylp_iv_id = $mylpi->db_item_view_id;

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

        error_log('In initialize_item() - new item is '.$next_item);

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

    $mytotal_time = $mylpi->get_scorm_time('js', null, true);

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

    $mymastery_score = $mylpi->get_mastery_score();

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

    $mylaunch_data = $mylpi->get_launch_data();

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

    $mylp_iv_id = $mylpi->db_item_view_id;

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

    if (is_object($mylp->items[$next_item])) {

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

    $mysession_time = $mylpi->get_total_time();

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

            "olms.suspend_data='".$mysuspend_data."';".

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

            "olms.next_item=".$next_item.";".// This one is very important to replace possible literal strings.

The variable $view_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $user_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $user_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $user_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $mylp_iv_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $course_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $mylp_iv_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $mylp_iv_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $course_id is not named in camelCase.
Open

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
    $debug = 0;
    $return = '';
    if ($debug) {
Severity: Minor
Found in public/main/lp/lp_ajax_initialize.php by phpmd

CamelCaseVariableName

Since: 0.2

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