Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'forum_state', type: 'boolean', nullable: false)]
- Exclude checks
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])]
- Exclude checks
Missing function doc comment Open
public function setWorkState(bool $workState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'max_student', type: 'integer', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'self_reg_allowed', type: 'boolean', nullable: false)]
- Exclude checks
Missing function doc comment Open
public function setWikiState(bool $wikiState): self
- Exclude checks
Missing function doc comment Open
public function getDocumentAccess(): int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Table(name: 'c_group_category')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'work_state', type: 'boolean', nullable: false)]
- Exclude checks
Missing function doc comment Open
public function getDescription(): ?string
- Exclude checks
Missing function doc comment Open
public function setDocState(bool $docState): self
- Exclude checks
Missing function doc comment Open
public function setMaxStudent(int $maxStudent): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'wiki_state', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\GeneratedValue]
- Exclude checks
Missing function doc comment Open
public function getIid(): ?int
- Exclude checks
Missing function doc comment Open
public function setAnnouncementsState(bool $announcementsState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
- Exclude checks
Missing function doc comment Open
public function __toString(): string
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'begin_inscription_date', type: 'datetime', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'end_inscription_date', type: 'datetime', nullable: true)]
- Exclude checks
Missing function doc comment Open
public function setGroupsPerUser(int $groupsPerUser): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'description', type: 'text', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'announcements_state', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'groups_per_user', type: 'integer', nullable: false)]
- Exclude checks
Missing function doc comment Open
public function setForumState(bool $forumState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'doc_state', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'self_unreg_allowed', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'min_student', type: 'integer', nullable: true)]
- Exclude checks
Missing function doc comment Open
public function __construct()
- Exclude checks
Missing function doc comment Open
public function setCalendarState(bool $calendarState): self
- Exclude checks
Missing function doc comment Open
public function setChatState(bool $chatState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Entity(repositoryClass: CGroupCategoryRepository::class)]
- Exclude checks
You must use "/**" style comments for a class comment Open
class CGroupCategory extends AbstractResource implements ResourceInterface, Stringable
- Exclude checks
Missing function doc comment Open
public function setDocumentAccess(int $documentAccess): self
- Exclude checks
Missing function doc comment Open
public function getOnlyMe(): bool
- Exclude checks
Missing function doc comment Open
public function getAllowAutogroup(): bool
- Exclude checks
Add a single space around assignment operators Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'allow_autogroup', type: 'boolean', options: ['default' => 0])]
- Exclude checks
Missing function doc comment Open
public function setMinStudent(?int $minStudent): self
- Exclude checks
Missing function doc comment Open
public function setEndInscriptionDate(?DateTime $endInscriptionDate): self
- Exclude checks
Missing function doc comment Open
public function setAllowChangeGroupName(?int $allowChangeGroupName): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'document_access', type: 'integer', nullable: false, options: ['default' => 0])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'only_me', type: 'boolean', options: ['default' => 0])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\ManyToOne(targetEntity: CPeerAssessment::class)]
- Exclude checks
Missing function doc comment Open
public function setSelfRegAllowed(bool $selfRegAllowed): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Id]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'calendar_state', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\JoinColumn(name: 'peer_assessment', referencedColumnName: 'id', nullable: true)]
- Exclude checks
Missing function doc comment Open
public function setDescription(string $description): self
- Exclude checks
Missing function doc comment Open
public function setSelfUnregAllowed(bool $selfUnregAllowed): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'iid', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[ORM\Column(name: 'chat_state', type: 'boolean', nullable: false)]
- Exclude checks
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])]
- Exclude checks
Missing function doc comment Open
public function setTitle(string $title): self
- Exclude checks
Missing function doc comment Open
public function getEndInscriptionDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
public function setPeerAssessment(?CPeerAssessment $peerAssessment): self
- Exclude checks
Missing function doc comment Open
public function getTitle(): string
- Exclude checks
Missing function doc comment Open
public function getPeerAssessment(): ?CPeerAssessment
- Exclude checks
Missing function doc comment Open
public function setBeginInscriptionDate(?DateTime $beginInscriptionDate): self
- Exclude checks
Missing function doc comment Open
public function setAllowAutogroup(bool $allowAutogroup): self
- Exclude checks
Missing function doc comment Open
public function getMinStudent(): ?int
- Exclude checks
Missing function doc comment Open
public function getBeginInscriptionDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
public function getAllowChangeGroupName(): ?int
- Exclude checks
Missing function doc comment Open
public function setAllowCoachChangeOptionsGroups(bool $allowCoachChangeOptionsGroups): self
- Exclude checks
Missing function doc comment Open
public function setResourceName(string $name): self
- Exclude checks
Missing function doc comment Open
public function setOnlyMe(bool $onlyMe): self
- Exclude checks
Missing function doc comment Open
public function getAllowCoachChangeOptionsGroups(): bool
- Exclude checks
Missing function doc comment Open
public function getResourceIdentifier(): int|Uuid
- Exclude checks
Missing function doc comment Open
public function getResourceName(): string
- Exclude checks
The 'getChatState()' method which returns a boolean should be named 'is...()' or 'has...()' Open
public function getChatState()
{
return $this->chatState;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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;
}
- Read upRead up
- Exclude checks
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
}