src/CourseBundle/Entity/CThematicAdvance.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'done_advance', type: 'boolean', nullable: false)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Id]
- Exclude checks
Missing function doc comment Open
Open
public function setContent(string $content): self
- Exclude checks
Missing function doc comment Open
Open
public function getRoom(): ?Room
- Exclude checks
Missing function doc comment Open
Open
public function setRoom(Room $room): self
- Exclude checks
Missing function doc comment Open
Open
public function setDuration(int $duration): self
- Exclude checks
Missing function doc comment Open
Open
public function getIid(): ?int
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'iid', type: 'integer')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'thematic_id', referencedColumnName: 'iid')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: CAttendance::class)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'start_date', type: 'datetime', nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function getThematic(): CThematic
- Exclude checks
Missing function doc comment Open
Open
public function getAttendance(): ?CAttendance
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class CThematicAdvance implements Stringable // extends AbstractResource implements ResourceInterface
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: CThematic::class, inversedBy: 'advances')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'duration', type: 'integer', nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'content', type: 'text', nullable: true)]
- Exclude checks
Missing function doc comment Open
Open
public function setStartDate(DateTime $startDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setThematic(CThematic $thematic): self
- 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
#[ORM\JoinColumn(name: 'room_id', referencedColumnName: 'id')]
- 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
#[ORM\Table(name: 'c_thematic_advance')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'attendance_id', referencedColumnName: 'iid', onDelete: 'CASCADE')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\ManyToOne(targetEntity: Room::class)]
- Exclude checks
Missing function doc comment Open
Open
public function setAttendance(CAttendance $attendance): self
- Exclude checks
Missing function doc comment Open
Open
public function setDoneAdvance(bool $doneAdvance): self
- Exclude checks
The 'getDoneAdvance()' method which returns a boolean should be named 'is...()' or 'has...()' Open
Open
public function getDoneAdvance()
{
return $this->doneAdvance;
}
- Read upRead up
- Exclude checks
BooleanGetMethodName
Since: 0.2
Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.
Example
class Foo {
/**
* @return boolean
*/
public function getFoo() {} // bad
/**
* @return bool
*/
public function isFoo(); // ok
/**
* @return boolean
*/
public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}