chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Id]

Missing function doc comment
Open

    public function hasDescription(): ?bool

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

    #[ORM\GeneratedValue]

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

    public function setDisplay(array $display): static

Missing function doc comment
Open

    public function setFileUrl(?string $fileUrl): static

Missing function doc comment
Open

    public function getContent(): ?string

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

    #[ORM\Column]

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

    #[ORM\Column(type: Types::TEXT, nullable: true)]

Missing function doc comment
Open

    public function setHasDescription(bool $hasDescription): static

Missing function doc comment
Open

    public function getFileUrl(): ?string

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

    public function setStatement(?XApiStatement $statement): static

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

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

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

class XApiAttachment

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

    #[ORM\Column]

Missing function doc comment
Open

    public function setDisplay(array $display): static

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

    #[ORM\Column(length: 255)]

Missing function doc comment
Open

    public function getLength(): ?int

Missing function doc comment
Open

    public function setLength(int $length): static

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

    public function setSha2(string $sha2): static

Missing function doc comment
Open

    public function setContent(?string $content): static

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

    #[ORM\Column(nullable: true)]

Missing function doc comment
Open

    public function setStatement(?XApiStatement $statement): static

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

    #[ORM\Column]

Member variable "sha2" contains numbers but this is discouraged
Open

    private ?string $sha2 = null;

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

    public function setLength(int $length): static

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

    public function setContentType(int $contentType): static

Missing function doc comment
Open

    public function getDescription(): ?array

Missing function doc comment
Open

    public function getDisplay(): array

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

    public function setHasDescription(bool $hasDescription): static

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

    #[ORM\Column]

Missing function doc comment
Open

    public function setUsageType(string $usageType): static

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

    public function setFileUrl(?string $fileUrl): static

Missing function doc comment
Open

    public function getIdentifier(): ?int

Missing function doc comment
Open

    public function setContentType(int $contentType): static

Missing function doc comment
Open

    public function getSha2(): ?string

Missing function doc comment
Open

    public function setSha2(string $sha2): static

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

    public function setContent(?string $content): static

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

    #[ORM\Column]

Missing function doc comment
Open

    public function getStatement(): ?XApiStatement

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

    public function setUsageType(string $usageType): static

Missing function doc comment
Open

    public function getContentType(): ?int

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

    public function setDescription(?array $description): static

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

    #[ORM\Column(length: 255, nullable: true)]

Missing function doc comment
Open

    public function setDescription(?array $description): static

Add a single space around assignment operators
Open

declare(strict_types=1);

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

    #[ORM\Column(length: 255)]

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

    #[ORM\ManyToOne(inversedBy: 'attachments')]

Missing function doc comment
Open

    public function getUsageType(): ?string

There are no issues that match your filters.

Category
Status