rinvex/laravel-support

View on GitHub
src/Validators/UniqueWithValidator.php

Summary

Maintainability
A
35 mins
Test Coverage

Method replaceUniqueWith has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function replaceUniqueWith($message, $attribute, $rule, $parameters, $validator)
Severity: Minor
Found in src/Validators/UniqueWithValidator.php - About 35 mins to fix

Avoid unused parameters such as '$rule'.
Open

    public function replaceUniqueWith($message, $attribute, $rule, $parameters, $validator)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

There are no issues that match your filters.

Category
Status