chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Column(name: 'size', type: 'integer', nullable: false)]

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

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

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

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

Missing function doc comment
Open

    public function getFilename(): string

Missing function doc comment
Open

    public function setPath(string $path): self

Missing function doc comment
Open

    public function getSize(): int

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

    #[ORM\ManyToOne(targetEntity: Message::class, inversedBy: 'attachments')]

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

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

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\Id]

Missing function doc comment
Open

    public function setComment(string $comment): self

Missing function doc comment
Open

    public function setSize(int $size): self

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

    #[ORM\JoinColumn(name: 'message_id', referencedColumnName: 'id', nullable: false)]

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

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

Missing function doc comment
Open

    public function __construct()

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

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

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

#[ApiResource(

Missing function doc comment
Open

    public function setFilename(string $filename): self

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

    #[ORM\GeneratedValue(strategy: 'IDENTITY')]

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

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

Missing function doc comment
Open

    public function __toString(): string

Add a single space around assignment operators
Open

declare(strict_types=1);

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

class MessageAttachment extends AbstractResource implements ResourceInterface, Stringable

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

    #[ORM\Column(name: 'comment', type: 'text', nullable: true)]

Missing function doc comment
Open

    public function getResourceIdentifier(): int

Missing function doc comment
Open

    public function setMessage(?Message $message): static

Missing function doc comment
Open

    public function setResourceFileToAttach(ResourceFile $resourceFileToAttach): self

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

    public function setMessage(?Message $message): static

Missing function doc comment
Open

    public function getResourceFileToAttach(): ResourceFile

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function getMessage(): ?Message

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

        $this->size = 0;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getComment()

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSize(): int

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 12 spaces, found 8
Open

        $this->size = $size;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __toString(): string

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

        $this->filename = $filename;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $comment = null;

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

    }

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

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Message $message;

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

    {

Line indented incorrectly; expected 4 spaces, found 0
Open

class MessageAttachment extends AbstractResource implements ResourceInterface, Stringable

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

        return $this->getFilename();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setFilename(string $filename): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setComment(string $comment): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $filename;

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

    protected int $size;

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

        $this->comment = '';

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->path;

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

        return $this->filename;

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

    {

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

        return $this->comment;

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

    public function getFilename(): string

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

        return $this->size;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setPath(string $path): self

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

        $this->comment = $comment;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getPath()

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

    public function setSize(int $size): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getMessage(): ?Message

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceFileToAttach(): ResourceFile

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $path;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ResourceFile $resourceFileToAttach;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

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

    {

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

        return $this->message;

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

        $this->path = '';

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

        $this->path = $path;

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 12 spaces, found 8
Open

        return $this;

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 setMessage(?Message $message): static

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

        $this->message = $message;

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 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->setFilename($name);

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

        $this->resourceFileToAttach = $resourceFileToAttach;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setResourceFileToAttach(ResourceFile $resourceFileToAttach): self

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getId()

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setResourceName(string $name): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceName(): string

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 at least 12 spaces, found 8
Open

        return $this->getFilename();

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceIdentifier(): int

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->resourceFileToAttach;

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

        ;

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

        return $this->getId();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this

There are no issues that match your filters.

Category
Status