chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function setPosition(int $position): self

Missing function doc comment
Open

    public function setLevel(int $level): self

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

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

Missing function doc comment
Open

    public function setType(int $type): self

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

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

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

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

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

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

Missing function doc comment
Open

    public function setQuestionCode(string $questionCode): 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\GeneratedValue]

Missing function doc comment
Open

    public function addCategory(CQuizQuestionCategory $category): void

Missing function doc comment
Open

    public function setQuestion(string $question): self

Missing function doc comment
Open

    public function setDescription(?string $description): self

Missing function doc comment
Open

    public function setFeedback(?string $feedback): self

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

    #[ORM\JoinTable(name: 'c_quiz_question_rel_category')]

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

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

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

    #[ORM\OneToMany(targetEntity: CQuizAnswer::class, mappedBy: 'question', cascade: ['persist'])]

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

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

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\Index(name: 'position', columns: ['position'])]

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

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

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getFeedback(): ?string

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

    #[ORM\ManyToMany(targetEntity: CQuizQuestionCategory::class, inversedBy: 'questions')]

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

    #[ORM\OneToMany(targetEntity: CQuizQuestionOption::class, mappedBy: 'question', cascade: ['persist'])]

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(name: 'question_code', type: 'string', length: 10, nullable: true)]

Missing function doc comment
Open

    public function __toString(): string

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

    #[ORM\InverseJoinColumn(name: 'category_id', referencedColumnName: 'iid')]

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

    #[ORM\OneToMany(targetEntity: CQuizRelQuestion::class, mappedBy: 'question', cascade: ['persist'])]

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

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

Missing function doc comment
Open

    public function getQuestion(): string

Missing function doc comment
Open

    public function setExtra(?string $extra): self

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

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

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

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

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

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

Missing function doc comment
Open

    public function setPonderation(float $ponderation): self

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

    #[ORM\Id]

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

class CQuizQuestion extends AbstractResource implements ResourceInterface, Stringable

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

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

Missing function doc comment
Open

    public function updateCategory(CQuizQuestionCategory $category): void

Missing function doc comment
Open

    public function removeCategory(CQuizQuestionCategory $category): void

Missing function doc comment
Open

    public function setPicture(string $picture): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function getDuration(): ?int

Missing function doc comment
Open

    public function getMandatory(): int

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function setDuration(?int $duration): self

There are no issues that match your filters.

Category
Status