chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Entity/XApiObject.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

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

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

    #[ORM\OneToOne(targetEntity: self::class, cascade: ['persist', 'remove'])]

Missing function doc comment
Open

    public function hasActivityDefinition(): ?bool

Missing function doc comment
Open

    public function hasActivityDescription(): ?bool

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\Column(length: 255, nullable: true)]

Missing function doc comment
Open

    public function getActivityDescription(): ?array

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

    public function setActivityMoreInfo(?string $activityMoreInfo): static

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

    public function setMboxSha1Sum(?string $mboxSha1Sum): static

Missing function doc comment
Open

    public function getOpenId(): ?string

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

    public function setAccountHomePage(?string $accountHomePage): static

Missing function doc comment
Open

    public function getReferencedStatementId(): ?string

Missing function doc comment
Open

    public function getVerb(): ?XApiVerb

Missing function doc comment
Open

    public function setObject(?self $object): static

Missing function doc comment
Open

    public function getActivityExtensions(): ?XApiExtensions

Missing function doc comment
Open

    public function getParentContext(): ?XApiContext

Missing function doc comment
Open

    public function setParentContext(?XApiContext $parentContext): static

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

    #[ORM\OneToOne(targetEntity: self::class, cascade: ['persist', 'remove'])]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setActivityExtensions(?XApiExtensions $activityExtensions): 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\Column(length: 255, nullable: true)]

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

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

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

    public function setOpenId(?string $openId): static

Missing function doc comment
Open

    public function getActor(): ?self

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

Missing function doc comment
Open

    public function setHasActivityDescription(?bool $hasActivityDescription): static

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

    public function setActivityDescription(?array $activityDescription): static

Missing function doc comment
Open

    public function getMboxSha1Sum(): ?string

Missing function doc comment
Open

    public function setActor(?self $actor): static

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

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

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

    private ?string $mboxSha1Sum = null;

Missing function doc comment
Open

    public function getActivityType(): ?string

Missing function doc comment
Open

    public function addMember(self $member): static

Missing function doc comment
Open

    public function removeMember(self $member): static

Missing function doc comment
Open

    public function getOtherContext(): ?XApiContext

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(nullable: true)]

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 setActivityId(?string $activityId): static

Missing function doc comment
Open

    public function setHasActivityDefinition(?bool $hasActivityDefinition): static

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

    public function setHasActivityDefinition(?bool $hasActivityDefinition): static

Missing function doc comment
Open

    public function setActivityType(?string $activityType): static

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

    public function setMbox(?string $mbox): static

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

    public function setActivityExtensions(?XApiExtensions $activityExtensions): static

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

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

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

    public function setActivityName(?array $activityName): static

Missing function doc comment
Open

    public function setOpenId(?string $openId): static

Missing function doc comment
Open

    public function setVerb(?XApiVerb $verb): static

Missing function doc comment
Open

    public function getObject(): ?self

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

    public function setObject(?self $object): static

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

    public function addMember(self $member): static

Missing function doc comment
Open

    public function setCategoryContext(?XApiContext $categoryContext): static

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

Missing function doc comment
Open

    public function getAccountHomePage(): ?string

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(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\JoinColumn(referencedColumnName: 'identifier')]

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

Missing function doc comment
Open

    public function setActivityMoreInfo(?string $activityMoreInfo): static

Missing function doc comment
Open

    public function setMboxSha1Sum(?string $mboxSha1Sum): static

Missing function doc comment
Open

    public function setReferencedStatementId(?string $referencedStatementId): static

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

    public function setActor(?self $actor): static

Missing function doc comment
Open

    public function getGroup(): ?self

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

    public function removeMember(self $member): static

Missing function doc comment
Open

    public function getGroupingContext(): ?XApiContext

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\JoinColumn(referencedColumnName: 'identifier')]

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

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

Missing function doc comment
Open

    public function setHasActivityName(?bool $hasActivityName): static

Missing function doc comment
Open

    public function getActivityName(): ?array

Missing function doc comment
Open

    public function setActivityName(?array $activityName): 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\Column(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\OneToOne(cascade: ['persist', 'remove'])]

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

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

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

    public function setActivityType(?string $activityType): static

Missing function doc comment
Open

    public function setMbox(?string $mbox): static

Missing function doc comment
Open

    public function getAccountName(): ?string

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

    public function setAccountName(?string $accountName): static

Missing function doc comment
Open

    public function setGroup(?self $group): static

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

class XApiObject

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

    #[ORM\OneToOne(cascade: ['persist', 'remove'])]

Missing function doc comment
Open

    public function getActivityId(): ?string

Missing function doc comment
Open

    public function setActivityId(?string $activityId): 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\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\JoinColumn(referencedColumnName: 'identifier')]

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

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

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

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

    #[ORM\JoinColumn(referencedColumnName: 'identifier')]

Missing function doc comment
Open

    public function getType(): ?string

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

    public function setHasActivityDescription(?bool $hasActivityDescription): static

Missing function doc comment
Open

    public function getActivityMoreInfo(): ?string

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

    public function setVerb(?XApiVerb $verb): static

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

    public function setGroup(?self $group): static

Missing function doc comment
Open

    public function getCategoryContext(): ?XApiContext

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

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

Missing function doc comment
Open

    public function setType(?string $type): static

Missing function doc comment
Open

    public function hasActivityName(): ?bool

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

    public function setHasActivityName(?bool $hasActivityName): static

Missing function doc comment
Open

    public function setActivityDescription(?array $activityDescription): static

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

    public function setName(?string $name): static

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

    public function setParentContext(?XApiContext $parentContext): static

Missing function doc comment
Open

    public function setGroupingContext(?XApiContext $groupingContext): static

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

    public function setGroupingContext(?XApiContext $groupingContext): static

Missing function doc comment
Open

    public function setOtherContext(?XApiContext $otherContext): static

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

    public function setOtherContext(?XApiContext $otherContext): static

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\ManyToOne(inversedBy: 'parentActivities')]

Missing function doc comment
Open

    public function getIdentifier(): ?int

Missing function doc comment
Open

    public function getMbox(): ?string

Missing function doc comment
Open

    public function setAccountName(?string $accountName): static

Missing function doc comment
Open

    public function setAccountHomePage(?string $accountHomePage): static

Missing function doc comment
Open

    public function getName(): ?string

Missing function doc comment
Open

    public function setName(?string $name): static

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

    public function setReferencedStatementId(?string $referencedStatementId): static

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

    public function setCategoryContext(?XApiContext $categoryContext): static

There are no issues that match your filters.

Category
Status