src/CoreBundle/Entity/MessageAttachment.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'size', type: 'integer', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'path', type: 'string', length: 255, nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['message:write'])]
- Exclude checks
Missing function doc comment Open
Open
public function getFilename(): string
- Exclude checks
Missing function doc comment Open
Open
public function setPath(string $path): self
- Exclude checks
Missing function doc comment Open
Open
public function getSize(): int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Message::class, inversedBy: 'attachments')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'message_attachment')]
- 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\Id]
- Exclude checks
Missing function doc comment Open
Open
public function setComment(string $comment): self
- Exclude checks
Missing function doc comment Open
Open
public function setSize(int $size): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'message_id', referencedColumnName: 'id', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'filename', type: 'string', length: 255, nullable: false)]
- 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
#[ORM\Entity(repositoryClass: MessageAttachmentRepository::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(
- Exclude checks
Missing function doc comment Open
Open
public function setFilename(string $filename): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
- 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 __toString(): string
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class MessageAttachment extends AbstractResource implements ResourceInterface, Stringable
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'comment', type: 'text', nullable: true)]
- Exclude checks
Missing function doc comment Open
Open
public function getResourceIdentifier(): int
- Exclude checks
Missing function doc comment Open
Open
public function setMessage(?Message $message): static
- Exclude checks
Missing function doc comment Open
Open
public function setResourceFileToAttach(ResourceFile $resourceFileToAttach): self
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function setMessage(?Message $message): static
- Exclude checks
Missing function doc comment Open
Open
public function getResourceFileToAttach(): ResourceFile
- Exclude checks
Missing function doc comment Open
Open
public function setResourceName(string $name): self
- Exclude checks
Missing function doc comment Open
Open
public function getResourceName(): string
- Exclude checks
Missing function doc comment Open
Open
public function getMessage(): ?Message
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->size = 0;
- 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 getComment()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSize(): int
- 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 12 spaces, found 8 Open
Open
$this->size = $size;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __toString(): string
- 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
$this->filename = $filename;
- 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 ?string $comment = null;
- 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
}
- 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 Message $message;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class MessageAttachment extends AbstractResource implements ResourceInterface, Stringable
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getFilename();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setFilename(string $filename): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setComment(string $comment): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $filename;
- 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
protected int $size;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->comment = '';
- 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->path;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->filename;
- 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->comment;
- 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
public function getFilename(): string
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->size;
- 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 setPath(string $path): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->comment = $comment;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $id = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getPath()
- 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
public function setSize(int $size): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getMessage(): ?Message
- 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 getResourceFileToAttach(): ResourceFile
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $path;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ResourceFile $resourceFileToAttach;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- 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->message;
- 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
$this->path = '';
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->path = $path;
- 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 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 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setMessage(?Message $message): static
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->message = $message;
- 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 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->setFilename($name);
- 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
$this->resourceFileToAttach = $resourceFileToAttach;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setResourceFileToAttach(ResourceFile $resourceFileToAttach): self
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 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 getId()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setResourceName(string $name): self
- 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 getResourceName(): string
- 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 at least 12 spaces, found 8 Open
Open
return $this->getFilename();
- 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 getResourceIdentifier(): int
- 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->resourceFileToAttach;
- 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
return $this->getId();
- 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
- Exclude checks