chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

#[ApiResource(

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\OneToMany(mappedBy: 'url', targetEntity: AccessUrlRelUser::class, cascade: ['persist'], orphanRemoval: true)]

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

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

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

    #[ORM\OneToMany(mappedBy: 'url', targetEntity: SessionCategory::class, cascade: ['persist'], orphanRemoval: true)]

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

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

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

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

Missing function doc comment
Open

    public function setUrl(string $url): self

Missing function doc comment
Open

    public function setActive(int $active): self

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

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

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

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

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\OneToMany(mappedBy: 'url', targetEntity: AccessUrlRelCourseCategory::class, cascade: ['persist'], orphanRemoval: true)]

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

    #[Gedmo\TreeLeft]

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

    #[ORM\Column(name: 'url_type', type: 'boolean', nullable: true)]

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

class AccessUrl extends AbstractResource implements ResourceInterface, Stringable

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

    #[ORM\OneToMany(mappedBy: 'parent', targetEntity: self::class)]

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

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

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

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

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

    #[Gedmo\TreeRoot]

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

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

Missing function doc comment
Open

    public function getTms(): ?DateTime

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

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

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

    #[ORM\OneToMany(mappedBy: 'url', targetEntity: AccessUrlRelSession::class, cascade: ['persist'], 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

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

Missing function doc comment
Open

    public function setCreatedBy(int $createdBy): self

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

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

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

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

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

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

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

    #[Assert\Email]

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

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

Missing function doc comment
Open

    public function getUrl(): string

Missing function doc comment
Open

    public function setDescription(string $description): self

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

    #[Gedmo\TreeParent]

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\OrderBy(['id' => 'ASC'])]

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

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

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

    #[ORM\OneToMany(mappedBy: 'url', targetEntity: AccessUrlRelColorTheme::class, cascade: ['persist'], orphanRemoval: true)]

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function getActive(): int

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

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

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

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

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

    #[ORM\JoinColumn(name: 'tree_root', onDelete: 'CASCADE')]

Missing function doc comment
Open

    public function getCreatedBy(): int

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

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

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

    #[Gedmo\TreeLevel]

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

    #[ORM\OneToMany(mappedBy: 'url', targetEntity: SettingsCurrent::class, cascade: ['persist'], orphanRemoval: true)]

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

    #[ORM\JoinColumn(onDelete: 'CASCADE')]

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

    #[Gedmo\TreeRight]

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

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

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

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

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function setTms(DateTime $tms): self

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

#[Gedmo\Tree(type: 'nested')]

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

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

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

    #[ORM\OneToMany(mappedBy: 'url', targetEntity: AccessUrlRelCourse::class, cascade: ['persist'], orphanRemoval: true)]

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

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

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function hasCourse(Course $course): bool

Missing function doc comment
Open

    public function getLimitSessions(): ?int

Missing function doc comment
Open

    public function getEmail(): ?string

Missing function doc comment
Open

    public function setLimitCourses(int $limitCourses): self

Missing function doc comment
Open

    public function setSessionCategories(Collection $sessionCategories): self

Missing function doc comment
Open

    public function setCourses(Collection $courses): self

Missing function doc comment
Open

    public function getLimitTeachers(): ?int

Missing function doc comment
Open

    public function getLimitDiskSpace(): ?int

Missing function doc comment
Open

    public function setEmail(string $email): self

Missing function doc comment
Open

    public function getLimitCourses(): ?int

Missing function doc comment
Open

    public function addCourse(Course $course): self

Missing function doc comment
Open

    public function setLimitActiveCourses(int $limitActiveCourses): self

Missing function doc comment
Open

    public function setLimitUsers(int $limitUsers): self

Missing function doc comment
Open

    public function getUrlType(): ?bool

Missing function doc comment
Open

    public function setLimitSessions(int $limitSessions): self

Missing function doc comment
Open

    public function getLimitActiveCourses(): ?int

Missing function doc comment
Open

    public function getLimitUsers(): ?int

Missing function doc comment
Open

    public function setLimitTeachers(int $limitTeachers): self

Missing function doc comment
Open

    public function setLimitDiskSpace(int $limitDiskSpace): self

Missing function doc comment
Open

    public function getResourceIdentifier(): int

Missing function doc comment
Open

    public function removeColorTheme(AccessUrlRelColorTheme $colorTheme): static

Missing function doc comment
Open

    public function setUrlType(bool $urlType): self

Missing function doc comment
Open

    public function getLft(): int

Missing function doc comment
Open

    public function getRoot(): ?self

Missing function doc comment
Open

    public function setResourceName(string $name): self

Missing function doc comment
Open

    public function getColorThemeByTheme(ColorTheme $theme): ?AccessUrlRelColorTheme

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

    public function removeColorTheme(AccessUrlRelColorTheme $colorTheme): static

Missing function doc comment
Open

    public function getRgt(): int

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

    public function addColorTheme(AccessUrlRelColorTheme $colorTheme): static

Missing function doc comment
Open

    public function getLvl(): int

Missing function doc comment
Open

    public function getActiveColorTheme(): ?AccessUrlRelColorTheme

Missing function doc comment
Open

    public function addUser(User $user): self

Missing function doc comment
Open

    public function hasUser(User $user): bool

Missing function doc comment
Open

    public function getId(): ?int

Missing function doc comment
Open

    public function getResourceName(): string

Missing function doc comment
Open

    public function addColorTheme(AccessUrlRelColorTheme $colorTheme): static

Line indented incorrectly; expected 8 spaces, found 4
Open

    public const DEFAULT_ACCESS_URL = 'http://localhost/';

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $users;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?AccessUrl $parent = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?DateTime $tms;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitCourses = null;

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

        $this->description = '';

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

        $this->sessionCategories = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setCreatedBy(int $createdBy): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $createdBy;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __construct()

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

)]

Line indented incorrectly; expected 8 spaces, found 4
Open

    private Collection $colorThemes;

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

        $this->createdBy = 1;

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

        $this->tms = $tms;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $courseCategory;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $rgt;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitDiskSpace = null;

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

        $this->users = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function __toString(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setDescription(string $description): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->active;

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

        return $this;

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

        $this->active = $active;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCreatedBy(): int

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->description;

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

        $this->createdBy = $createdBy;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected int $lft;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected string $url;

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

        $this->tms = new DateTime();

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

        $this->colorThemes = new ArrayCollection();

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

        $this->description = $description;

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

        return $this;

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 at least 12 spaces, found 8
Open

        $this->url = $url;

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

        return $this->createdBy;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getTms(): ?DateTime

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

{

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $description = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitActiveCourses = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitUsers = null;

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 getDescription(): ?string

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

        return $this->tms;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $courses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $sessions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitTeachers = null;

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

        return $this->getUrl();

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;

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

    protected Collection $settings;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $sessionCategories;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?bool $urlType = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $limitSessions = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?string $email = null;

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

        $this->children = new ArrayCollection();

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setTms(DateTime $tms): self

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?AccessUrl $root = null;

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

        $this->settings = new ArrayCollection();

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

    protected int $lvl;

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 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 getActive(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setActive(int $active): 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 4 spaces, found 0
Open

class AccessUrl extends AbstractResource implements ResourceInterface, Stringable

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected ?int $id = null;

Line indented incorrectly; expected 8 spaces, found 4
Open

    protected Collection $children;

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

        $this->courseCategory = 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 8 spaces, found 4
Open

    protected int $active;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setUrlType(bool $urlType): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLimitDiskSpace(): ?int

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

        return $this->limitDiskSpace;

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

        return $this->limitCourses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getCourses(): Collection

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function hasCourse(Course $course): bool

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSessionCategories(): Collection

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;

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;

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

        $this->limitCourses = $limitCourses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setSessionCategories(Collection $sessionCategories): self

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLimitTeachers(): ?int

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

        return $this;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLimitCourses(): ?int

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->hasCourse($course)) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

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

        return $this->sessionCategories;

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLimitUsers(): ?int

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->settings = $settings;

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 false;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getChildren(): Collection

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

        return $this->children;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->urlType = $urlType;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

            $this->courses->add($urlRelCourse);

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->courses->count() > 0) {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->limitActiveCourses = $limitActiveCourses;

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

        $this->limitUsers = $limitUsers;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getEmail(): ?string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->sessions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUrlType(): ?bool

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLimitActiveCourses(): ?int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setLimitUsers(int $limitUsers): self

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

        return $this->limitTeachers;

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

    {

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

        $this->limitTeachers = $limitTeachers;

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

    {

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 at least 16 spaces, found 12
Open

            $found = $this->courses->matching($criteria);

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 8 spaces, found 4
Open

    public function setLimitCourses(int $limitCourses): self

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

        return $this;

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 16 spaces, found 12
Open

            $urlRelCourse = (new AccessUrlRelCourse())->setUrl($this);

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

        return $this;

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 8 spaces, found 4
Open

    public function setLimitTeachers(int $limitTeachers): 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 8 spaces, found 4
Open

    public function setSettings(Collection $settings): self

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addCourse(Course $course): self

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

            $course->addUrls($urlRelCourse);

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSessions(): Collection

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 setLimitDiskSpace(int $limitDiskSpace): self

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

    {

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

        return $this->courses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

            return $found->count() > 0;

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

        return $this->urlType;

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

        return $this->limitSessions;

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

        $this->limitDiskSpace = $limitDiskSpace;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

            $criteria = Criteria::create()->where(Criteria::expr()->eq('course', $course));

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

        $this->sessionCategories = $sessionCategories;

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 getLimitSessions(): ?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->limitUsers;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $this->email = $email;

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

        return $this->settings;

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

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getUsers(): Collection

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setLimitActiveCourses(int $limitActiveCourses): self

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 12 spaces, found 8
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->limitActiveCourses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setLimitSessions(int $limitSessions): self

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getSettings(): Collection

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

        $this->courses = $courses;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function addUser(User $user): self

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

            return $relation->count() > 0;

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 16 spaces, found 12
Open

            }

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

        return $this->root;

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 $url['host'];

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

        $criteria = Criteria::create();

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

        $criteria->where(

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

            $this->users->add($accessUrlRelUser);

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

            $relation = $this->users->matching($criteria);

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

    {

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

        return $this->lft;

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

    {

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

        $url = $this->getUrl();

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

            $colorTheme->setUrl($this);

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

    {

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

        $this->limitSessions = $limitSessions;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        return $this->email;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function setEmail(string $email): self

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 hasUser(User $user): bool

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getRoot(): ?self

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

        return $this->setUrl($name);

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->hasUser($user)) {

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

        $criteria->where(

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

        return $this->colorThemes;

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 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 8 spaces, found 4
Open

    public function getCourseCategory(): Collection

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

        return $this->courseCategory;

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

        );

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getColorThemeByTheme(ColorTheme $theme): ?AccessUrlRelColorTheme

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

        return $this->colorThemes->matching($criteria)->first() ?: null;

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 getColorThemes(): Collection

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

        return $this;

Line indented incorrectly; expected 16 spaces, found 12
Open

            if ($colorTheme->getUrl() === $this) {

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

            $criteria = Criteria::create()->where(Criteria::expr()->eq('user', $user));

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

        $url = parse_url($url);

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

    {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if ($this->colorThemes->removeElement($colorTheme)) {

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

        return $this;

Line indented incorrectly; expected 4 spaces, found 0
Open

}

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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 setResourceName(string $name): self

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

        return $this;

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (0 !== $this->users->count()) {

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

        return $this->rgt;

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

                $colorTheme->setUrl(null);

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 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

    public function getResourceName(): string

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!$this->colorThemes->contains($colorTheme)) {

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

            $this->colorThemes->add($colorTheme);

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

        $criteria = Criteria::create();

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 getLft(): int

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 false;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getActiveColorTheme(): ?AccessUrlRelColorTheme

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

        return $this->colorThemes->matching($criteria)->first() ?: null;

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 addColorTheme(AccessUrlRelColorTheme $colorTheme): static

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function removeColorTheme(AccessUrlRelColorTheme $colorTheme): static

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

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

        );

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getLvl(): int

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 16 spaces, found 12
Open

            $accessUrlRelUser = (new AccessUrlRelUser())->setUser($user)->setUrl($this);

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

        return $this->lvl;

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getRgt(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    public function getResourceIdentifier(): int

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

There are no issues that match your filters.

Category
Status