chamilo/chamilo-lms

View on GitHub
src/CoreBundle/State/MessageByGroupStateProvider.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$uriVariables'.
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable

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 '$uriVariables'.
Open

    public function supports(Operation $operation, array $uriVariables = [], array $context = []): bool

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 '$operation'.
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable

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 '$context'.
Open

    public function supports(Operation $operation, array $uriVariables = [], array $context = []): bool

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

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable

Missing function doc comment
Open

    public function __construct(MessageRepository $messageRepository)

Missing function doc comment
Open

    public function supports(Operation $operation, array $uriVariables = [], array $context = []): bool

There are no issues that match your filters.

Category
Status