EscolaLMS/Consultations

View on GitHub
src/Rules/UserTermExist.php

Summary

Maintainability
A
0 mins
Test Coverage
C
72%

Avoid unused parameters such as '$attribute'.
Open

    public function passes($attribute, $value)
Severity: Minor
Found in src/Rules/UserTermExist.php by phpmd

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

syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
Open

    private ?int $consultationUserId;
Severity: Critical
Found in src/Rules/UserTermExist.php by phan

There are no issues that match your filters.

Category
Status