-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message: Allow attachments #5544
Conversation
…dpoint - refs BT#21648
@@ -157,8 +157,14 @@ class Message | |||
/** | |||
* @var Collection<int, MessageAttachment> | |||
*/ | |||
#[Groups(['message:read'])] | |||
#[ORM\OneToMany(mappedBy: 'message', targetEntity: MessageAttachment::class, cascade: ['remove', 'persist'])] | |||
#[Assert\Valid] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
#[ORM\OneToMany(mappedBy: 'message', targetEntity: MessageAttachment::class, cascade: ['remove', 'persist'])] | ||
#[Assert\Valid] | ||
#[Groups(['message:read', 'message:write'])] | ||
#[ORM\OneToMany( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
@@ -374,10 +380,27 @@ | |||
return $this->attachments; | |||
} | |||
|
|||
public function addAttachment(MessageAttachment $attachment): self | |||
public function addAttachment(MessageAttachment $attachment): static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line indented incorrectly; expected 8 spaces, found 4
@@ -374,10 +380,27 @@ | |||
return $this->attachments; | |||
} | |||
|
|||
public function addAttachment(MessageAttachment $attachment): self | |||
public function addAttachment(MessageAttachment $attachment): static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing function doc comment
@@ -374,10 +380,27 @@ | |||
return $this->attachments; | |||
} | |||
|
|||
public function addAttachment(MessageAttachment $attachment): self | |||
public function addAttachment(MessageAttachment $attachment): static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scope keyword "static" must be followed by a single space
Code Climate has analyzed commit df2d7e4 and detected 41 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Refs BT#21648