src/CoreBundle/Entity/Session.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(GroupFilter::class, arguments: ['parameterName' => 'groups'])]
- 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\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:read'])]
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class Session implements ResourceWithAccessUrlInterface, Stringable
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'id', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OrderBy(['position' => 'ASC'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'visibility', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'promotion_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:read', 'session:write', 'session_rel_user:read', 'user_subscriptions:sessions'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'description', type: 'text', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'show_description', type: 'boolean', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:basic'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'display_start_date', type: 'datetime', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'display_end_date', type: 'datetime', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'image_id', referencedColumnName: 'id', onDelete: 'SET NULL')]
- 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
#[Assert\NotBlank]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'title', type: 'string', length: 150)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'nbr_classes', type: 'integer', unique: false, nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'session')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'nbr_courses', type: 'integer', unique: false, nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'coach_access_end_date', type: 'datetime', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiResource(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(mappedBy: 'session', targetEntity: SkillRelUser::class, cascade: ['persist'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'nbr_users', type: 'integer', unique: false, nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: SessionCategory::class, inversedBy: 'sessions')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\EntityListeners([SessionListener::class])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(OrderFilter::class, properties: ['id', 'title'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'duration', type: 'integer', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'access_end_date', type: 'datetime', unique: false, nullable: true)]
- 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
#[ORM\OneToMany(mappedBy: 'session', targetEntity: ResourceLink::class, cascade: ['remove'], orphanRemoval: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\UniqueConstraint(name: 'title', columns: ['title'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity(repositoryClass: SessionRepository::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(SearchFilter::class, properties: ['title' => 'partial'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'access_start_date', type: 'datetime', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'position', type: 'integer', nullable: false, options: ['default' => 0])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[UniqueEntity('title')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiFilter(PropertyFilter::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Asset::class, cascade: ['remove'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToMany(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:read', 'session:write', 'user_subscriptions:sessions'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['user_subscriptions:sessions', 'session:read', 'session:item:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Promotion::class, cascade: ['persist'], inversedBy: 'sessions')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'coach_access_start_date', type: 'datetime', unique: false, nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['user_subscriptions:sessions'])]
- Exclude checks
Missing function doc comment Open
Open
public function addUserSubscription(SessionRelUser $subscription): void
- Exclude checks
Missing function doc comment Open
Open
public function getShowDescription(): bool
- Exclude checks
Missing function doc comment Open
Open
public function removeCourses(SessionRelCourse $course): void
- Exclude checks
Missing function doc comment Open
Open
public static function getRelationTypeList(): array
- Exclude checks
Missing function doc comment Open
Open
public function getId(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function setUsers(Collection $users): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'notify_boss', type: 'boolean', options: ['default' => false])]
- Exclude checks
Missing function doc comment Open
Open
public function setShowDescription(bool $showDescription): self
- Exclude checks
Missing function doc comment Open
Open
public static function getStatusList(): array
- Exclude checks
Missing function doc comment Open
Open
public function hasCourse(Course $course): bool
- Exclude checks
Missing function doc comment Open
Open
public function __toString(): string
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:basic', 'session:read', 'session:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:basic', 'session:read', 'session:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'status', type: 'integer', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'session_category_id', referencedColumnName: 'id')]
- Exclude checks
Missing function doc comment Open
Open
public function setDuration(int $duration): self
- Exclude checks
Missing function doc comment Open
Open
public function addCourses(SessionRelCourse $course): void
- Exclude checks
Missing function doc comment Open
Open
public function setCourses(ArrayCollection $courses): void
- Exclude checks
Missing function doc comment Open
Open
public function getDuration(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function hasUser(SessionRelUser $subscription): bool
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Missing function doc comment Open
Open
public function getStatus(): int
- Exclude checks
Missing function doc comment Open
Open
public function setNbrUsers(int $nbrUsers): self
- Exclude checks
Missing function doc comment Open
Open
public function getTitle(): string
- Exclude checks
Missing function doc comment Open
Open
public function getNbrUsers(): int
- Exclude checks
Missing function doc comment Open
Open
public function setVisibility(int $visibility): self
- Exclude checks
Missing function doc comment Open
Open
public function getPromotion(): ?Promotion
- Exclude checks
Missing function doc comment Open
Open
public function hasUserCourseSubscription(SessionRelCourseRelUser $subscription): bool
- Exclude checks
Missing function doc comment Open
Open
public function getSessionRelCourseRelUsers(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function setDescription(string $description): self
- Exclude checks
Missing function doc comment Open
Open
public function getNbrClasses(): int
- Exclude checks
Missing function doc comment Open
Open
public function getVisibility(): int
- Exclude checks
Missing function doc comment Open
Open
public function getCourseSubscription(Course $course): ?SessionRelCourse
- Exclude checks
Missing function doc comment Open
Open
public function addSessionRelCourseRelUser(SessionRelCourseRelUser $sessionRelCourseRelUser): void
- Exclude checks
Missing function doc comment Open
Open
public function setNbrCourses(int $nbrCourses): self
- Exclude checks
Missing function doc comment Open
Open
public function setStatus(int $status): self
- Exclude checks
Missing function doc comment Open
Open
public function getNbrCourses(): int
- Exclude checks
Missing function doc comment Open
Open
public function getDescription(): ?string
- Exclude checks
Missing function doc comment Open
Open
public function setNbrClasses(int $nbrClasses): self
- Exclude checks
Missing function doc comment Open
Open
public function setTitle(string $title): self
- Exclude checks
Missing function doc comment Open
Open
public function setSessionRelCourseRelUsers(Collection $sessionRelCourseRelUsers): self
- Exclude checks
Missing function doc comment Open
Open
public function isActiveForCoach(): bool
- Exclude checks
Missing function doc comment Open
Open
public function getAccessEndDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function setCoachAccessStartDate(?DateTime $coachAccessStartDate): self
- Exclude checks
Missing function doc comment Open
Open
public function addUserInSession(int $relationType, User $user): self
- Exclude checks
Missing function doc comment Open
Open
public function removeUserSubscription(SessionRelUser $subscription): self
- Exclude checks
Missing function doc comment Open
Open
public function getDisplayEndDate(): ?DateTime
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelUser $subscription) => $subscription->getUser())
- Exclude checks
Missing function doc comment Open
Open
public function setAccessEndDate(?DateTime $accessEndDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setCategory(?SessionCategory $category): self
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getGeneralCoachesSubscriptions(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function removeUserInSession(int $relationType, User $user): self
- Exclude checks
Missing function doc comment Open
Open
public function hasUserAsGeneralCoach(User $user): bool
- Exclude checks
Missing function doc comment Open
Open
public function addGeneralCoach(User $coach): self
- Exclude checks
Missing function doc comment Open
Open
public function removeGeneralCoach(User $user): self
- Exclude checks
Missing function doc comment Open
Open
public function isActiveForStudent(): bool
- Exclude checks
Missing function doc comment Open
Open
public function setDisplayStartDate(?DateTime $displayStartDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setDisplayEndDate(?DateTime $displayEndDate): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:basic', 'user_subscriptions:sessions'])]
- Exclude checks
Missing function doc comment Open
Open
public function setPromotion(?Promotion $promotion): self
- Exclude checks
Missing function doc comment Open
Open
public function getCategory(): ?SessionCategory
- Exclude checks
Missing function doc comment Open
Open
public function getCoachAccessStartDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function getDisplayStartDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function getAccessStartDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function setAccessStartDate(?DateTime $accessStartDate): self
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($key, $element) => $course->getId() === $element->getCourse()->getId()
- Exclude checks
Missing function doc comment Open
Open
public function getSendSubscriptionNotification(): bool
- Exclude checks
Missing function doc comment Open
Open
public function addAccessUrl(?AccessUrl $url): self
- Exclude checks
Missing function doc comment Open
Open
public function addCourse(Course $course): self
- Exclude checks
Missing function doc comment Open
Open
public function addUrls(AccessUrlRelSession $url): self
- Exclude checks
Missing function doc comment Open
Open
public function setCurrentUrl(AccessUrl $url): self
- Exclude checks
Missing function doc comment Open
Open
public function getCoachAccessEndDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function getPosition(): int
- Exclude checks
Missing function doc comment Open
Open
public function setCoachAccessEndDate(?DateTime $coachAccessEndDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setPosition(int $position): self
- Exclude checks
Missing function doc comment Open
Open
public function getCurrentUrl(): AccessUrl
- Exclude checks
Missing function doc comment Open
Open
public function getSessionRelCourseRelUserInCourse(Course $course): Collection
- Exclude checks
Missing function doc comment Open
Open
public function setSendSubscriptionNotification(bool $sendNotification): self
- Exclude checks
Missing function doc comment Open
Open
public function setUrls(Collection $urls): self
- Exclude checks
Missing function doc comment Open
Open
public function getSessionAdmins(): ReadableCollection
- Exclude checks
Missing function doc comment Open
Open
public function getIssuedSkills(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function hasUserAsSessionAdmin(User $user): bool
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function getCourseCoachesSubscriptions(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function getGeneralAdminsSubscriptions(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function getResourceLinks(): Collection
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelCourseRelUser $subscription) => $subscription->getUser())
- Exclude checks
Missing function doc comment Open
Open
public function getImageUrl(): ?string
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelUser $subscription) => $subscription->getUser())
- Exclude checks
Missing function doc comment Open
Open
public function getSkills(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function addSessionAdmin(User $sessionAdmin): self
- Exclude checks
Missing function doc comment Open
Open
public function hasImage(): bool
- Exclude checks
Declare public methods first,then protected ones and finally private ones Open
Open
public function getCourseCoaches(): Collection
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session:basic', 'user_subscriptions:sessions'])]
- Exclude checks
Missing function doc comment Open
Open
public function setImage(?Asset $asset): self
- Exclude checks
Doc comment for parameter $status does not match actual variable name $user Open
Open
* @param int $status if not set it will check if the user is registered
- Exclude checks
Missing function doc comment Open
Open
public function getUserInCourse(User $user, Course $course, ?int $status = null): Collection
- Exclude checks
Missing function doc comment Open
Open
public function hasStudentInCourse(User $user, Course $course): bool
- Exclude checks
Missing function doc comment Open
Open
public function setImageUrl(?string $imageUrl): self
- Exclude checks
Missing function doc comment Open
Open
public function getImage(): ?Asset
- Exclude checks
Missing function doc comment Open
Open
public function hasCourseCoachInCourse(User $user, ?Course $course = null): bool
- Exclude checks
Missing function doc comment Open
Open
public function isAvailableByDurationForUser(User $user): bool
- Exclude checks
Declare public methods first,then protected ones and finally private ones Open
Open
public function hasCoach(User $user): bool
- Exclude checks
Missing function doc comment Open
Open
public function getClosedOrHiddenCourses(): Collection
- Exclude checks
Missing function doc comment Open
Open
public function setAccessVisibilityByUser(User $user, bool $ignoreVisibilityForAdmins = true): int
- Exclude checks
Missing function doc comment Open
Open
public function getNotifyBoss(): bool
- Exclude checks
Missing function doc comment Open
Open
public function setNotifyBoss(bool $notifyBoss): self
- Exclude checks
Declare public methods first,then protected ones and finally private ones Open
Open
public function setAccessVisibilityByUser(User $user, bool $ignoreVisibilityForAdmins = true): int
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return $this->courses->filter(fn (SessionRelCourse $sessionRelCourse) => \in_array(
- Exclude checks
Missing function doc comment Open
Open
public function getDaysLeftByUser(User $user): int
- Exclude checks
Missing function doc comment Open
Open
public function getAccessVisibility(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const COURSE_COACH = 2;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $resourceLinks;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $nbrCourses;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $coachAccessStartDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Asset $image = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_PROGRESS = 2;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $sessionRelCourseRelUsers;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $nbrUsers;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const DRH = 1;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $urls;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $nbrClasses;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $coachAccessEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $position;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected bool $sendSubscriptionNotification;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
private ?string $imageUrl = null;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const READ_ONLY = 1;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const LIST_ONLY = 5;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_CANCELLED = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_UNKNOWN = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $id = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected AccessUrl $currentUrl;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $accessStartDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const INVISIBLE = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const AVAILABLE = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $users;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Course $currentCourse = null;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?bool $showDescription;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class Session implements ResourceWithAccessUrlInterface, Stringable
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?string $description;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?int $duration = null;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $skills;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STUDENT = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $issuedSkills;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected string $title;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?SessionCategory $category = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const GENERAL_COACH = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const SESSION_ADMIN = 4;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected Collection $courses;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $displayEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const VISIBLE = 2;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_PLANNED = 1;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public const STATUS_FINISHED = 3;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $visibility;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Promotion $promotion = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $displayStartDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->urls = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __toString(): string
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->users->add($subscription);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->accessStartDate = $now;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getShowDescription(): bool
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setShowDescription(bool $showDescription): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addUserSubscription(SessionRelUser $subscription): void
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (0 !== $this->getUsers()->count()) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
return $relation->count() > 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCourses(ArrayCollection $courses): void
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->resourceLinks = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->showDescription = false;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->nbrUsers++;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->id;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrCourses = 0;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->addUserSubscription($user);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->hasUser($subscription)) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->users = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->displayStartDate = $now;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return [
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->showDescription;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->description = '';
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendSubscriptionNotification = false;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->accessEndDate = $now;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->duration = $duration;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->users = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$relation = $this->getCourses()->matching($criteria);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$course->setSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->courses->add($course);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected bool $notifyBoss = false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getDuration(): ?int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUser(SessionRelUser $subscription): bool
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
->andWhere(
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($this->courses as $key => $value) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
private int $accessVisibility = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getTitle();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUsers(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->users;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUsers(Collection $users): self
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($users as $user) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('course', $course));
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->addCourses($course);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($value->getId() === $course->getId()) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->position = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->showDescription = $showDescription;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$subscription->setSession($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
)]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
])]
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?DateTime $accessEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $status;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sessionRelCourseRelUsers = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->coachAccessStartDate = $now;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrClasses = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public static function getRelationTypeList(): array
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addCourses(SessionRelCourse $course): void
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->issuedSkills = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->coachAccessEndDate = $now;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->duration;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $relation->count() > 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCourses(): Collection
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->courses = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($courses as $course) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getId(): ?int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->skills = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->duration = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->visibility = 1;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
$relation = $this->getUsers()->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->courses;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeCourses(SessionRelCourse $course): void
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrUsers = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->displayEndDate = $now;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->category = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
->andWhere(
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (0 !== $this->getCourses()->count()) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->courses = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
unset($this->courses[$key]);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$now = new DateTime();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return [self::STUDENT, self::DRH, self::COURSE_COACH, self::GENERAL_COACH, self::SESSION_ADMIN];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public static function getStatusList(): array
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setDuration(int $duration): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasCourse(Course $course): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->title = $title;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSessionRelCourseRelUsers(): Collection
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
->andWhere(
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('user', $user));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrCourses = $nbrCourses;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->nbrUsers;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getPromotion(): ?Promotion
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getSessionRelCourseRelUsers()->matching($criteria);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (null !== $status) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->status;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setTitle(string $title): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sessionRelCourseRelUsers = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->nbrCourses;
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 20 Open
Open
$sessionCourse->setNbrUsers($sessionCourse->getNbrUsers() - 1);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setStatus(int $status): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->status = $status;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->courses->matching($criteria)->current();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getNbrUsers(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setNbrUsers(int $nbrUsers): self
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->addSessionRelCourseRelUser($item);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addSessionRelCourseRelUser(SessionRelCourseRelUser $sessionRelCourseRelUser): void
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setNbrClasses(int $nbrClasses): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 20 Open
Open
$sessionCourse = $this->getCourseSubscription($course);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAllUsersFromCourse(int $status): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('status', $status));
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSessionRelCourseRelUsers(Collection $sessionRelCourseRelUsers): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUserCourseSubscription(SessionRelCourseRelUser $subscription): bool
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($this->sessionRelCourseRelUsers as $i => $sessionRelUser) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSessionRelCourseByUser(User $user, ?int $status = null): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sessionRelCourseRelUsers->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getDescription(): ?string
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->nbrClasses;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($sessionRelUser->getCourse()->getId() === $course->getId()
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCourseSubscription(Course $course): ?SessionRelCourse
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
return $relation->count() > 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setDescription(string $description): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->description = $description;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getNbrCourses(): int
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setNbrCourses(int $nbrCourses): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getTitle(): string
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
$relation = $this->getSessionRelCourseRelUsers()->matching($criteria);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->visibility = $visibility;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getStatus(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sessionRelCourseRelUsers;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
->andWhere(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getNbrClasses(): int
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeUserCourseSubscription(User $user, Course $course): void
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->sessionRelCourseRelUsers->add($sessionRelCourseRelUser);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$this->hasUserCourseSubscription($sessionRelCourseRelUser)) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 16 Open
Open
unset($this->sessionRelCourseRelUsers[$i]);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('course', $course));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrUsers = $nbrUsers;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrClasses = $nbrClasses;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setVisibility(int $visibility): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->title;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria->andWhere(Criteria::expr()->eq('status', $status));
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 16 Open
Open
if (self::STUDENT === $this->sessionRelCourseRelUsers[$i]->getStatus()) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (0 !== $this->getSessionRelCourseRelUsers()->count()) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->description;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getVisibility(): int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->visibility;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 12 Open
Open
) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($sessionRelCourseRelUsers as $item) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$sessionRelCourseRelUser->setSession($this);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$subscription->setSession(null);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$start = $this->getAccessStartDate();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->users->matching($criteria)->count() > 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$end = $this->getCoachAccessEndDate();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->promotion = $promotion;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$start = $this->getCoachAccessStartDate();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getDisplayStartDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getGeneralCoachesSubscriptions(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('relationType', self::GENERAL_COACH));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($this->hasUser($subscription)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAccessEndDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->accessEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setPromotion(?Promotion $promotion): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->users->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCategory(): ?SessionCategory
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function isActiveForCoach(): bool
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->displayEndDate = $displayEndDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addUserSubscription($sessionRelUser);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->compareDates($start, $end);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUserAsGeneralCoach(User $user): bool
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function isActive(): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$end = $this->getAccessEndDate();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getDisplayEndDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->displayEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setDisplayEndDate(?DateTime $displayEndDate): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getGeneralCoachesSubscriptions()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addGeneralCoach(User $coach): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeUserInSession(int $relationType, User $user): self
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($subscriptions as $subscription) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->accessStartDate = $accessStartDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->compareDates($start, $end);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->accessEndDate = $accessEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->category = $category;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->displayStartDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setDisplayStartDate(?DateTime $displayStartDate): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addUserInSession(int $relationType, User $user): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$sessionRelUser = (new SessionRelUser())->setUser($user)->setRelationType($relationType);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$subscriptions = $this->users->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->category;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCategory(?SessionCategory $category): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeGeneralCoach(User $user): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->removeUserInSession(self::GENERAL_COACH, $user);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setAccessEndDate(?DateTime $accessEndDate): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->promotion;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->removeUserSubscription($subscription);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $now > $this->getAccessStartDate();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCoachAccessStartDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCoachAccessStartDate(?DateTime $coachAccessStartDate): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getGeneralCoaches(): Collection
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeUserSubscription(SessionRelUser $subscription): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAccessStartDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setAccessStartDate(?DateTime $accessStartDate): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->addUserInSession(self::GENERAL_COACH, $coach);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->nbrUsers--;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->coachAccessStartDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->displayStartDate = $displayStartDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelUser $subscription) => $subscription->getUser())
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->users->removeElement($subscription);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$now = new DateTime('now');
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->accessStartDate;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function isActiveForStudent(): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function isCurrentlyAccessible(): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return true;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->currentCourse = $course;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->urls;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->coachAccessEndDate = $coachAccessEndDate;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->issuedSkills;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setUrls(Collection $urls): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addUserInCourse(int $status, User $user, Course $course): SessionRelCourseRelUser
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSessionRelCourseRelUsersByStatus(Course $course, int $status): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUrls(): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getPosition(): int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$sessionRelCourse = (new SessionRelCourse())->setCourse($course);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$urlList = $this->getUrls();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
break;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->coachAccessEndDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->setNbrCourses(\count($this->courses));
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$sessionCourse = $this->getCourseSubscription($course);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sessionRelCourseRelUsers->matching($criteria);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addUrls($accessUrlRelSession);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCoachAccessEndDate(): ?DateTime
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function removeCourse(Course $course): bool
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$relCourse = $this->getCourseSubscription($course);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCurrentCourse(): ?Course
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSendSubscriptionNotification(): bool
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
$this->currentUrl = $url;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addAccessUrl(?AccessUrl $url): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$accessUrlRelSession = new AccessUrlRelSession();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$accessUrlRelSession->setUrl($url);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->currentCourse;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$accessUrlRelSession->setSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$now = new DateTime();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->sendSubscriptionNotification = $sendNotification;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->urls = new ArrayCollection();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSessionAdmins(): ReadableCollection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$sessionCourse->setNbrUsers($sessionCourse->getNbrUsers() + 1);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $userRelCourseRelSession;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCurrentCourse(Course $course): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->currentUrl;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addCourse(Course $course): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addCourses($sessionRelCourse);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->addSessionRelCourseRelUser($userRelCourseRelSession);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->coachAccessStartDate = $coachAccessStartDate;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCoachAccessEndDate(?DateTime $coachAccessEndDate): self
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (self::STUDENT === $status) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$exists = $this->getCourses()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (null !== $relCourse) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSendSubscriptionNotification(bool $sendNotification): self
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getIssuedSkills(): Collection
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return (!$this->accessStartDate || $now >= $this->accessStartDate) && (!$this->accessEndDate || $now <= $this->accessEndDate);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($exists) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setPosition(int $position): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->position = $position;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($key, $element) => $course->getId() === $element->getCourse()->getId()
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sendSubscriptionNotification;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSessionRelCourseRelUserInCourse(Course $course): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCurrentUrl(AccessUrl $url): self
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($urlList as $item) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->addUrls($url);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$url->setSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->urls->add($url);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->position;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->courses->removeElement($relCourse);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$userRelCourseRelSession = (new SessionRelCourseRelUser())
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->sessionRelCourseRelUsers->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCurrentUrl(): AccessUrl
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($item->getUrl()->getId() === $url->getId()) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($urls as $url) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addUrls(AccessUrlRelSession $url): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$filename = $image->getTitle();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getSessionRelCourseRelUsers()->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$firstAccess = $trackECourseAccess
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->image = $asset;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!empty($start) && !empty($end)) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!empty($start)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCourseCoachesSubscriptions(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$trackECourseAccess = $user->getFirstAccessToSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()->where(Criteria::expr()->eq('relationType', self::SESSION_ADMIN));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->addUserInSession(self::SESSION_ADMIN, $sessionAdmin);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $relation->count() > 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($this->courses as $sessionCourse) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $now >= $start;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->users->matching($criteria)->count() > 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasCoachInCourseList(User $user): bool
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$relation = $this->getUserInCourse($user, $course, $status);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($this->hasStudentInCourse($user, $sessionCourse->getCourse())) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getCourseCoachesSubscriptions()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getGeneralAdminsSubscriptions(): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->resourceLinks;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->imageUrl = $imageUrl;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return !empty($end) && $now <= $end;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getAllUsersFromCourse(self::COURSE_COACH);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function isAvailableByDurationForUser(User $user): bool
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUserAsSessionAdmin(User $user): bool
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function addSessionAdmin(User $sessionAdmin): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return null !== $this->image;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSkills(): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setImage(?Asset $asset): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setImageUrl(?string $imageUrl): self
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($image instanceof Asset) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return \sprintf('/assets/%s/%s/%s', $category, $filename, $filename);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return null;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
return true;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (null === $course) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->hasUserInCourse($user, $course, self::STUDENT);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected function compareDates(?DateTime $start, ?DateTime $end = null): bool
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->image;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
foreach ($this->courses as $sessionCourse) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$criteria->andWhere(Criteria::expr()->eq('status', $status));
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasStudentInCourseList(User $user): bool
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCourseCoaches(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->getGeneralAdminsSubscriptions()
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$criteria = Criteria::create()
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getImage(): ?Asset
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getImageUrl(): ?string
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasUserInCourse(User $user, Course $course, ?int $status = null): bool
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
return true;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelCourseRelUser $subscription) => $subscription->getUser())
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->users->matching($criteria);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasImage(): bool
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$image = $this->getImage();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasCourseCoachInCourse(User $user, ?Course $course = null): bool
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getUserInCourse(User $user, Course $course, ?int $status = null): Collection
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (null !== $status) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return false;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasStudentInCourse(User $user, Course $course): bool
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$now = new DateTime('now');
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
->map(fn (SessionRelUser $subscription) => $subscription->getUser())
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$category = $image->getCategory();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->hasUserInCourse($user, $course, self::COURSE_COACH);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $now >= $start && $now <= $end;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return true;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$userDuration = $userDurationData
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->skills;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($this->hasCourseCoachInCourse($user, $sessionCourse->getCourse())) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$duration = $this->duration * 24 * 60 * 60;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (0 === $user->getTrackECourseAccess()->count()) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$userDurationData = $user->getSubscriptionToSession($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getResourceLinks(): Collection
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$userIsCoach = $this->hasCoach($user);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$userIsCoach && $this->accessStartDate && $now < $this->accessStartDate) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getClosedOrHiddenCourses(): Collection
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$userDuration = $userSessionSubscription
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->hasUserAsGeneralCoach($user) || $this->hasCoachInCourseList($user);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getDaysLeftByUser(User $user): int
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $duration;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return (int) round(($endDateInSeconds - $currentTime) / 60 / 60 / 24);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$duration = $this->getDuration() * 24 * 60 * 60;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->accessVisibility = self::AVAILABLE;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
} elseif (!$this->getAccessStartDate() && !$this->getAccessEndDate()) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$currentTime = time();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (!$courseAccess) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$currentTime = time();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$userSessionSubscription = $user->getSubscriptionToSession($this);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function hasCoach(User $user): bool
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($sessionEndDate) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setNotifyBoss(bool $notifyBoss): self
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->notifyBoss = $notifyBoss;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
return self::AVAILABLE;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $now <= $sessionEndDate ? self::AVAILABLE : $this->visibility;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
throw new LogicException('Access visibility by user is not set');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$courseAccess = $user->getFirstAccessToSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->accessVisibility;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$duration += $userSessionSubscription->getDuration();
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$totalDuration = $firstAccess + $duration + $userDuration;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return $totalDuration > $currentTime ? self::AVAILABLE : $this->visibility;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
return self::LIST_ONLY;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $totalDuration > $currentTime;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if ($this->hasCoach($user)) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$firstAccess = $courseAccess->getLoginCourseDate()->getTimestamp();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (($user->isAdmin() || $user->isSuperAdmin()) && $ignoreVisibilityForAdmins) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getNotifyBoss(): bool
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$totalDuration = $firstAccess + $duration + $userDuration;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return self::AVAILABLE;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (0 === $this->accessVisibility) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->courses->filter(fn (SessionRelCourse $sessionRelCourse) => \in_array(
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($this->getDuration() > 0) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$closedVisibilities = [
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if ($userSessionSubscription) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 16 Open
Open
return self::AVAILABLE;
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return self::AVAILABLE;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->notifyBoss;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$duration = $this->duration;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->accessVisibility = $this->getAccessVisibilityByDuration($user);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$courseAccess = $user->getFirstAccessToSession($this);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$currentTime = time();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
private function getAccessVisibilityByDuration(User $user): int
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$now = new DateTime();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$endDateInSeconds = $courseAccess->getLoginCourseDate()->getTimestamp() + $duration * 24 * 60 * 60;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 12 Open
Open
if (!$courseAccess) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
private function getAcessVisibilityByDates(User $user): int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$sessionEndDate = $userIsCoach && $this->coachAccessEndDate
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setAccessVisibilityByUser(User $user, bool $ignoreVisibilityForAdmins = true): int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->accessVisibility;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$userSessionSubscription = $user->getSubscriptionToSession($this);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$this->accessVisibility = $this->getAcessVisibilityByDates($user);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getAccessVisibility(): int
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
return $this->courses->filter(fn (SessionRelCourse $sessionRelCourse) => \in_array(
- Exclude checks