chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Column(name: 'content_local', type: 'string', length: 32, nullable: false, options: ['default' => 'local'])]

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

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getRef(): ?string

Missing function doc comment
Open

    public function setSeriousgameMode(bool $seriousgameMode): self

Missing function doc comment
Open

    public function getAutolaunch(): int

Missing function doc comment
Open

    public function getPublishedOn(): ?DateTime

Missing function doc comment
Open

    public function setAccumulateWorkTime(int $accumulateWorkTime): self

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getSeriousgameMode(): bool

Missing function doc comment
Open

    public function getCreatedOn(): DateTime

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

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

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

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

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

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

    #[ORM\ManyToOne(targetEntity: CLpCategory::class, inversedBy: 'lps')]

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

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

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

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

Missing function doc comment
Open

    public function setPath(string $path): self

Missing function doc comment
Open

    public function setForceCommit(bool $forceCommit): self

Missing function doc comment
Open

    public function setDefaultEncoding(string $defaultEncoding): self

Missing function doc comment
Open

    public function getJsLib(): string

Missing function doc comment
Open

    public function getHideTocFrame(): bool

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

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function getDefaultViewMod(): string

Missing function doc comment
Open

    public function setDebug(bool $debug): self

Missing function doc comment
Open

    public function setCategory(?CLpCategory $category = null): self

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function setPrerequisite(int $prerequisite): self

Missing function doc comment
Open

    public function setAccumulateScormTime(int $accumulateScormTime): self

Missing function doc comment
Open

    public function getMaxAttempts(): int

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

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

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

Missing function doc comment
Open

    public function setLpType(int $lpType): self

Missing function doc comment
Open

    public function getLpType(): int

Missing function doc comment
Open

    public function getContentLocal(): string

Missing function doc comment
Open

    public function setModifiedOn(DateTime $modifiedOn): self

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

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

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

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

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

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

    #[Gedmo\Timestampable(on: 'create')]

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

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

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

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

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

    #[ORM\JoinColumn(name: 'asset_id', referencedColumnName: 'id')]

Missing function doc comment
Open

    public function setPreventReinit(bool $preventReinit): self

Missing function doc comment
Open

    public function getDebug(): bool

Missing function doc comment
Open

    public function setTheme(string $theme): self

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

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

Missing function doc comment
Open

    public function getDefaultEncoding(): string

Missing function doc comment
Open

    public function setHideTocFrame(bool $hideTocFrame): self

Missing function doc comment
Open

    public function setAutolaunch(int $autolaunch): self

Missing function doc comment
Open

    public function getModifiedOn(): DateTime

Missing function doc comment
Open

    public function getAccumulateScormTime(): 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: 'debug', type: 'boolean', nullable: false)]

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

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

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

    #[ORM\OneToMany(mappedBy: 'lp', targetEntity: CForum::class, cascade: ['persist', 'remove'])]

Missing function doc comment
Open

    public function setRef(string $ref): self

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function getContentMaker(): string

Missing function doc comment
Open

    public function setContentLocal(string $contentLocal): self

Missing function doc comment
Open

    public function getPreventReinit(): bool

Missing function doc comment
Open

    public function getExpiredOn(): ?DateTime

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

class CLp extends AbstractResource implements ResourceInterface, ResourceShowCourseResourcesInSessionInterface, Stringable

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

    #[ORM\Column(name: 'default_encoding', type: 'string', length: 32, nullable: false, options: ['default' => 'UTF-8'])]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getForceCommit(): bool

Missing function doc comment
Open

    public function setAuthor(string $author): self

Missing function doc comment
Open

    public function getCategory(): ?CLpCategory

Missing function doc comment
Open

    public function hasCategory(): bool

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

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

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

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

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

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

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setContentMaker(string $contentMaker): self

Missing function doc comment
Open

    public function getAuthor(): string

Missing function doc comment
Open

    public function getPrerequisite(): int

Missing function doc comment
Open

    public function setUseMaxScore(int $useMaxScore): self

Missing function doc comment
Open

    public function setCreatedOn(DateTime $createdOn): self

Missing function doc comment
Open

    public function setExpiredOn(?DateTime $expiredOn): self

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

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

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

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

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

    #[ORM\OneToMany(mappedBy: 'lp', targetEntity: CLpItem::class, cascade: ['persist', 'remove'], orphanRemoval: true)]

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 setDefaultViewMod(string $defaultViewMod): self

Missing function doc comment
Open

    public function setContentLicense(string $contentLicense): self

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

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

Missing function doc comment
Open

    public function setJsLib(string $jsLib): self

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

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

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

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

    #[Gedmo\Timestampable(on: 'update')]

Missing function doc comment
Open

    public function getTheme(): string

Missing function doc comment
Open

    public function getUseMaxScore(): int

Missing function doc comment
Open

    public function getNextLpId(): int

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

    #[ORM\Column(name: 'default_view_mod', type: 'string', length: 32, nullable: false, options: ['default' => 'embedded'])]

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

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

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

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

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function setPublishedOn(?DateTime $publishedOn): self

Missing function doc comment
Open

    public function getAccumulateWorkTime(): int

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

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

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

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

Missing function doc comment
Open

    public function getPath(): string

Missing function doc comment
Open

    public function getContentLicense(): string

Missing function doc comment
Open

    public function setDuration(?int $duration): self

Missing function doc comment
Open

    public function setNextLpId(int $nextLpId): self

Missing function doc comment
Open

    public function getSubscribeUserByDate(): bool

Missing function doc comment
Open

    public function getDuration(): ?int

Missing function doc comment
Open

    public function setForums(ArrayCollection|Collection $forums): self

Missing function doc comment
Open

    public function setSubscribeUserByDate(bool $subscribeUserByDate): self

Missing function doc comment
Open

    public function setAsset(?Asset $asset): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

Missing function doc comment
Open

    public function getDisplayNotAllowedLp(): bool

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function getSubscribeUsers(): int

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setSubscribeUsers(int $value): self

Missing function doc comment
Open

    public function setDisplayNotAllowedLp(bool $displayNotAllowedLp): self

Missing function doc comment
Open

    public function getAsset(): ?Asset

Missing function doc comment
Open

    public function hasAsset(): bool

There are no issues that match your filters.

Category
Status