chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

Add a single space around assignment operators
Open

declare(strict_types=1);

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

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

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

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

    #[Gedmo\TreeRoot]

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

    #[ORM\ManyToOne(targetEntity: self::class)]

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getLp(): CLp

Missing function doc comment
Open

    public function setRef(string $ref): self

Missing function doc comment
Open

    public function setPreviousItemId(?int $previousItemId): self

Missing function doc comment
Open

    public function setPrerequisite(string $prerequisite): 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

    #[Assert\NotBlank]

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

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

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

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

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

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

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

Missing function doc comment
Open

    public function setNextItemId(?int $nextItemId): self

Missing function doc comment
Open

    public function setMaxTimeAllowed(string $maxTimeAllowed): self

Missing function doc comment
Open

    public function setTerms(string $terms): self

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

    #[ORM\Column(name: 'max_score', type: 'float', precision: 10, scale: 0, nullable: true, options: ['default' => 100])]

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

    #[ORM\Column(name: 'mastery_score', type: 'float', precision: 10, scale: 0, nullable: true)]

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

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

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

    #[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children', cascade: ['persist'])]

Missing function doc comment
Open

    public function __construct()

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

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

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

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

Missing function doc comment
Open

    public function getRef(): string

Missing function doc comment
Open

    public function setMinScore(float $minScore): self

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

class CLpItem implements Stringable

Missing function doc comment
Open

    public function setParameters(string $parameters): 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: 'prerequisite_max_score', type: 'float', precision: 10, scale: 0, nullable: 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 setItemType(string $itemType): self

Missing function doc comment
Open

    public function setMasteryScore(float $masteryScore): self

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

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

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setMaxScore(float $maxScore): self

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

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

Missing function doc comment
Open

    public function setTitle(string $title): self

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

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

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

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

    #[ORM\Column(name: 'min_score', type: 'float', precision: 10, scale: 0, nullable: false)]

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

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

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

    #[ORM\Column(name: 'prerequisite_min_score', type: 'float', precision: 10, scale: 0, nullable: true)]

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

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

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

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

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

    #[Gedmo\TreeRight]

Missing function doc comment
Open

    public function setLp(CLp $lp): 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: 'description', type: 'string', length: 511, nullable: true)]

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

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

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

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

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

    #[Gedmo\TreeLevel]

Missing function doc comment
Open

    public function setDisplayOrder(int $displayOrder): self

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

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

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

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

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

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function setPath(string $path): self

Missing function doc comment
Open

    public function setLaunchData(string $launchData): self

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

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

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

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

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

    #[Gedmo\TreeLeft]

Missing function doc comment
Open

    public function getItemType(): string

Missing function doc comment
Open

    public function setSearchDid(int $searchDid): self

Missing function doc comment
Open

    public function setPrerequisiteMinScore(float $prerequisiteMinScore): self

Missing function doc comment
Open

    public function getParent(): ?self

Missing function doc comment
Open

    public function setParent(?self $parent): self

Missing function doc comment
Open

    public function getLvl(): ?int

Missing function doc comment
Open

    public function setRoot(?self $root): self

Missing function doc comment
Open

    public function getDuration(): ?int

Missing function doc comment
Open

    public function setPrerequisiteMaxScore(float $prerequisiteMaxScore): self

Missing function doc comment
Open

    public function setLvl(int $lvl): self

Missing function doc comment
Open

    public function setDuration(?int $duration): self

Missing function doc comment
Open

    public function setAudio(string $audio): self

Missing function doc comment
Open

    public function getParentItemId(): int

Missing function doc comment
Open

    public function getRoot(): ?self

There are no issues that match your filters.

Category
Status