chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

    #[Gedmo\TreeParent]

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

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

Missing function doc comment
Open

    public function getLang(): ?string

Missing function doc comment
Open

    public function setAvailFrom(?DateTime $availFrom = null): self

Missing function doc comment
Open

    public function getFormFields(): string

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: 'mail_subject', type: 'string', length: 255, nullable: false)]

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

    #[Gedmo\TreeLevel]

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

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

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

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

Missing function doc comment
Open

    public function getIsShared(): ?string

Missing function doc comment
Open

    public function getSurveyType(): int

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

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

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

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

Missing function doc comment
Open

    public function getSubtitle(): ?string

Missing function doc comment
Open

    public function getAvailTill(): ?DateTime

Missing function doc comment
Open

    public function getCreationDate(): DateTime

Missing function doc comment
Open

    public function getAnswered(): int

Missing function doc comment
Open

    public function setReminderMail(string $reminderMail): self

Missing function doc comment
Open

    public function getShuffle(): bool

Missing function doc comment
Open

    public function setFormFields(string $formFields): self

Missing function doc comment
Open

    public function setLvl(?int $lvl): self

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

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

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

Missing function doc comment
Open

    public function getMailSubject(): string

Missing function doc comment
Open

    public function setSurveyType(int $surveyType): self

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

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

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

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

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

    #[Gedmo\TreeRight]

Missing function doc comment
Open

    public function __toString(): string

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

    public function setDisplayQuestionNumber(bool $displayQuestionNumber): static

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

#[ORM\Index(columns: ['code'], name: 'idx_survey_code')]

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

class CSurvey extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

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\OneToMany(mappedBy: 'survey', targetEntity: CSurveyQuestionOption::class, cascade: ['remove'])]

Missing function doc comment
Open

    public function setSurveyVersion(string $surveyVersion): self

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

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

Missing function doc comment
Open

    public function setLang(string $lang): self

Missing function doc comment
Open

    public function setShowFormProfile(int $showFormProfile): self

Missing function doc comment
Open

    public function getLvl(): ?int

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

#[Gedmo\Tree(type: 'nested')]

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

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

Missing function doc comment
Open

    public function getCode(): ?string

Missing function doc comment
Open

    public function setAvailTill(?DateTime $availTill = null): self

Missing function doc comment
Open

    public function getReminderMail(): string

Missing function doc comment
Open

    public function getOneQuestionPerPage(): bool

Missing function doc comment
Open

    public function setVisibleResults(int $visibleResults): self

Missing function doc comment
Open

    public function setQuestions(Collection $questions): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

Missing function doc comment
Open

    public function setDuration(?int $duration): self

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

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

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

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

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 getTitle(): string

Missing function doc comment
Open

    public function setMailSubject(string $mailSubject): self

Missing function doc comment
Open

    public function getAnonymous(): string

Missing function doc comment
Open

    public function setOneQuestionPerPage(bool $oneQuestionPerPage): self

Missing function doc comment
Open

    public function getRgt(): ?int

Missing function doc comment
Open

    public function setResourceName(string $name): self

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function getAvailFrom(): ?DateTime

Missing function doc comment
Open

    public function getSurveythanks(): ?string

Missing function doc comment
Open

    public function setCreationDate(DateTime $creationDate): self

Missing function doc comment
Open

    public function isDisplayQuestionNumber(): bool

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setTemplate(string $template): self

Missing function doc comment
Open

    public function getSurveyVersion(): string

Missing function doc comment
Open

    public function getSurveyParent(): ?self

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

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

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

    #[Gedmo\TreeLeft]

Missing function doc comment
Open

    public function setIntro(string $intro): self

Missing function doc comment
Open

    public function setAnswered(int $answered): self

Missing function doc comment
Open

    public function setAccessCondition(string $accessCondition): self

Missing function doc comment
Open

    public function isMandatory(): bool

Missing function doc comment
Open

    public function getDuration(): ?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: 'lang', type: 'string', length: 20, nullable: true)]

Missing function doc comment
Open

    public function setInvited(int $invited): self

Missing function doc comment
Open

    public function getAccessCondition(): ?string

Missing function doc comment
Open

    public function setIsMandatory(bool $isMandatory): self

Missing function doc comment
Open

    public function setLft(?int $lft): 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\Column(name: 'template', type: 'string', length: 20, nullable: true)]

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

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

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

Missing function doc comment
Open

    public function setCode(string $code): self

Missing function doc comment
Open

    public function setSubtitle(string $subtitle): self

Missing function doc comment
Open

    public function getInviteMail(): string

Missing function doc comment
Open

    public function setInviteMail(string $inviteMail): self

Missing function doc comment
Open

    public function setAnonymous(string $anonymous): self

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

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

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function setIsShared(string $isShared): self

Missing function doc comment
Open

    public function getTemplate(): ?string

Missing function doc comment
Open

    public function setSurveythanks(string $surveythanks): self

Missing function doc comment
Open

    public function setShuffle(bool $shuffle): self

Missing function doc comment
Open

    public function getShowFormProfile(): int

Missing function doc comment
Open

    public function getVisibleResults(): ?int

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

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

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

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

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

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

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\OrderBy(['sort' => 'ASC'])]

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

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

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getIntro(): ?string

Missing function doc comment
Open

    public function getInvited(): int

Missing function doc comment
Open

    public function getLft(): ?int

Missing function doc comment
Open

    public function setRgt(?int $rgt): self

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function setSurveyParent(?self $surveyParent): self

Missing function doc comment
Open

    public function setDisplayQuestionNumber(bool $displayQuestionNumber): static

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setOptions(Collection $options): self

Missing function doc comment
Open

    public function setInvitations(Collection $invitations): self

There are no issues that match your filters.

Category
Status