chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Entity/CQuizAnswer.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class CQuizAnswer

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

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

Missing function doc comment
Open

    public function setComment(string $comment): self

Missing function doc comment
Open

    public function getPonderation(): float

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

    #[ORM\ManyToOne(targetEntity: CQuizQuestion::class, cascade: ['persist'], inversedBy: 'answers')]

Missing function doc comment
Open

    public function setCorrect(int $correct): self

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

    #[ORM\JoinColumn(name: 'question_id', referencedColumnName: 'iid', onDelete: 'CASCADE')]

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

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

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

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

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function setPonderation(float|string $weight): self

Missing function doc comment
Open

    public function getHotspotCoordinates(): ?string

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

    #[ORM\Column(name: 'correct', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function getQuestion(): CQuizQuestion

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

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

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

#[ORM\Entity]

Missing function doc comment
Open

    public function setDestination(?string $destination): 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\Id]

Missing function doc comment
Open

    public function getCorrect(): ?int

Missing function doc comment
Open

    public function setHotspotType(?string $hotspotType): self

Missing function doc comment
Open

    public function setQuestion(CQuizQuestion $question): self

Missing function doc comment
Open

    public function setAnswer(string $answer): self

Missing function doc comment
Open

    public function getAnswer(): string

Missing function doc comment
Open

    public function getHotspotType(): ?string

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

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

Missing function doc comment
Open

    public function getComment(): ?string

Missing function doc comment
Open

    public function setAnswerCode(string $answerCode): self

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

#[ORM\Index(columns: ['question_id'], name: 'idx_cqa_q')]

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function getDestination(): ?string

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

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

Missing function doc comment
Open

    public function getPosition(): int

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: 'ponderation', type: 'float', precision: 6, scale: 2, nullable: false, options: ['default' => 0])]

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

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

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

    #[ORM\Column(name: 'answer', type: 'text', nullable: false)]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setPosition(int $position): self

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

    #[ORM\Column(name: 'iid', type: 'integer', options: ['unsigned' => true])]

Missing function doc comment
Open

    public function setHotspotCoordinates(?string $hotspotCoordinates): self

There are no issues that match your filters.

Category
Status