chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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

Missing function doc comment
Open

    public function setWorkState(bool $workState): self

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

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

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

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

Missing function doc comment
Open

    public function setWikiState(bool $wikiState): self

Missing function doc comment
Open

    public function getDocumentAccess(): int

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

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

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

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

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function setDocState(bool $docState): self

Missing function doc comment
Open

    public function setMaxStudent(int $maxStudent): self

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

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

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function getIid(): ?int

Missing function doc comment
Open

    public function setAnnouncementsState(bool $announcementsState): 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 __toString(): string

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

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

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

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

Missing function doc comment
Open

    public function setGroupsPerUser(int $groupsPerUser): self

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

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

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

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

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

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

Missing function doc comment
Open

    public function setForumState(bool $forumState): self

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

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

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

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

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setCalendarState(bool $calendarState): self

Missing function doc comment
Open

    public function setChatState(bool $chatState): self

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

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

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

class CGroupCategory extends AbstractResource implements ResourceInterface, Stringable

Missing function doc comment
Open

    public function setDocumentAccess(int $documentAccess): self

Missing function doc comment
Open

    public function getOnlyMe(): bool

Missing function doc comment
Open

    public function getAllowAutogroup(): bool

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: 'allow_autogroup', type: 'boolean', options: ['default' => 0])]

Missing function doc comment
Open

    public function setMinStudent(?int $minStudent): self

Missing function doc comment
Open

    public function setEndInscriptionDate(?DateTime $endInscriptionDate): self

Missing function doc comment
Open

    public function setAllowChangeGroupName(?int $allowChangeGroupName): 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: 'document_access', type: 'integer', nullable: false, options: ['default' => 0])]

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

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

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

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

Missing function doc comment
Open

    public function setSelfRegAllowed(bool $selfRegAllowed): 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: 'calendar_state', type: 'boolean', nullable: false)]

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

    #[ORM\JoinColumn(name: 'peer_assessment', referencedColumnName: 'id', nullable: true)]

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function setSelfUnregAllowed(bool $selfUnregAllowed): 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

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

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

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

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function getEndInscriptionDate(): ?DateTime

Missing function doc comment
Open

    public function setPeerAssessment(?CPeerAssessment $peerAssessment): self

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function getPeerAssessment(): ?CPeerAssessment

Missing function doc comment
Open

    public function setBeginInscriptionDate(?DateTime $beginInscriptionDate): self

Missing function doc comment
Open

    public function setAllowAutogroup(bool $allowAutogroup): self

Missing function doc comment
Open

    public function getMinStudent(): ?int

Missing function doc comment
Open

    public function getBeginInscriptionDate(): ?DateTime

Missing function doc comment
Open

    public function getAllowChangeGroupName(): ?int

Missing function doc comment
Open

    public function setAllowCoachChangeOptionsGroups(bool $allowCoachChangeOptionsGroups): self

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function setOnlyMe(bool $onlyMe): self

Missing function doc comment
Open

    public function getAllowCoachChangeOptionsGroups(): bool

Missing function doc comment
Open

    public function getResourceIdentifier(): int|Uuid

Missing function doc comment
Open

    public function getResourceName(): string

The 'getChatState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getChatState()
    {
        return $this->chatState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getCalendarState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getCalendarState()
    {
        return $this->calendarState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getWorkState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getWorkState()
    {
        return $this->workState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getWikiState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getWikiState()
    {
        return $this->wikiState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getSelfRegAllowed()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getSelfRegAllowed()
    {
        return $this->selfRegAllowed;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getForumState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getForumState()
    {
        return $this->forumState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getSelfUnregAllowed()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getSelfUnregAllowed()
    {
        return $this->selfUnregAllowed;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getDocState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getDocState()
    {
        return $this->docState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

The 'getAnnouncementsState()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getAnnouncementsState()
    {
        return $this->announcementsState;
    }

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

There are no issues that match your filters.

Category
Status