chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CPeerAssessmentLog.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 getDescription(): ?string

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

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

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

class CPeerAssessmentLog

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

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

Missing function doc comment
Open

    public function getDate(): ?DateTime

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

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

Missing function doc comment
Open

    public function getPeerAssessment(): ?CPeerAssessment

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

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

Closing brace must be on a line by itself
Open

    public function __construct() {}

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

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

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

Missing function doc comment
Open

    public function setPeerAssessment(?CPeerAssessment $peerAssessment): self

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\ManyToOne(targetEntity: User::class)]

Missing function doc comment
Open

    public function __construct() {}

Missing function doc comment
Open

    public function setDate(?DateTime $date): self

Missing function doc comment
Open

    public function setDescription(?string $description): self

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

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

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

    #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]

Missing function doc comment
Open

    public function getId(): ?int

Closing brace must be on a line by itself
Open

    public function __construct() {}

Opening brace should be on a new line
Open

    public function __construct() {}

There are no issues that match your filters.

Category
Status