chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Variable "sender_info" is not in valid camel caps format
Open

        $sender_info = api_get_user_info(

Closing brace must be on a line by itself
Open

    ) {}

Variable "sender_info" is not in valid camel caps format
Open

                $sender_info,

Space before opening parenthesis of function call prohibited
Open

            ->map(fn (MessageRelUser $messageRelUser): int => $messageRelUser->getReceiver()->getId())

Missing function doc comment
Open

    public function __construct(

Missing function doc comment
Open

    public function process($data, Operation $operation, array $uriVariables = [], array $context = [])

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing class doc comment
Open

final class MessageProcessor implements ProcessorInterface

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly EntityManagerInterface $entityManager,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly RequestStack $requestStack

Closing brace must be on a line by itself
Open

    ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ResourceNodeRepository $resourceNodeRepository,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly FlysystemStorage $storage,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ProcessorInterface $persistProcessor,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ProcessorInterface $removeProcessor,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly Security $security,

Space before opening parenthesis of function call prohibited
Open

            ->map(fn (MessageRelUser $messageRelUser): int => $messageRelUser->getReceiver()->getId())

The variable $sender_info is not named in camelCase.
Open

    private function saveNotificationForInboxMessage(Message $message): void
    {
        $sender_info = api_get_user_info(
            $message->getSender()->getId()
        );

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sender_info is not named in camelCase.
Open

    private function saveNotificationForInboxMessage(Message $message): void
    {
        $sender_info = api_get_user_info(
            $message->getSender()->getId()
        );

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status