src/CoreBundle/Entity/Message.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity(repositoryClass: MessageRepository::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'msg_type', type: 'smallint', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Gedmo\Timestampable(on: 'update')]
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_TO === $messageRelUser->getReceiverType()
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getReceiversCc(): array
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['user_sender_id'], name: 'idx_message_user_sender')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(mappedBy: 'message', targetEntity: MessageRelUser::class, cascade: ['persist', 'remove'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(ExistsFilter::class, properties: ['receivers.deletedAt'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\EntityListeners([MessageListener::class])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(filterClass: OrderFilter::class, properties: ['title', 'sendDate'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Id]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'sentMessages')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'group_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getReceiversTo(): array
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['msg_type'], name: 'idx_message_type')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'status', type: 'smallint', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'message')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'id', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\Valid]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'content', type: 'text', nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function setReceiversFromArray(array $receivers): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['group_id'], name: 'idx_message_group')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'send_date', type: 'datetime', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(mappedBy: 'parent', targetEntity: self::class)]
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(SearchFilter::class, properties: [
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(PartialSearchOrFilter::class, properties: ['title', 'content'])]
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class Message
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Usergroup::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'parent_id', referencedColumnName: 'id')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'update_date', type: 'datetime', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read', 'message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'votes', type: 'integer', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'user_sender_id', referencedColumnName: 'id', onDelete: 'SET NULL')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Missing function doc comment Open
Open
public function getContent(): string
- Exclude checks
Missing function doc comment Open
Open
public function getUpdateDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function getSendDate(): DateTime
- Exclude checks
Missing function doc comment Open
Open
public function getTitle(): string
- Exclude checks
Missing function doc comment Open
Open
public function getSender(): ?User
- Exclude checks
Missing function doc comment Open
Open
public function getId(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function getMsgType(): int
- Exclude checks
Missing function doc comment Open
Open
public function setMsgType(int $msgType): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:read'])]
- Exclude checks
Missing function doc comment Open
Open
public function hasUserReceiver(User $receiver): bool
- Exclude checks
Missing function doc comment Open
Open
public function removeReceiver(MessageRelUser $messageRelUser): self
- Exclude checks
Missing function doc comment Open
Open
public function setVotes(int $votes): self
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_CC === $messageRelUser->getReceiverType()
- Exclude checks
Missing function doc comment Open
Open
public function setSender(?User $sender): self
- Exclude checks
Missing function doc comment Open
Open
public function addReceiver(MessageRelUser $messageRelUser): self
- Exclude checks
Missing function doc comment Open
Open
public function setSendDate(DateTime $sendDate): self
- Exclude checks
Missing function doc comment Open
Open
public function addReceiverTo(User $receiver): self
- Exclude checks
Missing function doc comment Open
Open
public function setTitle(string $title): self
- Exclude checks
Missing function doc comment Open
Open
public function setContent(string $content): self
- Exclude checks
Missing function doc comment Open
Open
public function getVotes(): int
- Exclude checks
Missing function doc comment Open
Open
public function getParent(): ?self
- Exclude checks
Missing function doc comment Open
Open
public function setParent(?self $parent): self
- Exclude checks
Missing function doc comment Open
Open
public function addAttachment(MessageAttachment $attachment): static
- Exclude checks
Missing function doc comment Open
Open
public function removeAttachment(MessageAttachment $attachment): static
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function removeAttachment(MessageAttachment $attachment): static
- Exclude checks
Missing function doc comment Open
Open
public function addChild(self $child): self
- Exclude checks
Missing function doc comment Open
Open
public function getGroup(): ?Usergroup
- Exclude checks
Missing function doc comment Open
Open
public function addReceiverCc(User $receiver): self
- Exclude checks
Missing function doc comment Open
Open
public function setUpdateDate(DateTime $updateDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setStatus(int $status): self
- Exclude checks
Missing function doc comment Open
Open
public function getStatus(): int
- Exclude checks
Missing function doc comment Open
Open
public function setGroup(?Usergroup $group): self
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getReceiversSender(): array
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_SENDER === $messageRelUser->getReceiverType()
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getFirstReceiver(): ?MessageRelUser
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function addAttachment(MessageAttachment $attachment): static
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Message $parent = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->receivers = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?User $sender = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $attachments;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->attachments = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = 0;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_TO === $messageRelUser->getReceiverType()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_STATUS_INVITATION_PENDING = 5;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $msgType;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getReceiversTo(): array
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $id = null;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getReceiversCc(): array
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendDate = new DateTime('now');
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->content = '';
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_STATUS_DELETED = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $title;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_TYPE_INBOX = 1;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $content;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $votes;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->receivers;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setReceiversFromArray(array $receivers): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->receivers = new ArrayCollection($receivers);
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_TYPE_GROUP = 5;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_TYPE_INVITATION = 6;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $receivers;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_STATUS_INVITATION_DENIED = 7;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->children = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->votes = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_TYPE_CONVERSATION = 7;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class Message
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->receivers
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_STATUS_DRAFT = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $updateDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $status;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected DateTime $sendDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Usergroup $group = null;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const MESSAGE_STATUS_INVITATION_ACCEPTED = 6;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->msgType = self::MESSAGE_TYPE_INBOX;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $children;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->updateDate = $this->sendDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getReceivers(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addReceiver($messageRelUser);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$messageRelUser = (new MessageRelUser())
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_CC === $messageRelUser->getReceiverType()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSendDate(DateTime $sendDate): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->receivers->add($messageRelUser);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$messageRelUser->setMessage($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addReceiverCc(User $receiver): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->receivers->removeElement($messageRelUser);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getFirstReceiver(): ?MessageRelUser
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addReceiver($messageRelUser);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getMsgType(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->receivers
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUserReceiver(User $receiver): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->updateDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->votes = $votes;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getTitle(): string
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getContent(): string
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->id;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->votes;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->receivers
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn (MessageRelUser $messageRelUser) => MessageRelUser::TYPE_SENDER === $messageRelUser->getReceiverType()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUpdateDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$messageRelUser = (new MessageRelUser())
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addReceiver(MessageRelUser $messageRelUser): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSender(?User $sender): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getId(): ?int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setVotes(int $votes): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($this->receivers->count() > 0) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->receivers->contains($messageRelUser)) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sender = $sender;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sendDate;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUpdateDate(DateTime $updateDate): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $this->receivers->first();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
return $this->receivers->matching($criteria)->count() > 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sender;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setMsgType(int $msgType): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->msgType = $msgType;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->title = $title;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAttachments(): Collection
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addReceiverTo(User $receiver): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getVotes(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return null;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendDate = $sendDate;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSender(): ?User
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->updateDate = $updateDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSendDate(): DateTime
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->content;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->attachments->add($attachment);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$child->setParent($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getGroup(): ?Usergroup
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->attachments->contains($attachment)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
$attachment->setMessage(null);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->children[] = $child;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->group = $group;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getParent(): ?self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->parent = $parent;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($this->attachments->removeElement($attachment)) {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($attachment->getMessage() === $this) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getChildren(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->children;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addChild(self $child): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = $status;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($this->receivers->count()) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
->andWhere(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeReceiver(MessageRelUser $messageRelUser): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->title;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setContent(string $content): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->status;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setStatus(int $status): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->attachments;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$attachment
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getStatus(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getReceiversSender(): array
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->msgType;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setTitle(string $title): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->content = $content;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setParent(?self $parent): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setGroup(?Usergroup $group): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeAttachment(MessageAttachment $attachment): static
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->group;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->parent;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addAttachment(MessageAttachment $attachment): static
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks