Skip to content
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

Merged
merged 13 commits into from
May 30, 2024
Merged

Message: Allow attachments #5544

merged 13 commits into from
May 30, 2024

Conversation

AngelFQC
Copy link
Member

Refs BT#21648

@chamilo chamilo deleted a comment from codeclimate bot May 27, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 27, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 27, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 27, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 27, 2024
@AngelFQC AngelFQC marked this pull request as ready for review May 29, 2024 00:46
@chamilo chamilo deleted a comment from codeclimate bot May 29, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 29, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 29, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 29, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 29, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 30, 2024
@chamilo chamilo deleted a comment from codeclimate bot May 30, 2024
@@ -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]
Copy link

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(
Copy link

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
Copy link

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
Copy link

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
Copy link

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

Copy link

codeclimate bot commented May 30, 2024

Code Climate has analyzed commit df2d7e4 and detected 41 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 41

View more on Code Climate.

@NicoDucou NicoDucou merged commit 72dfada into chamilo:master May 30, 2024
4 of 7 checks passed
@AngelFQC AngelFQC deleted the BT21648 branch May 30, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants