chamilo/chamilo-lms

View on GitHub
public/main/gradebook/lib/fe/linkaddeditform.class.php

Summary

Maintainability
A
0 mins
Test Coverage

The method __construct() has an NPath complexity of 3628800. The configured NPath complexity threshold is 200.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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 '$values' which will lead to PHP notices.
Open

            $defaults['weight_mask'] = $values['weight'];

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 '$values' which will lead to PHP notices.
Open

                $values['weight'] = $link->get_weight();

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 '$values' which will lead to PHP notices.
Open

                $values['weight'] = $link->get_weight();

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

            } else {
                $select = $this->addSelect('select_link', get_lang('ChooseItem'));
                foreach ($link->get_all_links() as $newlink) {
                    $name = strip_tags(Exercise::get_formated_title_variable($newlink[1]));
                    $select->addOption($name, $newlink[0]);

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

        } else {
            $this->addButtonUpdate(get_lang('Edit link'));
        }

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

        } else {
            exit('LinkAddEditForm error: define link_type/category_object or link_object');
        }

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

            } else {
                $this->addText('max', get_lang('Maximum score'), true, ['size' => '4', 'maxlength' => '5']);
                $this->addRule('max', get_lang('Only numbers'), 'numeric');
                $this->addRule(
                    'max',

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

        } else {
            $select_gradebook = $this->addSelect(
                'select_gradebook',
                get_lang('Select assessment'),
                [],

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

        } else {
            $this->addElement(
                'label',
                get_lang('Name'),
                '<span class="freeze">'.$link->get_name().' ['.$link->get_type_name().']</span>'

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

                            } else {
                                $select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());
                            }

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

                        } else {
                            $select_gradebook->addOption(get_lang('Select'), 0);
                        }

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

            } else {
                $cat = Category::load($parent_cat[0]->get_parent_id());
                //$global_weight = $cat[0]->get_weight();
                //$values['weight'] = $link->get_weight()/$parent_cat[0]->get_weight()*$global_weight;
                //var_dump($global_weight, $link->get_weight(), $parent_cat[0]->get_weight());

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

                $cat = Category::load($parent_cat[0]->get_parent_id());

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

            $default_weight = 0;

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

        $visible = (self::TYPE_EDIT == $form_type && $link->is_visible()) ? '1' : '0';

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

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

        $link_type,

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

            $link->set_category_id($category_object[0]->get_id());

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

        if (self::TYPE_EDIT == $form_type) {

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

            $this->addElement('hidden', 'select_gradebook', $category_object[0]->get_id());

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

            if (!empty($category_object)) {

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

                foreach ($category_object as $my_cat) {

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

                                $select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());

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

                                $select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());

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

                ' [0 .. <span id="max_weight">'.$category_object[0]->get_weight(

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

        $form_type,

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

        } elseif (isset($link_type) && isset($category_object)) {

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

        if (self::TYPE_ADD == $form_type || $link->is_allowed_to_change_name()) {

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

        $category_object,

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

        $form_name,

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

            if (0 == $parent_cat[0]->get_parent_id()) {

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

                $visibility_default = 0;

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

                                $default_weight = $my_cat->get_weight();

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

                                $select_gradebook->addOption(get_lang('Default'), $my_cat->get_id());

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

        $visible = (self::TYPE_EDIT == $form_type && $link->is_visible()) ? '1' : '0';

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

            $link = $link_object;

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

            $select_gradebook = $this->addSelect(

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

        if (self::TYPE_ADD == $form_type) {

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

            $defaults['visible'] = $visibility_default;

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

            $link = LinkFactory:: create($link_type);

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

            $default_weight = 0;

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

                                $default_weight = $my_cat->get_weight();

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

                            $select_gradebook->addOption(get_lang('Select'), 0);

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

                            $default_weight = $my_cat->get_weight();

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

            if (self::TYPE_EDIT == $form_type) {

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

        parent::__construct($form_name, 'post', $action);

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

        } elseif (isset($link_type) && isset($category_object)) {

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

        if (self::TYPE_ADD == $form_type) {

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

            $visibility_default = 1;

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

                    if ($my_cat->getCourseId() == api_get_course_int_id()) {

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

        if (isset($link_object)) {

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

                                $select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());

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

                foreach ($category_object as $my_cat) {

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

                        if (empty($grade_model_id)) {

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

            $parent_cat = Category::load($link->get_category_id());

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

            if (self::TYPE_EDIT == $form_type && $link->has_results()) {

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

        if (self::TYPE_ADD == $form_type && $link->needs_results()) {

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

        if (1 == count($category_object)) {

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

                            if (0 == $my_cat->get_parent_id()) {

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

                                $select_gradebook->addOption(get_lang('Default'), $my_cat->get_id());

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

                        if ($link->get_category_id() == $my_cat->get_id()) {

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

            if (self::TYPE_EDIT == $form_type) {

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

        if (self::TYPE_EDIT == $form_type) {

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

        $link_object,

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

                        $grade_model_id = $my_cat->get_grade_model_id();

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

                        $grade_model_id = $my_cat->get_grade_model_id();

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

                            $default_weight = $my_cat->get_weight();

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

                $cat = Category::load($parent_cat[0]->get_parent_id());

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $link_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $default_weight is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_name is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $select_gradebook is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $link_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $select_gradebook is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $default_weight is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $grade_model_id is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $grade_model_id is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $link_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $link_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $select_gradebook is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $visibility_default is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $category_object is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $default_weight is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $parent_cat is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $visibility_default is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $visibility_default is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $parent_cat is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $parent_cat is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $form_type is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

The variable $select_gradebook is not named in camelCase.
Open

    public function __construct(
        $form_type,
        $category_object,
        $link_type,
        $link_object,

CamelCaseVariableName

Since: 0.2

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

Example

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

Source

There are no issues that match your filters.

Category
Status