chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Repository/MessageRepository.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing function doc comment
Open

    public function findSentInvitationsByUserAndStatus(User $userSender, User $userReceiver, array $statuses): array

Declare public methods first,then protected ones and finally private ones
Open

    public function usersHaveSharedMessages(?User $currentUser, ?User $targetUser): bool

Declare public methods first,then protected ones and finally private ones
Open

    public function findByGroupId(int $groupId)

Missing function doc comment
Open

    public function findReceivedInvitationsByUser(User $user): array

Missing function doc comment
Open

    public function update(Message $message, bool $andFlush = true): void

Missing function doc comment
Open

    public function getMessagesByGroupAndMessage(int $groupId, int $messageId): array

Missing function doc comment
Open

    public function delete(Message $message): void

Missing function doc comment
Open

    public function getMessagesByGroup(int $groupId, bool $mainMessagesOnly = false): array

Missing function doc comment
Open

    public function invitationDenied(User $sender, User $receiver): bool

Missing function doc comment
Open

    public function usersHaveSharedMessages(?User $currentUser, ?User $targetUser): bool

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing class doc comment
Open

class MessageRepository extends ServiceEntityRepository

Missing function doc comment
Open

    public function __construct(ManagerRegistry $registry)

Missing function doc comment
Open

    public function findByGroupId(int $groupId)

Missing function doc comment
Open

    public function invitationAccepted(User $sender, User $receiver): bool

Missing function doc comment
Open

    public function existingInvitations(User $userSender, User $userReceiver): bool

Missing function doc comment
Open

    public function deleteTopicAndChildren(int $groupId, int $topicId): void

Missing function doc comment
Open

    public function findSentInvitationsByUser(User $user): array

Missing function doc comment
Open

    public function sendInvitationToFriend(User $userSender, User $userReceiver, string $messageTitle, string $messageContent): bool

There are no issues that match your filters.

Category
Status