chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/XApiCmi5Item.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[ORM\Column(length: 255)]

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

    #[ORM\Column]

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

    #[Gedmo\TreeRoot]

Missing function doc comment
Open

    public function setActivityType(?string $activityType): static

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

    public function setRoot(?self $root): static

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

    #[ORM\Column(nullable: true)]

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

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

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

    public function setType(string $type): static

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

    public function setMasteryScore(?float $masteryScore): static

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

    public function setStatus(?string $status): static

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

    public function setñlvl(int $lvl): static

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

    public function setRgt(int $rgt): static

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

    public function addChild(self $child): static

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

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

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

    #[ORM\Column(length: 255, nullable: true)]

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

    #[ORM\Column(length: 255, nullable: true)]

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

    #[ORM\Column]

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

    #[ORM\Column]

Missing function doc comment
Open

    public function getIdentifier(): ?string

Missing function doc comment
Open

    public function getActivityType(): ?string

Missing function doc comment
Open

    public function setMasteryScore(?float $masteryScore): static

Missing function doc comment
Open

    public function getLaunchParameters(): ?string

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

    public function setLft(int $lft): static

Method name "XApiCmi5Item::getñlvl" is not in camel caps format
Open

    public function getñlvl(): ?int

Missing function doc comment
Open

    public function setTool(?XApiToolLaunch $tool): static

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function getDescription(): array

Missing function doc comment
Open

    public function getRoot(): ?self

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

    #[ORM\Column(length: 255, nullable: true)]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setDescription(array $description): static

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

    public function setActivityType(?string $activityType): static

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

    #[ORM\Column]

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

    public function setLaunchParameters(?string $launchParameters): static

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

    public function removeChild(self $child): static

Missing function doc comment
Open

    public function getTool(): ?XApiToolLaunch

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

    public function setIdentifier(string $identifier): static

Missing function doc comment
Open

    public function setLaunchMethod(?string $launchMethod): static

Missing function doc comment
Open

    public function getMoveOn(): ?string

Missing function doc comment
Open

    public function setMoveOn(?string $moveOn): static

Missing function doc comment
Open

    public function setLaunchParameters(?string $launchParameters): static

Missing function doc comment
Open

    public function getRgt(): ?int

Missing function doc comment
Open

    public function setRgt(int $rgt): static

Missing function doc comment
Open

    public function getParent(): ?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(length: 255, nullable: true)]

Missing function doc comment
Open

    public function setTitle(array $title): static

Missing function doc comment
Open

    public function getUrl(): ?string

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

    public function setUrl(?string $url): static

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

class XApiCmi5Item

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

    #[Gedmo\TreeLevel]

Missing function doc comment
Open

    public function setIdentifier(string $identifier): static

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

    public function setDescription(array $description): static

Method name "XApiCmi5Item::setñlvl" is not in camel caps format
Open

    public function setñlvl(int $lvl): static

Missing function doc comment
Open

    public function setRoot(?self $root): static

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

    #[ORM\Column(length: 255, nullable: true)]

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

    #[ORM\ManyToOne(inversedBy: 'items')]

Missing function doc comment
Open

    public function getType(): ?string

Missing function doc comment
Open

    public function getLft(): ?int

Missing function doc comment
Open

    public function setLft(int $lft): static

Missing function doc comment
Open

    public function removeChild(self $child): static

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

    #[ORM\Column]

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

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

Missing function doc comment
Open

    public function getñlvl(): ?int

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\GeneratedValue]

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

    #[ORM\Column(length: 255, nullable: true)]

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

    #[Gedmo\TreeLeft]

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

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

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

    public function setTitle(array $title): static

Missing function doc comment
Open

    public function getLaunchMethod(): ?string

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

    #[ORM\Column]

Missing function doc comment
Open

    public function getTitle(): array

Missing function doc comment
Open

    public function setUrl(?string $url): static

Missing function doc comment
Open

    public function setEntitlementKey(?string $entitlementKey): static

Missing function doc comment
Open

    public function setParent(?self $parent): static

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

    public function setParent(?self $parent): static

Missing function doc comment
Open

    public function setType(string $type): static

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

    public function setLaunchMethod(?string $launchMethod): static

Missing function doc comment
Open

    public function getMasteryScore(): ?float

Missing function doc comment
Open

    public function setStatus(?string $status): static

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

    #[ORM\Column(length: 255)]

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

    #[ORM\Column(length: 255, nullable: true)]

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

    #[Gedmo\TreeRight]

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

    #[Gedmo\TreeParent]

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

    public function setMoveOn(?string $moveOn): static

Missing function doc comment
Open

    public function getEntitlementKey(): ?string

Missing function doc comment
Open

    public function getStatus(): ?string

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

    public function setTool(?XApiToolLaunch $tool): static

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

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

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

    public function setEntitlementKey(?string $entitlementKey): static

Missing function doc comment
Open

    public function setñlvl(int $lvl): static

Missing function doc comment
Open

    public function addChild(self $child): static

The method getñlvl is not named in camelCase.
Open

    public function getñlvl(): ?int
    {
        return $this->lvl;
    }

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method setñlvl is not named in camelCase.
Open

    public function setñlvl(int $lvl): static
    {
        $this->lvl = $lvl;

        return $this;

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status