chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Component/CourseCopy/CourseSelectForm.php

Summary

Maintainability
A
0 mins
Test Coverage

The method display_form() has an NPath complexity of 11520. The configured NPath complexity threshold is 200.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

NPathComplexity

Since: 0.1

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

Example

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

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

The method get_posted_course() has an NPath complexity of 15972. The configured NPath complexity threshold is 200.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

NPathComplexity

Since: 0.1

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

Example

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

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

The method parseResources() has an NPath complexity of 206. The configured NPath complexity threshold is 200.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

NPathComplexity

Since: 0.1

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

Example

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

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

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

                            $forum_categories[$id] = $resource;

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

                            $forum_topics[$resource->obj->forum_id][$id] = $resource;

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

                            $forums[$resource->obj->forum_category][$id] = $resource;

UndefinedVariable

Since: 2.8.0

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

Example

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

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

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

            } else {
                if ($recycleOption) {
                    echo '<br /><button class="save" type="submit">'.get_lang('Validate').'</button>';
                } else {
                    echo '<br />

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

                } else {
                    echo '<br />
                          <button
                                class="save btn btn--primary"
                                type="submit"

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

        } else {
            if (!empty($hidden_fields['destination_session'])) {
                echo '<br />
                      <button
                        class="save"

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

                            $forum_categories[$id] = $resource;

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

                            $forum_topics[$resource->obj->forum_id][$id] = $resource;

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

                            $forums[$resource->obj->forum_category][$id] = $resource;

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

                            foreach ($resources as $id => $resource) {

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

        global $charset; ?>

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

        $icon = Display::returnIconPath('progress_bar.gif');

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

            foreach ($course->resources as $type => $resources) {

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

                            foreach ($resources as $id => $resource) {

UnusedLocalVariable

Since: 0.2

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

Example

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

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

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

                                    foreach ($documents as $id_to_check => $post_value) {

UnusedLocalVariable

Since: 0.2

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

Example

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

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

The parameter $course_code is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

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

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

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

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

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

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

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

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

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

        $hidden_fields = null,

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

            !empty($hidden_fields['origin_session'])

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

        $forum_topics = [];

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

                    id="resource_'.RESOURCE_FORUMCATEGORY.'_'.$forum_category_id.'"

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

        if (is_array($hidden_fields)) {

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

                        $session_id = (int) $session_id;

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

                            INNER JOIN '.$table_prop.' p

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

                            $sql = "SELECT * FROM $table_prop

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

                                $forum_id = $obj->obj->forum_id;

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

                                        $posts_to_save[] = $post_id;

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

            $courseInfo = api_get_course_info($hidden_fields['destination_course']);

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

                if (isset($forums[$forum_category_id])) {

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

                                        cat_id="'.$forum_category_id.'"

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

                                        name="resource['.RESOURCE_FORUMTOPIC.']['.$topic_id.']" />';

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

                        $element_count++;

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

                        $element_count++;

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

                            $forum_topics[$resource->obj->forum_id][$id] = $resource;

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

                        $element_count++;

Method name "CourseSelectForm::get_posted_course" is not in camel caps format
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)

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

        $table_prop = Database::get_course_table(TABLE_ITEM_PROPERTY);

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

                        $conditionSession = ' AND d.session_id ='.$session_id;

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

                            $all_properties = [];

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

                                    if ($post->obj->thread_id == $thread_id &&

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

                                            $shared_path_part = substr(

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

            if (!empty($hidden_fields['destination_session'])) {

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

            $sessionTitle = !empty($hidden_fields['destination_session']) ? ' ('.api_get_session_name($hidden_fields['destination_session']).')' : null;

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

                            $my_forum_topics = $forum_topics[$forum_id];

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

                        $element_count++;

Missing parameter name
Open

     * @param $course

Method name "CourseSelectForm::display_hidden_scorm_directories" is not in camel caps format
Open

    public static function display_hidden_scorm_directories($course)

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

                                        unset($course->resources[RESOURCE_FORUMPOST][$post_id]);

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

                                if (isset($obj->file_type) && 'folder' === $obj->file_type &&

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

                                            $obj_to_check = $resources[$id_to_check];

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

            $courseInfo = api_get_course_info($hidden_fields['destination_course']);

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

            !empty($hidden_fields['destination_session']) &&

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

            echo '<input type="hidden" name="destination_course" value="'.$hidden_fields['destination_course'].'"/>';

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

            foreach ($forum_categories as $forum_category_id => $forum_category) {

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

                                foreach ($my_forum_topics as $topic_id => $topic) {

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

        $resource_titles,

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

                            $forum_categories[$id] = $resource;

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)

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

                                foreach ($posts as $post_id => $post) {

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

                                $lp_resource = $course->resources[RESOURCE_LEARNPATH][$id];

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

        if (!empty($hidden_fields['destination_course'])) {

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

        if (is_array($hidden_fields)) {

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

            !empty($hidden_fields['origin_course']) &&

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

        $resource_titles = self::getResourceTitleList();

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

        if (!empty($forum_categories)) {

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

                    foreach ($my_forums as $forum_id => $forum) {

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

                            my_rel="'.$forum_id.'"

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

                                d.c_id = '.$course_id.' AND

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

                                        id="resource_'.RESOURCE_FORUMTOPIC.'_'.$topic_id.'"

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

        foreach ($list_course as $course) {

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

        $course_id = $course_info['real_id'];

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

                                d.id = '.$resource_item.$conditionSession.'

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

                                            if ($id_to_check != $id && $obj->path == $shared_path_part) {

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

            foreach ($hidden_fields as $key => $value) {

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

            echo '<input type="hidden" name="destination_session" value="'.$hidden_fields['destination_session'].'"/>';

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

                    $my_forums = $forums[$forum_category_id];

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

                                        forum_id="'.$forum_id.'"

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

        if (empty($element_count)) {

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

        return $element_count;

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

                                $all_properties[] = $item_property;

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

                            $course->resources[RESOURCE_DOCUMENT][$resource_item]->item_properties = $all_properties;

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

                        if (isset($forum_topics[$forum_id])) {

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

                        if (isset($forum_topics[$forum_id])) {

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

                            echo '<span class="title">'.$resource_titles[$type].'</span>';

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)

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

        $course_id = $course_info['real_id'];

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

                                        ref = $resource_item ";

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

                                    foreach ($documents as $id_to_check => $post_value) {

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

                                        if (isset($resources[$id_to_check])) {

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

        if (!empty($hidden_fields['destination_course'])) {

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

            echo '<input type="hidden" name="origin_session" value="'.$hidden_fields['origin_session'].'"/>';

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

        $forum_categories = [];

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

            foreach ($forum_categories as $forum_category_id => $forum_category) {

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

                    name="resource['.RESOURCE_FORUMCATEGORY.']['.$forum_category_id.']" /> ';

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

                    if (!empty($session_id)) {

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

                            FROM '.$table_doc.' d

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

                                $all_properties[] = $item_property;

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

                                !in_array($obj->survey_id, array_keys($_POST['resource'][RESOURCE_SURVEY]))

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

                                foreach ($posts as $post_id => $post) {

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

                                        $forum_id == $post->obj->forum_id &&

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

                                    if (!in_array($post_id, $posts_to_save)) {

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

                    my_rel="'.$forum_category_id.'"

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

                    foreach ($my_forums as $forum_id => $forum) {

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

        $course_info = api_get_course_info($course_code);

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

                    while ($obj = Database::fetch_object($db_result)) {

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

                                if (isset($lp_resource) && !empty($lp_resource) && isset($lp_resource->items)) {

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

                                if (isset($obj->file_type) && 'folder' === $obj->file_type &&

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

                                                $obj_to_check->path,

Method name "CourseSelectForm::display_form" is not in camel caps format
Open

    public static function display_form(

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

        if (!empty($hidden_fields['destination_course']) &&

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

            foreach ($forum_categories as $forum_category_id => $forum_category) {

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

                            rel="'.$forum_category_id.'"

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

                            if (!empty($my_forum_topics)) {

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

            if (!empty($hidden_fields['destination_session'])) {

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

        $table_doc = Database::get_course_table(TABLE_DOCUMENT);

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

                        $session_id = (int) $session_id;

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

                            $course->resources[RESOURCE_DOCUMENT][$resource_item]->item_properties = $all_properties;

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

                $sessionTitle = ' ('.api_get_session_name($hidden_fields['destination_session']).')';

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

            $sessionTitle = !empty($hidden_fields['destination_session']) ? ' ('.api_get_session_name($hidden_fields['destination_session']).')' : null;

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

        $element_count = self::parseResources($resource_titles, $course->resources, true, true);

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

            echo '<span class="title">'.$resource_titles[RESOURCE_FORUM].'</span></div>';

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

                $forum_category->show();

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

        $element_count = 0;

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

                                if (isset($lp_resource) && !empty($lp_resource) && isset($lp_resource->items)) {

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

                                if (isset($lp_resource) && !empty($lp_resource) && isset($lp_resource->items)) {

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

                                $resource_is_used_elsewhere = $course->is_linked_resource($obj);

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

                                    if (!isset($_POST['resource'][$type][$id]) && !$resource_is_used_elsewhere) {

Method name "CourseSelectForm::display_form_session_export" is not in camel caps format
Open

    public static function display_form_session_export(

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

        $list_course,

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

        $element_count = self::parseResources($resource_titles, $course->resources, true, true);

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

                    $my_forums = $forums[$forum_category_id];

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

                            $my_forum_topics = $forum_topics[$forum_id];

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

            foreach ($hidden_fields as $key => $value) {

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

                                p.c_id = '.$course_id.' AND

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

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

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

                                if (!isset($_POST['resource'][RESOURCE_FORUMTOPIC][$thread_id])) {

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

                                    foreach ($lp_resource->items as $item) {

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

        $hidden_fields = null,

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

                            name="resource['.RESOURCE_FORUM.']['.$forum_id.']" />';

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

                                        rel="'.$forum_id.'"

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

                                    unset($course->resources[RESOURCE_FORUMTOPIC][$thread_id]);

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

                                    foreach ($documents as $id_to_check => $post_value) {

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

                            id="resource_'.RESOURCE_FORUM.'_'.$forum_id.'"

Method name "CourseSelectForm::display_hidden_quiz_questions" is not in camel caps format
Open

    public static function display_hidden_quiz_questions($course)

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

                foreach ($resource as $resource_item) {

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

                            while ($item_property = Database::fetch_assoc($res)) {

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

                                            $obj_to_check = $resources[$id_to_check];

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

                                            if ($id_to_check != $id && $obj->path == $shared_path_part) {

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

                                            $resource_is_used_elsewhere = true;

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

            echo '<input type="hidden" name="origin_course" value="'.$hidden_fields['origin_course'].'"/>';

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

                            $my_forum_topics = $forum_topics[$forum_id];

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

                                foreach ($my_forum_topics as $topic_id => $topic) {

Missing parameter name
Open

     * @param $course

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

        $course_info = api_get_course_info($course_code);

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

                                        c_id = $course_id AND

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

                            $posts_to_save = [];

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

                            foreach ($resources as $thread_id => $obj) {

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

                                        $posts_to_save[] = $post_id;

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

                                    if (!in_array($post_id, $posts_to_save)) {

The variable $element_count is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_titles is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $my_forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $session_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $topic_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $session_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $session_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $my_forums is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_prop is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_item is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_item is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $my_forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $all_properties is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $item_property is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thread_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $topic_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_topics is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thread_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $list_course is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_categories is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_doc is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_item is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_item is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_titles is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_categories is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $my_forums is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_titles is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $item_property is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $obj_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $shared_path_part is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_titles is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $session_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $db_result is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $id_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_categories is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_doc is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $all_properties is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $posts_to_save is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_prop is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $topic_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $posts_to_save is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thread_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_value is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $shared_path_part is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $my_forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $thread_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_category_id is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_topics is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $element_count is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $forum_categories is not named in camelCase.
Open

    public static function parseResources(
        $resource_titles,
        $resourceList,
        $showHeader = true,
        $showItems = true

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $table_prop is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $db_result is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $all_properties is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $post_id is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $obj_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $id_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $id_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $id_to_check is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_is_used_elsewhere is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_is_used_elsewhere is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $posts_to_save is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $resource_is_used_elsewhere is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $hidden_fields is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

CamelCaseVariableName

Since: 0.2

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

    public static function display_hidden_quiz_questions($course)
    {
        if (is_array($course->resources)) {
            foreach ($course->resources as $type => $resources) {
                if (!empty($resources) && count($resources) > 0) {

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

The method display_form is not named in camelCase.
Open

    public static function display_form(
        $course,
        $hidden_fields = null,
        $avoidSerialize = false,
        $avoidCourseInForm = false

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

The method display_hidden_scorm_directories is not named in camelCase.
Open

    public static function display_hidden_scorm_directories($course)
    {
        if (is_array($course->resources)) {
            foreach ($course->resources as $type => $resources) {
                if (!empty($resources) && count($resources) > 0) {

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

The method display_form_session_export is not named in camelCase.
Open

    public static function display_form_session_export(
        $list_course,
        $hidden_fields = null,
        $avoidSerialize = false
    ) {

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

The method get_posted_course is not named in camelCase.
Open

    public static function get_posted_course($from = '', $session_id = 0, $course_code = '', $postedCourse = null)
    {
        $course = $postedCourse;
        if (empty($postedCourse)) {
            $cb = new CourseBuilder();

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