src/Exceptions/ChangeTermException.php
Avoid unused parameters such as '$request'. Open
Open
public function render($request): JsonResponse
- Read upRead up
- Exclude checks
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
Call to undeclared function \__()
Open
Open
$message = $message ?: __('Term is not changed');
- Exclude checks
Return type of render()
is undeclared type \Illuminate\Http\JsonResponse
Open
Open
public function render($request): JsonResponse
- Exclude checks
Call to undeclared function \response()
Open
Open
return response()->json([
- Exclude checks
Expected 1 blank line at end of file; 3 found Open
Open
}
- Exclude checks