chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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 getIid(): ?int

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

    #[ORM\ManyToOne(targetEntity: CQuizQuestionCategory::class, cascade: ['persist'])]

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

class CQuizRelQuestionCategory

Missing function doc comment
Open

    public function getCategory(): CQuizQuestionCategory

Missing function doc comment
Open

    public function getQuiz(): CQuiz

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

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

Missing function doc comment
Open

    public function setCategory(CQuizQuestionCategory $category): self

Missing function doc comment
Open

    public function getCountQuestions(): int

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: CQuiz::class, inversedBy: 'questionsCategories', cascade: ['persist'])]

Missing function doc comment
Open

    public function setQuiz(CQuiz $quiz): self

Missing function doc comment
Open

    public function setCountQuestions(int $countQuestions): self

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

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

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

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

There are no issues that match your filters.

Category
Status