hnhdigital-os/laravel-model-filter

View on GitHub

Showing 194 of 194 total issues

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

        $options['attached_button_icon'] = (isset($attached_button_icon)) ? $attached_button_icon : 'times';
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        $options['attached_button_name'] = (isset($attached_button_name)) ? $attached_button_name : 'Remove '.str_plural($search_name, 1);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

            if (isset($attached_model_filter) && $attached_model_filter instanceof \Closure) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        $options['search_request'] = $this->getSearchAppliedFilters($current_model.'.'.$search_name.'.search', $options['model_id'].$options['search_tab'], $use_session);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                $query = $attached_model_filter($query);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                if (isset($attached_method_source)) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                if (isset($unattached_method_source)) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                    return $model->$unattached_method_source();
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

            $operator_options[$type] = $model->getFilterOperators($type);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        if ($search_tab == $attached_tab) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                    return $model->$attached_method_source();
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                $list = $this->getRelationQuery($model, $other_model, $method_source)->select($other_model->getTable().'.'.$other_model->getKeyName())->pluck($other_model->getKeyName())->all();
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        $options['unattached_button_icon'] = (isset($unattached_button_icon)) ? $unattached_button_icon : 'plus';
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        $options['unattached_button_name'] = (isset($unattached_button_name)) ? $unattached_button_name : 'Add '.str_plural($search_name, 1);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

            if (isset($attached_allocations)) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                    return $model->$unattached_method_source();
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

        $options['attached_button_name'] = (isset($attached_button_name)) ? $attached_button_name : 'Remove '.str_plural($search_name, 1);
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                    $method_source = $override_unattached_method_source;
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

            if (isset($unattached_model_filter) && $unattached_model_filter instanceof \Closure) {
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

                $query = $attached_allocations;
Severity: Minor
Found in src/Traits/ControllerTrait.php by phpmd

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

Severity
Category
Status
Source
Language