chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    #[Groups(['usergroup:read'])]

Missing function doc comment
Open

    public function addUsers(UsergroupRelUser $user): self

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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

    #[ORM\OneToMany(mappedBy: 'usergroup', targetEntity: UsergroupRelUser::class, cascade: ['persist'])]

Missing function doc comment
Open

    public function addAccessUrl(?AccessUrl $url): self

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

    #[ORM\OneToMany(mappedBy: 'usergroup', targetEntity: UsergroupRelSession::class, cascade: ['persist'])]

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

    #[ORM\Column(name: 'allow_members_leave_group', type: 'integer')]

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

    #[Groups(['usergroup:read'])]

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

    #[ORM\OneToMany(mappedBy: 'usergroup', targetEntity: UsergroupRelQuestion::class, cascade: ['persist'])]

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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

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

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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: UsergroupRepository::class)]

Missing function doc comment
Open

    public function __toString(): string

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

    #[ORM\GeneratedValue]

Missing function doc comment
Open

    public function removeUsers(UsergroupRelUser $user): void

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

#[ApiResource(

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

    #[ORM\Column(name: 'title', type: 'string', length: 255)]

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: 'group_type', type: 'integer', nullable: false)]

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

    #[ORM\Column(name: 'url', type: 'string', length: 255, nullable: true)]

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

    #[ORM\Column(name: 'visibility', type: 'string', length: 255, nullable: false)]

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

    #[ORM\OneToMany(mappedBy: 'usergroup', targetEntity: UsergroupRelCourse::class, cascade: ['persist'])]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setUsers(Collection $users): void

Missing function doc comment
Open

    public function addUrlRelUsergroup(AccessUrlRelUserGroup $urlRelUsergroup): self

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

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

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

class Usergroup extends AbstractResource implements ResourceInterface, ResourceIllustrationInterface, ResourceWithAccessUrlInterface, Stringable

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

    #[ORM\Column(name: 'picture', type: 'string', length: 255, nullable: true)]

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

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

    #[ORM\OneToMany(mappedBy: 'userGroup', targetEntity: AccessUrlRelUserGroup::class, cascade: ['persist', 'remove'], orphanRemoval: true)]

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

    #[Assert\NotBlank]

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

    #[Assert\NotBlank]

Missing function doc comment
Open

    public function setDescription(string $description): self

Missing function doc comment
Open

    public function setPictureUrl(?string $pictureUrl): self

Missing function doc comment
Open

    public function setMemberCount(int $memberCount): self

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

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

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: 'author_id', type: 'integer', nullable: true)]

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

    #[Groups(['usergroup:read', 'usergroup:write'])]

Missing function doc comment
Open

    public function setAllowMembersToLeaveGroup(int $allowMembersToLeaveGroup): self

Missing function doc comment
Open

    public function getAllowMembersToLeaveGroup(): int

Missing function doc comment
Open

    public function setCourses(Collection $courses): self

Missing function doc comment
Open

    public function setPicture(?string $picture): self

Missing function doc comment
Open

    public function getPicture(): ?string

Missing function doc comment
Open

    public function getMemberCount(): ?int

Missing function doc comment
Open

    public function getDefaultIllustration(int $size): string

Missing function doc comment
Open

    public function setUrl(?string $url): self

Missing function doc comment
Open

    public function getUrl(): ?string

Missing function doc comment
Open

    public function getGroupType(): int

Missing function doc comment
Open

    public function setSessions(Collection $sessions): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int

Missing function doc comment
Open

    public function setVisibility(string $visibility): self

Missing function doc comment
Open

    public function setQuestions(Collection $questions): self

Missing function doc comment
Open

    public function getAuthorId(): ?int

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function getPictureUrl(): ?string

Missing function doc comment
Open

    public function setTitle(string $title): self

Missing function doc comment
Open

    public function setAuthorId(?int $authorId): self

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setGroupType(int $groupType): self

Missing function doc comment
Open

    public function getVisibility(): string

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function setResourceName(string $name): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $allowMembersToLeaveGroup;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $description = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $visibility;

Line indented incorrectly; expected 8 spaces, found 4
Open

    private ?int $memberCount = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addAccessUrl(?AccessUrl $url): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $url = null;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->groupType = self::NORMAL_CLASS;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->questions = new ArrayCollection();

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->urls[] = $urlRelUsergroup;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->users = new ArrayCollection();

Line indented incorrectly; expected at least 4 spaces, found 0
Open

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $groupType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $questions;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sessions = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __toString(): string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $urlRelUsergroup->setUserGroup($this);

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $this->addUsers($user);

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addUsers(UsergroupRelUser $user): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const NORMAL_CLASS = 0;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_PERMISSION_OPEN = 1;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $urlRelUsergroup->setUrl($url);

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addUrlRelUsergroup(AccessUrlRelUserGroup $urlRelUsergroup): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->users[] = $user;

Line indented incorrectly; expected 4 spaces, found 0
Open

class Usergroup extends AbstractResource implements ResourceInterface, ResourceIllustrationInterface, ResourceWithAccessUrlInterface, Stringable

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $urlRelUsergroup->setUserGroup($this);

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    use TimestampableEntity;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_HRM = 7; // A human resource manager

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->urls;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_PENDING_INVITATION_SENT_BY_USER = 4; // A user requests to join a group

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_ANONYMOUS = 6; // An anonymous user, not part of the group

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $courses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    private ?string $pictureUrl = '';

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_PERMISSION_CLOSED = 2;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $sessions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUsers(Collection $users): void

Line indented incorrectly; expected 12 spaces, found 8
Open

        foreach ($users as $user) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        foreach ($this->users as $key => $value) {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const SOCIAL_CLASS = 1;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->courses = new ArrayCollection();

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function removeUsers(UsergroupRelUser $user): void

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $picture = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $authorId = null;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->visibility = GROUP_PERMISSION_OPEN;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->users;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUrls(): Collection

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                unset($this->users[$key]);

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 4 spaces, found 0
Open

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_MODERATOR = 5; // A moderator of the group

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $urlRelUsergroup = new AccessUrlRelUserGroup();

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $user->setUsergroup($this);

Line indented incorrectly; expected 16 spaces, found 12
Open

            if ($value->getId() === $user->getId()) {

Line indented incorrectly; expected 16 spaces, found 12
Open

            }

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $users;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUsers(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_ADMIN = 1; // The admin of a group

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_READER = 2; // A normal user

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const GROUP_USER_PERMISSION_PENDING_INVITATION = 3; // When an admin/moderator invites a user

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $urls;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->allowMembersToLeaveGroup = 0;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->users = new ArrayCollection();

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->urls = new ArrayCollection();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->addUrlRelUsergroup($urlRelUsergroup);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getId(): ?int

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->url;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setMemberCount(int $memberCount): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->memberCount = $memberCount;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $title;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->getTitle();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->title;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUrl(?string $url): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->courses;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getMemberCount(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $size = empty($size) ? 32 : $size;

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTitle(string $title): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setDescription(string $description): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->description = $description;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->groupType;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->visibility;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUrl(): ?string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setAuthorId(?int $authorId): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->title = $title;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getGroupType(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->questions = $questions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setVisibility(string $visibility): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getQuestions(): Collection

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->questions;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->sessions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setPictureUrl(?string $pictureUrl): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->pictureUrl;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getDescription(): ?string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setAllowMembersToLeaveGroup(int $allowMembersToLeaveGroup): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setPicture(?string $picture): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getVisibility(): string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->picture = $picture;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSessions(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getPictureUrl(): ?string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->memberCount;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getPicture(): ?string

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->pictureUrl = $pictureUrl;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getDefaultIllustration(int $size): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setGroupType(int $groupType): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->authorId = $authorId;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->allowMembersToLeaveGroup;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSessions(Collection $sessions): self

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return \sprintf('/img/icons/%s/group_na.png', $size);

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->getId();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceName(): string

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->visibility = $visibility;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->courses = $courses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->picture;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceIdentifier(): int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->getTitle();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->id;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->authorId;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCourses(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setCourses(Collection $courses): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setResourceName(string $name): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getTitle(): string

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->groupType = $groupType;

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setQuestions(Collection $questions): self

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->url = $url;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->sessions = $sessions;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->description;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAuthorId(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getAllowMembersToLeaveGroup(): int

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $this->allowMembersToLeaveGroup = $allowMembersToLeaveGroup;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->setTitle($name);

There are no issues that match your filters.

Category
Status