MontealegreLuis/php-testing-tools

View on GitHub
ewallet/src/Adapters/JmsSerializer/Application/DomainEvents/JsonSerializer.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$type'.
Open

                    fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')

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

                    fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')

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

                    fn ($visitor, Money $money, array $type): string => $money->getAmount()

Space before opening parenthesis of function call prohibited
Open

                    fn ($visitor, MemberId $id, array $type): string => (string) $id

Space before opening parenthesis of function call prohibited
Open

                    fn ($visitor, CarbonImmutable $dateTime, array $type): string => $dateTime->format('Y-m-d H:i:s')

There are no issues that match your filters.

Category
Status