src/CoreBundle/Entity/SessionRelCourse.php
You must use "/**" style comments for a class comment Open
Open
class SessionRelCourse
- 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\ManyToOne(targetEntity: Session::class, cascade: ['persist'], inversedBy: 'courses')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Index(columns: ['c_id'], name: 'idx_session_rel_course_course_id')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Course::class, cascade: ['persist'], inversedBy: 'sessions')]
- 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\Id]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'position', type: 'integer', nullable: false)]
- 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
#[ApiResource(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session_rel_course:read', 'session_rel_course:write'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'session_id', referencedColumnName: 'id', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'session_rel_course')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[UniqueEntity(fields: ['course', 'session'], message: 'The course is already registered in this session.')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['session_rel_course:read', 'session_rel_course:write', 'session:read', 'user_subscriptions:sessions'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'c_id', referencedColumnName: 'id', nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function setCourse(Course $course): self
- Exclude checks
Missing function doc comment Open
Open
public function setPosition(int $position): void
- Exclude checks
Missing function doc comment Open
Open
public function getNbrUsers(): int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\UniqueConstraint(name: 'course_session_unique', columns: ['session_id', 'c_id'])]
- Exclude checks
Missing function doc comment Open
Open
public function setNbrUsers(int $nbrUsers): self
- Exclude checks
Missing function doc comment Open
Open
public function getPosition(): int
- Exclude checks
Missing function doc comment Open
Open
public function setSession(Session $session): self
- Exclude checks
Missing function doc comment Open
Open
public function getCourse(): Course
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'nbr_users', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function getId(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function getSession(): Session
- 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
protected ?int $id = 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
protected ?Session $session = null;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected ?Course $course = null;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrUsers = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setCourse(Course $course): self
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setSession(Session $session): self
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
class SessionRelCourse
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
protected int $nbrUsers;
- 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 12 spaces, found 8 Open
Open
$this->course = $course;
- 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 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 12 spaces, found 8 Open
Open
return $this->position;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getCourse(): Course
- 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 at least 12 spaces, found 8 Open
Open
$this->position = $position;
- 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 8 spaces, found 4 Open
Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->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 getPosition(): 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 setNbrUsers(int $nbrUsers): 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
protected int $position;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getSession(): Session
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->nbrUsers = $nbrUsers;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function setPosition(int $position): void
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function __construct()
- 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->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 8 spaces, found 4 Open
Open
public function getId(): ?int
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
return $this->session;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
public function getNbrUsers(): 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
}
- 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->session = $session;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
$this->position = 0;
- 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