hnhdigital-os/laravel-model-filter

View on GitHub

Showing 194 of 194 total issues

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

                if (isset($override_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_allocations' which will lead to PHP notices.
Open

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

        $route_name = (!isset($route_name)) ? $current_model : $route_name;
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

        $other_model = (!isset($other_model)) ? camel_case($current_model) : $other_model;
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_color' which will lead to PHP notices.
Open

        $options['attached_button_color'] = (isset($attached_button_color)) ? $attached_button_color : 'danger';
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

            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

                $query = $this->getRelationQuery($model, $other_model, $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_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 '$unattached_tab' which will lead to PHP notices.
Open

        } elseif ($search_tab == $unattached_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 '$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 '$unattached_tab' which will lead to PHP notices.
Open

        $options['unattached_tab'] = (isset($unattached_tab)) ? $unattached_tab : 'available-'.str_plural($search_name, 2);
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_attached_method_source' which will lead to PHP notices.
Open

                    $method_source = $override_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

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

        $options['unattached_button_color'] = (isset($unattached_button_color)) ? $unattached_button_color : 'primary';
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 '$attached_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_filter_options' which will lead to PHP notices.
Open

        $model_filter_options[] = ['', ''];
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 '$attached_tab' which will lead to PHP notices.
Open

        $options['attached_tab'] = (isset($attached_tab)) ? $attached_tab : str_plural($search_name, 2);
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