chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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: 'hide_attempts_table', type: 'boolean', nullable: false, options: ['default' => 0])]

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getRandomAnswers(): bool

Missing function doc comment
Open

    public function setResultsDisabled(int $resultsDisabled): self

Missing function doc comment
Open

    public function getMaxAttempt(): int

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

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

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

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

Missing function doc comment
Open

    public function setRandom(int $random): self

Missing function doc comment
Open

    public function setAccessCondition(string $accessCondition): self

Missing function doc comment
Open

    public function getFeedbackType(): int

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

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

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

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

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

    #[ORM\Column(name: 'display_chart_degree_certainty', type: 'integer', options: ['default' => 0])]

Missing function doc comment
Open

    public function setSound(string $sound): self

Missing function doc comment
Open

    public function getSound(): ?string

Missing function doc comment
Open

    public function setActive(int $active): self

Missing function doc comment
Open

    public function setFeedbackType(int $feedbackType): self

Missing function doc comment
Open

    public function setSaveCorrectAnswers(int $saveCorrectAnswers): self

Missing function doc comment
Open

    public function setQuizCategory(CQuizCategory $quizCategory): self

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

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

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

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

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

    #[ORM\OneToMany(mappedBy: 'quiz', targetEntity: TrackEExercise::class)]

Missing function doc comment
Open

    public function getType(): int

Missing function doc comment
Open

    public function setRandomByCategory(int $randomByCategory): self

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

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

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

    #[ORM\Column(name: 'not_display_balance_percentage_categorie_question', type: 'integer', options: ['default' => 0])]

Missing function doc comment
Open

    public function setDisplayCategoryName(int $displayCategoryName): 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\Column(name: 'iid', type: 'integer')]

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 CQuiz extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

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

    #[Groups(['track_e_exercise:read'])]

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

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

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

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

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

    #[ORM\Column(name: 'prevent_backwards', type: 'integer', nullable: false, options: ['default' => 0])]

Missing function doc comment
Open

    public function setExpiredTime(int $expiredTime): self

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

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

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

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

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

    #[ORM\Column(name: 'hide_question_number', type: 'integer', nullable: false, options: ['default' => 0])]

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

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

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getQuizCategory(): ?CQuizCategory

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: 'text_when_finished_failure', type: 'text', nullable: true)]

Missing function doc comment
Open

    public function setEndTime(?DateTime $endTime): self

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

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

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

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

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

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

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

    #[ORM\Column(name: 'autolaunch', type: 'boolean', nullable: true, options: ['default' => 0])]

Missing function doc comment
Open

    public function setRandomAnswers(bool $randomAnswers): self

Missing function doc comment
Open

    public function getEndTime(): ?DateTime

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

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

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

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

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

    #[ORM\Column(name: 'show_previous_button', type: 'boolean', nullable: false, options: ['default' => 1])]

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

    #[ORM\Column(name: 'page_result_configuration', type: 'array')]

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

    #[ORM\Column(name: 'display_chart_degree_certainty_category', type: 'integer', options: ['default' => 0])]

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

    #[ORM\Column(name: 'gather_questions_categories', type: 'integer', options: ['default' => 0])]

Missing function doc comment
Open

    public function setReviewAnswers(int $reviewAnswers): self

Missing function doc comment
Open

    public function setHideQuestionTitle(bool $hideQuestionTitle): self

Missing function doc comment
Open

    public function isHideAttemptsTable(): bool

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

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

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

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

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

Missing function doc comment
Open

    public function setType(int $type): self

Missing function doc comment
Open

    public function setMaxAttempt(int $maxAttempt): self

Missing function doc comment
Open

    public function getStartTime(): ?DateTime

Missing function doc comment
Open

    public function getSaveCorrectAnswers(): ?int

Missing function doc comment
Open

    public function getPreventBackwards(): int

Missing function doc comment
Open

    public function isAutoLaunch(): bool

Missing function doc comment
Open

    public function setPageResultConfiguration(array $pageResultConfiguration): self

Missing function doc comment
Open

    public function getDisplayChartDegreeCertainty(): int

Missing function doc comment
Open

    public function setDisplayChartDegreeCertainty(int $displayChartDegreeCertainty): self

Missing function doc comment
Open

    public function getHideQuestionNumber(): ?int

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

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

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

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

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

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

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

    #[ORM\Column(name: 'send_email_chart_degree_certainty', type: 'integer', options: ['default' => 0])]

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function getActive(): int

Missing function doc comment
Open

    public function setPreventBackwards(int $preventBackwards): self

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

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

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

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

Missing function doc comment
Open

    public function getAccessCondition(): ?string

Missing function doc comment
Open

    public function setQuestionSelectionType(int $questionSelectionType): self

Missing function doc comment
Open

    public function isShowPreviousButton(): bool

Missing function doc comment
Open

    public function getPageResultConfiguration(): array

Missing function doc comment
Open

    public function setSendEmailChartDegreeCertainty(int $sendEmailChartDegreeCertainty): self

Missing function doc comment
Open

    public function getDisplayChartDegreeCertaintyCategory(): int

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: 'random', type: 'integer', nullable: false)]

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

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

Missing function doc comment
Open

    public function setPropagateNeg(int $propagateNeg): self

Missing function doc comment
Open

    public function isHideQuestionTitle(): bool

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: 'duration', type: 'integer', nullable: true)]

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getResultsDisabled(): int

Missing function doc comment
Open

    public function setStartTime(?DateTime $startTime): self

Missing function doc comment
Open

    public function getExpiredTime(): int

Missing function doc comment
Open

    public function setPassPercentage(int $passPercentage): self

Missing function doc comment
Open

    public function getSendEmailChartDegreeCertainty(): int

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function setDisplayChartDegreeCertaintyCategory(int $displayChartDegreeCertaintyCategory): self

Missing function doc comment
Open

    public function setHideQuestionNumber(int $hideQuestionNumber): self

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setGatherQuestionsCategories(int $gatherQuestionsCategories): self

Missing function doc comment
Open

    public function getQuestionSelectionType(): ?int

Missing function doc comment
Open

    public function setNotifications(string $notifications): self

Missing function doc comment
Open

    public function setHideAttemptsTable(bool $hideAttemptsTable): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function setShowPreviousButton(bool $showPreviousButton): self

Missing function doc comment
Open

    public function setNotDisplayBalancePercentageCategorieQuestion(int $notDisplayBalancePercentageCategorieQuestion): self

Missing function doc comment
Open

    public function setDuration(?int $duration): self

Missing function doc comment
Open

    public function getDuration(): ?int

Missing function doc comment
Open

    public function getGatherQuestionsCategories(): int

Missing function doc comment
Open

    public function getNotifications(): string

Missing function doc comment
Open

    public function setAutoLaunch(bool $autoLaunch): self

Missing function doc comment
Open

    public function getNotDisplayBalancePercentageCategorieQuestion(): int

Missing function doc comment
Open

    public function getAutoLaunch(): ?bool

There are no issues that match your filters.

Category
Status