chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Id]

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

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

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

Missing function doc comment
Open

    public function setType(string $type): self

Missing function doc comment
Open

    public function setSurveyQuestionComment(string $surveyQuestionComment): self

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

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

Missing function doc comment
Open

    public function setSharedQuestionId(int $sharedQuestionId): self

Missing function doc comment
Open

    public function getSurvey(): CSurvey

Missing function doc comment
Open

    public function setSurvey(CSurvey $survey): self

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

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

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

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

Member variable "surveyGroupSec1" contains numbers but this is discouraged
Open

    protected int $surveyGroupSec1;

Missing function doc comment
Open

    public function setSort(int $sort): self

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

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

Missing function doc comment
Open

    public function setParent(self $parent): self

Missing function doc comment
Open

    public function setOptions(Collection $options): self

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

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

Missing function doc comment
Open

    public function setDisplay(string $display): self

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

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

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

class CSurveyQuestion

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

    #[ORM\Column(name: 'type', type: 'string', length: 250, nullable: false)]

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

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

Scope keyword "static" must be followed by a single space
Open

    public function setSurveyGroupPri(int $surveyGroupPri): static

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function setSurveyQuestion(string $surveyQuestion): self

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

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

Member variable "surveyGroupSec2" contains numbers but this is discouraged
Open

    protected int $surveyGroupSec2;

Scope keyword "static" must be followed by a single space
Open

    public function setSurveyGroupSec1(int $surveyGroupSec1): static

Missing function doc comment
Open

    public function getParent(): ?self

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

    #[ORM\OneToMany(mappedBy: 'parent', targetEntity: self::class)]

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

    #[ORM\ManyToOne(targetEntity: CSurveyQuestionOption::class, cascade: ['remove'])]

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

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

Missing function doc comment
Open

    public function getSurveyQuestion(): string

Missing function doc comment
Open

    public function setParentOption(CSurveyQuestionOption $parentOption): self

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\ManyToOne(targetEntity: self::class, inversedBy: 'children')]

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getParentOption(): ?CSurveyQuestionOption

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

    #[ORM\ManyToOne(targetEntity: CSurvey::class, inversedBy: 'questions')]

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

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

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function setMaxValue(int $maxValue): self

Scope keyword "static" must be followed by a single space
Open

    public function setSurveyGroupSec2(int $surveyGroupSec2): static

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

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

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function isMandatory(): bool

Missing function doc comment
Open

    public function setIsMandatory(bool $isMandatory): self

Missing function doc comment
Open

    public function setChildren(Collection $children): self

There are no issues that match your filters.

Category
Status