src/CourseBundle/Entity/CGroup.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'c_group_info')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(mappedBy: 'group', targetEntity: CGroupRelUser::class)]
- Exclude checks
Missing function doc comment Open
Open
public function getStatus(): bool
- Exclude checks
Missing function doc comment Open
Open
public function setDocState(int $docState): self
- Exclude checks
Missing function doc comment Open
Open
public function setWorkState(int $workState): self
- Exclude checks
Missing function doc comment Open
Open
public function hasMembers(): bool
- Exclude checks
Missing function doc comment Open
Open
public function hasMember(User $user): bool
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'iid', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'wiki_state', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'self_registration_allowed', type: 'boolean')]
- Exclude checks
Missing function doc comment Open
Open
public function __toString(): string
- Exclude checks
Missing function doc comment Open
Open
public function getDescription(): ?string
- Exclude checks
Missing function doc comment Open
Open
public function getCalendarState(): int
- Exclude checks
Missing function doc comment Open
Open
public function setAnnouncementsState(int $announcementsState): self
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
$list = $this->members->filter(fn (CGroupRelUser $member) => $member->getUser()->getId() === $user->getId());
- Exclude checks
Missing function doc comment Open
Open
public function setCategory(?CGroupCategory $category = null): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'work_state', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Missing function doc comment Open
Open
public function getAnnouncementsState(): int
- Exclude checks
Missing function doc comment Open
Open
public function getIid(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function setTitle(string $title): self
- Exclude checks
Missing function doc comment Open
Open
public function setChatState(int $chatState): self
- Exclude checks
Missing function doc comment Open
Open
public function hasTutor(User $user): bool
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: CGroupCategory::class, cascade: ['persist'])]
- Exclude checks
Missing function doc comment Open
Open
public function getChatState(): int
- Exclude checks
Missing function doc comment Open
Open
public function setDocumentAccess(int $documentAccess): self
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class CGroup extends AbstractResource implements ResourceInterface, Stringable
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['group:read', 'group:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'status', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'forum_state', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function getMaxStudent(): int
- Exclude checks
Missing function doc comment Open
Open
public function getDocState(): int
- Exclude checks
Missing function doc comment Open
Open
public function getWikiState(): int
- Exclude checks
Missing function doc comment Open
Open
public function setTutors(Collection $tutors): self
- Exclude checks
Missing function doc comment Open
Open
public function getCategory(): ?CGroupCategory
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotNull]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'category_id', referencedColumnName: 'iid', onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'doc_state', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function setMaxStudent(int $maxStudent): self
- Exclude checks
Missing function doc comment Open
Open
public function getSelfUnregistrationAllowed(): bool
- Exclude checks
Missing function doc comment Open
Open
public function hasTutors(): bool
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity(repositoryClass: CGroupRepository::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['group:read', 'group:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'chat_state', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(mappedBy: 'group', targetEntity: CGroupRelTutor::class)]
- Exclude checks
Missing function doc comment Open
Open
public function getTitle(): string
- Exclude checks
Missing function doc comment Open
Open
public function getWorkState(): int
- Exclude checks
Missing function doc comment Open
Open
public function setForumState(int $forumState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Missing function doc comment Open
Open
public function setWikiState(int $wikiState): self
- Exclude checks
Missing function doc comment Open
Open
public function setSelfRegistrationAllowed(bool $selfRegistrationAllowed): self
- Exclude checks
Missing function doc comment Open
Open
public function getSelfRegistrationAllowed(): bool
- Exclude checks
Missing function doc comment Open
Open
public function setSelfUnregistrationAllowed(bool $selfUnregistrationAllowed): self
- Exclude checks
Missing function doc comment Open
Open
public function getResourceName(): string
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'self_unregistration_allowed', type: 'boolean')]
- Exclude checks
Missing function doc comment Open
Open
public function setCalendarState(int $calendarState): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'calendar_state', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'announcements_state', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function getForumState(): int
- Exclude checks
Missing function doc comment Open
Open
public function getResourceIdentifier(): int|Uuid
- Exclude checks
Missing function doc comment Open
Open
public function setResourceName(string $name): self
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Id]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'title', type: 'string', length: 100, nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function getDocumentAccess(): int
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
$list = $this->tutors->filter(fn (CGroupRelTutor $tutor) => $tutor->getUser()->getId() === $user->getId());
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'document_access', type: 'integer', options: ['default' => 0])]
- Exclude checks
Missing function doc comment Open
Open
public function setStatus(bool $status): self
- Exclude checks
Missing function doc comment Open
Open
public function setMembers(Collection $members): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(normalizationContext: ['groups' => ['group:read']], security: "is_granted('ROLE_ADMIN')")]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'description', type: 'text', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'max_student', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function setDescription(string $description): self
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
$list = $this->tutors->filter(fn (CGroupRelTutor $tutor) => $tutor->getUser()->getId() === $user->getId());
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
$list = $this->members->filter(fn (CGroupRelUser $member) => $member->getUser()->getId() === $user->getId());
- Exclude checks