chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/search/tool_processors/learnpath_processor.class.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $score[$key] = $row['score'];

UndefinedVariable

Since: 2.8.0

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

Example

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

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

Avoid assigning values to variables in if clauses and the like (line '128', column '17').
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

IfStatementAssignment

Since: 2.7.0

Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

Example

class Foo
{
    public function bar($flag)
    {
        if ($foo = 'bar') { // possible typo
            // ...
        }
        if ($baz = 0) { // always false
            // ...
        }
    }
}

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

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

                        } else { // course not visible for user
                            if ($search_show_unlinked_results) {
                                $result['url'] = '';
                                $results[] = $result;
                            }

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

            } else {
                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author
                    FROM       $lp_table, $lpi_table
                    WHERE      
                                $lpi_table.c_id = $course_id AND 

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

        } else {
            return [];
        }

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 '$path'.
Open

            $path = '';

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 class learnpath_processor is not named in CamelCase.
Open

class learnpath_processor extends search_processor
{
    public $learnpaths = [];

    public function __construct($rows)

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The parameter $lp_id is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

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

            $document_id = $row_val['xapian_data'][SE_DATA]['document_id'];

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

            $this->learnpaths[$courseid][$lp_id]['total_score'] += $row_val['score'];

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

            $this->learnpaths[$courseid][$lp_id]['has_document_id'] = is_numeric($document_id);

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

                'score' => $row_val['score'],

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

            $lp_item = $row_val['xapian_data'][SE_DATA]['lp_item'];

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

            $lp_id = $row_val['xapian_data'][SE_DATA]['lp_id'];

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

            $this->learnpaths[$courseid][$lp_id]['total_score'] += $row_val['score'];

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

            $document_id = $row_val['xapian_data'][SE_DATA]['document_id'];

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

                'lp_item' => $lp_item,

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

        foreach ($rows as $row_id => $row_val) {

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

            $lp_item = $row_val['xapian_data'][SE_DATA]['lp_item'];

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

            $courseid = $row_val['courseid'];

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

                'row_id' => $row_id,

Missing function doc comment
Open

    public function __construct($rows)

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

            $this->learnpaths[$courseid][$lp_id]['has_document_id'] = is_numeric($document_id);

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

        foreach ($rows as $row_id => $row_val) {

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

            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

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

            $this->learnpaths[$courseid][$lp_id][] = $item;

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

            $lp_id = $row_val['xapian_data'][SE_DATA]['lp_id'];

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path

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

                    WHERE       $lpi_table.c_id = $course_id AND 

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

                                $doc_table.c_id = $course_id AND 

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

                        if ($course_visible_for_user) {

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

                    FROM       $lp_table, $lpi_table

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

                                $lpi_table.c_id = $course_id AND 

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

                        list($thumbnail, $image, $name, $author) = $this->get_information($courseid, $lp_id, $lp['has_document_id']);

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

    private function get_information($course_id, $lp_id, $has_document_id = true)

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

                    FROM       $lp_table, $lpi_table

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

                $img_location = api_get_path(WEB_COURSE_PATH).$course_path."/document/";

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

            if ($course_visible_for_user || $search_show_unlinked_results) {

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

                foreach ($learnpaths as $lp_id => $lp) {

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

                        $url = sprintf($url, $courseid, $lp_id);

Method name "learnpath_processor::get_information" is not in camel caps format
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)

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

        $course_information = api_get_course_info($course_id);

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

        $course_id = $course_information['real_id'];

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

                                $lpi_table.display_order = 1 AND        

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

                                $lp_table.c_id = $course_id AND 

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

                $thumbnail_path = str_replace('.png.html', '_thumb.png', $row['path']);

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

    private function get_information($course_id, $lp_id, $has_document_id = true)

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

        $course_information = api_get_course_info($course_id);

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

        $course_path = $course_information['path'];

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

                    WHERE       $lpi_table.c_id = $course_id AND 

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author

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

                    FROM       $lp_table, $lpi_table

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

            $dk_result = Database::query($sql);

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

            if ($course_visible_for_user || $search_show_unlinked_results) {

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

                            if ($search_show_unlinked_results) {

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

            $lpi_table = Database::get_course_table(TABLE_LP_ITEM);

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

            $doc_table = Database::get_course_table(TABLE_DOCUMENT);

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

                    INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id  AND $lpi_table.c_id = $course_id

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

                                $lp_table.id = $lpi_table.lp_id

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

        $course_path = $course_information['path'];

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

                $img_location = api_get_path(WEB_COURSE_PATH).$course_path."/document/";

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path

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

                    $thumbnail = $img_location.$thumbnail_path;

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

                                $doc_table.c_id = $course_id AND 

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

                    $image = $img_location.$big_img_path;

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

                                $lpi_table.lp_id = $lp_id AND        

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

            if ($row = Database::fetch_array($dk_result)) {

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

                if (!empty($thumbnail_path)) {

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

                        $lp_id

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

        if (!empty($course_information)) {

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

            $lp_id = intval($lp_id);

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

                    INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id  AND $lpi_table.c_id = $course_id

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

                    INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id  AND $lpi_table.c_id = $course_id

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author

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

                                $lpi_table.lp_id = $lp_id AND        

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

                    $thumbnail = $img_location.$thumbnail_path;

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

            $course_visible_for_user = api_is_course_visible_for_user(null, $courseid);

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path

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

                    INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id  AND $lpi_table.c_id = $course_id

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

                                $lp_table.id = $lpi_table.lp_id

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author

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

            $lp_table = Database::get_course_table(TABLE_LP_MAIN);

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

            if ($has_document_id) {

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

        $course_id = $course_information['real_id'];

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

                    INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id  AND $lpi_table.c_id = $course_id

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

            $lp_id = intval($lp_id);

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

                                $lpi_table.c_id = $course_id AND 

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

                                $lpi_table.lp_id = $lp_id  AND        

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

                                $lpi_table.lp_id = $lp_id  AND        

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

                    FROM       $lp_table, $lpi_table

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

                    $image = $img_location.$big_img_path;

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

                                $lp_table.c_id = $course_id AND 

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

                                $lpi_table.display_order = 1 AND      

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

                                $lp_table.id = $lpi_table.lp_id

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

                                $lp_table.id = $lpi_table.lp_id

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

                $big_img_path = str_replace('.png.html', '.png', $row['path']);

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

    private function get_information($course_id, $lp_id, $has_document_id = true)

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

                $sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path

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

                if (!empty($big_img_path)) {

Class name "learnpath_processor" is not in camel caps format
Open

class learnpath_processor extends search_processor

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $search_show_unlinked_results is not named in camelCase.
Open

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

It is 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 function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

It is 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 function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $document_id is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $search_show_unlinked_results is not named in camelCase.
Open

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $document_id is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $search_show_unlinked_results is not named in camelCase.
Open

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $has_document_id is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $doc_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dk_result is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thumbnail_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thumbnail_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_id is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_val is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $doc_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thumbnail_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

It is 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 function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

It is 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 function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

It is 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 function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $row_id is not named in camelCase.
Open

    public function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

It is 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 function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $dk_result is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    public function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

It is 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 function process()
    {
        $results = [];
        foreach ($this->learnpaths as $courseid => $learnpaths) {
            $search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $doc_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $big_img_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

It is 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 function __construct($rows)
    {
        $this->rows = $rows;
        // group by learning path
        foreach ($rows as $row_id => $row_val) {

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $doc_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $big_img_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $doc_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $img_location is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $img_location is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $img_location is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $big_img_path is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $lpi_table is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The method get_information is not named in camelCase.
Open

    private function get_information($course_id, $lp_id, $has_document_id = true)
    {
        $course_information = api_get_course_info($course_id);
        $course_id = $course_information['real_id'];
        $course_path = $course_information['path'];

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status