chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

Missing function doc comment
Open

    public function setScoreCertificate(float $scoreCertificate): self

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\JoinColumn(name: 'user_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

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

    #[ORM\Column(name: 'score_certificate', type: 'float', precision: 10, scale: 0, nullable: false)]

Missing function doc comment
Open

    public function setUser(User $user): self

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

#[ORM\Index(name: 'idx_gradebook_certificate_user_id', columns: ['user_id'])]

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

    #[ORM\Column(name: 'downloaded_at', type: 'datetime', nullable: true)]

Missing function doc comment
Open

    public function getUser(): User

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

    #[ORM\GeneratedValue]

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

    #[ORM\Column(name: 'created_at', type: 'datetime', nullable: false)]

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\Table(name: 'gradebook_certificate')]

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

    #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'gradeBookCertificates')]

Missing function doc comment
Open

    public function setCreatedAt(DateTime $createdAt): self

Missing function doc comment
Open

    public function setDownloadedAt(DateTime $downloadedAt): self

Missing function doc comment
Open

    public function getCategory(): ?GradebookCategory

Missing function doc comment
Open

    public function setPathCertificate(string $pathCertificate): self

Missing function doc comment
Open

    public function getDownloadedAt(): DateTime

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

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

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

    #[ORM\ManyToOne(targetEntity: GradebookCategory::class)]

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

    #[ORM\JoinColumn(name: 'cat_id', referencedColumnName: 'id', onDelete: 'CASCADE')]

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

class GradebookCertificate

Missing function doc comment
Open

    public function setCategory(GradebookCategory $category): self

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

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

There are no issues that match your filters.

Category
Status