chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/Message.php

Summary

Maintainability
A
0 mins
Test Coverage

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Entity(repositoryClass: MessageRepository::class)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'msg_type', type: 'smallint', nullable: false)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Gedmo\Timestampable(on: 'update')]

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_TO === $messageRelUser->getReceiverType()

You must use "/**" style comments for a function comment
Open

    public function getReceiversCc(): array

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Index(columns: ['user_sender_id'], name: 'idx_message_user_sender')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiResource(

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\OneToMany(mappedBy: 'message', targetEntity: MessageRelUser::class, cascade: ['persist', 'remove'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiFilter(ExistsFilter::class, properties: ['receivers.deletedAt'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Missing function doc comment
Open

    public function __construct()

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\EntityListeners([MessageListener::class])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiFilter(filterClass: OrderFilter::class, properties: ['title', 'sendDate'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Id]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'sentMessages')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiFilter(

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'group_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

You must use "/**" style comments for a function comment
Open

    public function getReceiversTo(): array

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Index(columns: ['msg_type'], name: 'idx_message_type')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'status', type: 'smallint', nullable: false)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Table(name: 'message')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'id', type: 'integer')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\GeneratedValue]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\Valid]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\OneToMany(

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'content', type: 'text', nullable: false)]

Missing function doc comment
Open

    public function setReceiversFromArray(array $receivers): self

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Index(columns: ['group_id'], name: 'idx_message_group')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'send_date', type: 'datetime', nullable: false)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\OneToMany(mappedBy: 'parent', targetEntity: self::class)]

Add a single space around assignment operators
Open

declare(strict_types=1);

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiFilter(SearchFilter::class, properties: [

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ApiFilter(PartialSearchOrFilter::class, properties: ['title', 'content'])]

You must use "/**" style comments for a class comment
Open

class Message

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: Usergroup::class)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'parent_id', referencedColumnName: 'id')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'update_date', type: 'datetime', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read', 'message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'votes', type: 'integer', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Assert\NotBlank]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'user_sender_id', referencedColumnName: 'id', onDelete: 'SET NULL')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:write'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Missing function doc comment
Open

    public function getContent(): string

Missing function doc comment
Open

    public function getUpdateDate(): ?DateTime

Missing function doc comment
Open

    public function getSendDate(): DateTime

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getSender(): ?User

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function getMsgType(): int

Missing function doc comment
Open

    public function setMsgType(int $msgType): self

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Groups(['message:read'])]

Missing function doc comment
Open

    public function hasUserReceiver(User $receiver): bool

Missing function doc comment
Open

    public function removeReceiver(MessageRelUser $messageRelUser): self

Missing function doc comment
Open

    public function setVotes(int $votes): self

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_CC === $messageRelUser->getReceiverType()

Missing function doc comment
Open

    public function setSender(?User $sender): self

Missing function doc comment
Open

    public function addReceiver(MessageRelUser $messageRelUser): self

Missing function doc comment
Open

    public function setSendDate(DateTime $sendDate): self

Missing function doc comment
Open

    public function addReceiverTo(User $receiver): self

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function setContent(string $content): self

Missing function doc comment
Open

    public function getVotes(): int

Missing function doc comment
Open

    public function getParent(): ?self

Missing function doc comment
Open

    public function setParent(?self $parent): self

Missing function doc comment
Open

    public function addAttachment(MessageAttachment $attachment): static

Missing function doc comment
Open

    public function removeAttachment(MessageAttachment $attachment): static

Scope keyword "static" must be followed by a single space
Open

    public function removeAttachment(MessageAttachment $attachment): static

Missing function doc comment
Open

    public function addChild(self $child): self

Missing function doc comment
Open

    public function getGroup(): ?Usergroup

Missing function doc comment
Open

    public function addReceiverCc(User $receiver): self

Missing function doc comment
Open

    public function setUpdateDate(DateTime $updateDate): self

Missing function doc comment
Open

    public function setStatus(int $status): self

Missing function doc comment
Open

    public function getStatus(): int

Missing function doc comment
Open

    public function setGroup(?Usergroup $group): self

You must use "/**" style comments for a function comment
Open

    public function getReceiversSender(): array

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_SENDER === $messageRelUser->getReceiverType()

You must use "/**" style comments for a function comment
Open

    public function getFirstReceiver(): ?MessageRelUser

Scope keyword "static" must be followed by a single space
Open

    public function addAttachment(MessageAttachment $attachment): static

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?Message $parent = null;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->receivers = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 4 spaces, found 0
Open

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?User $sender = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $attachments;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->attachments = new ArrayCollection();

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->status = 0;

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_TO === $messageRelUser->getReceiverType()

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_STATUS_INVITATION_PENDING = 5;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $msgType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getReceiversTo(): array

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    )]

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        ;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getReceiversCc(): array

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sendDate = new DateTime('now');

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->content = '';

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_STATUS_DELETED = 3;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $title;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_TYPE_INBOX = 1;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $content;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $votes;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->receivers;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setReceiversFromArray(array $receivers): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->receivers = new ArrayCollection($receivers);

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

Line indented incorrectly; expected at least 4 spaces, found 0
Open

])]

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_TYPE_GROUP = 5;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_TYPE_INVITATION = 6;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $receivers;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_STATUS_INVITATION_DENIED = 7;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->children = new ArrayCollection();

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->votes = 0;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_TYPE_CONVERSATION = 7;

Line indented incorrectly; expected 4 spaces, found 0
Open

class Message

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->receivers

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_STATUS_DRAFT = 4;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?DateTime $updateDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected DateTime $sendDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?Usergroup $group = null;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const MESSAGE_STATUS_INVITATION_ACCEPTED = 6;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->msgType = self::MESSAGE_TYPE_INBOX;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $children;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->updateDate = $this->sendDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getReceivers(): Collection

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        ;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $criteria = Criteria::create()

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                )

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->addReceiver($messageRelUser);

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $messageRelUser = (new MessageRelUser())

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_CC === $messageRelUser->getReceiverType()

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        ;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSendDate(DateTime $sendDate): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return false;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $this->receivers->add($messageRelUser);

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $messageRelUser->setMessage($this);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addReceiverCc(User $receiver): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->receivers->removeElement($messageRelUser);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getFirstReceiver(): ?MessageRelUser

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        ;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->addReceiver($messageRelUser);

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getMsgType(): int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->receivers

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function hasUserReceiver(User $receiver): bool

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->updateDate;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->votes = $votes;

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getTitle(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getContent(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->id;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->votes;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->receivers

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Space before opening parenthesis of function call prohibited
Open

                fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_SENDER === $messageRelUser->getReceiverType()

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUpdateDate(): ?DateTime

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $messageRelUser = (new MessageRelUser())

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addReceiver(MessageRelUser $messageRelUser): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSender(?User $sender): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getId(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setVotes(int $votes): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->receivers->count() > 0) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->receivers->contains($messageRelUser)) {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sender = $sender;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->sendDate;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUpdateDate(DateTime $updateDate): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        ;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            return $this->receivers->first();

Line indented incorrectly; expected at least 20 spaces, found 12
Open

            return $this->receivers->matching($criteria)->count() > 0;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->sender;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setMsgType(int $msgType): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->msgType = $msgType;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->title = $title;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAttachments(): Collection

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                )

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addReceiverTo(User $receiver): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getVotes(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return null;

Line indented incorrectly; expected at least 20 spaces, found 12
Open

            ;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sendDate = $sendDate;

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSender(): ?User

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->updateDate = $updateDate;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSendDate(): DateTime

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->content;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $this->attachments->add($attachment);

Line indented incorrectly; expected 16 spaces, found 12
Open

            }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $child->setParent($this);

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getGroup(): ?Usergroup

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->attachments->contains($attachment)) {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $attachment->setMessage(null);

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->children[] = $child;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->group = $group;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getParent(): ?self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->parent = $parent;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->attachments->removeElement($attachment)) {

Line indented incorrectly; expected 16 spaces, found 12
Open

            if ($attachment->getMessage() === $this) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getChildren(): Collection

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->children;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addChild(self $child): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->status = $status;

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->receivers->count()) {

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                ->andWhere(

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function removeReceiver(MessageRelUser $messageRelUser): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->title;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setContent(string $content): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->status;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setStatus(int $status): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->attachments;

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $attachment

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            ;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getStatus(): int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getReceiversSender(): array

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->msgType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTitle(string $title): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->content = $content;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setParent(?self $parent): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setGroup(?Usergroup $group): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function removeAttachment(MessageAttachment $attachment): static

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->group;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->parent;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addAttachment(MessageAttachment $attachment): static

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

There are no issues that match your filters.

Category
Status