chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

Missing function doc comment
Open

    public function setOriginalName(?string $originalName): self

Missing function doc comment
Open

    public function getWidth(): int

Missing function doc comment
Open

    public function getFileUrl(): string

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

class Asset implements Stringable

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

    #[ORM\Column(type: 'string', length: 255)]

Missing function doc comment
Open

    public function getId(): Uuid

Missing function doc comment
Open

    public function getMimeType(): ?string

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

    #[Groups(['resource_file:read', 'resource_node:read', 'document:read'])]

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

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

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

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

Missing function doc comment
Open

    public function setTitle(?string $title): self

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

    #[ORM\Column(type: 'integer')]

Missing function doc comment
Open

    public function getFolder(): string

Missing function doc comment
Open

    public function setSize(?int $size): self

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function setFile(File|UploadedFile|null $file = null): self

Missing function doc comment
Open

    public function hasFile(): bool

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(type: 'text', nullable: true)]

Missing function doc comment
Open

    public function getCrop(): ?string

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getOriginalName(): string

Missing function doc comment
Open

    public function setMimeType(?string $mimeType): self

Missing function doc comment
Open

    public function getFile(): File

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

#[ORM\Entity]

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

    #[ORM\Column(type: 'uuid')]

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function getCategory(): ?string

Missing function doc comment
Open

    public function getCompressed(): bool

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

    #[ORM\Id]

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

    #[ORM\Column(type: 'simple_array', nullable: true)]

Missing function doc comment
Open

    public function setDimensions(?array $dimensions): self

Missing function doc comment
Open

    public function getHeight(): int

Missing function doc comment
Open

    public function getMetadata(): ?array

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

    #[Assert\NotBlank]

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

    #[Assert\Choice([self::SCORM, self::WATERMARK, self::EXTRA_FIELD, self::COURSE_CATEGORY, self::SKILL], message: 'Choose a valid category.')]

Missing function doc comment
Open

    public function __toString(): string

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

    #[ORM\Column(type: 'boolean')]

Missing function doc comment
Open

    public function isVideo(): bool

Missing function doc comment
Open

    public function setCrop(string $crop): self

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

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

Missing function doc comment
Open

    public function isImage(): bool

Missing function doc comment
Open

    public function getDimensions(): ?array

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

    #[Assert\NotBlank]

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

    #[ORM\Column(type: 'array', nullable: true)]

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

    #[Gedmo\Timestampable(on: 'update')]

Missing function doc comment
Open

    public function getSize(): ?int

Missing function doc comment
Open

    public function setMetadata(array $metadata): self

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

    #[Groups(['resource_file:read', 'resource_node:read', 'document:read'])]

Missing function doc comment
Open

    public function getTitle(): ?string

Missing function doc comment
Open

    public function setCategory(string $category): self

Missing function doc comment
Open

    public function setCompressed(bool $compressed): self

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

    #[ORM\Column(type: 'string', length: 255)]

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

    #[Assert\NotNull]

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

    #[ORM\Column(type: 'datetime')]

There are no issues that match your filters.

Category
Status