EscolaLMS/Consultations

View on GitHub
src/Exceptions/ChangeTermException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Avoid unused parameters such as '$request'.
Open

    public function render($request): JsonResponse

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

Return type of render() is undeclared type \Illuminate\Http\JsonResponse
Open

    public function render($request): JsonResponse
Severity: Minor
Found in src/Exceptions/ChangeTermException.php by phan

Call to undeclared function \__()
Open

        $message = $message ?: __('Term is not changed');
Severity: Critical
Found in src/Exceptions/ChangeTermException.php by phan

Call to undeclared function \response()
Open

        return response()->json([
Severity: Critical
Found in src/Exceptions/ChangeTermException.php by phan

Expected 1 blank line at end of file; 3 found
Open

}

There are no issues that match your filters.

Category
Status