ewallet/src/Adapters/JmsSerializer/Application/DomainEvents/JsonSerializer.php
Avoid unused parameters such as '$type'. Open
Open
fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')
- 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
Avoid unused parameters such as '$visitor'. Open
Open
fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')
- 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
Space before opening parenthesis of function call prohibited Open
Open
fn ($visitor, Money $money, array $type): string => $money->getAmount()
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($visitor, MemberId $id, array $type): string => (string) $id
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')
- Exclude checks