src/CourseBundle/Entity/CAnnouncement.php
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 getIid(): ?int
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class CAnnouncement extends AbstractResource implements ResourceInterface, Stringable
- 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\Column(name: 'end_date', type: 'date', nullable: true)]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'title', type: 'text', nullable: false)]
- Exclude checks
Missing function doc comment Open
Open
public function setTitle(string $title): self
- Exclude checks
Missing function doc comment Open
Open
public function addAttachment(CAnnouncementAttachment $attachment): static
- Exclude checks
Missing function doc comment Open
Open
public function setResourceName(string $name): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Entity(repositoryClass: CAnnouncementRepository::class)]
- Exclude checks
Missing function doc comment Open
Open
public function getContent(): ?string
- 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
#[ORM\OneToMany(mappedBy: 'announcement', targetEntity: CAnnouncementAttachment::class, cascade: ['persist'])]
- Exclude checks
Missing function doc comment Open
Open
public function getEndDate(): ?DateTime
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Missing function doc comment Open
Open
public function setContent(string $content): self
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function removeAttachment(CAnnouncementAttachment $attachment): static
- Exclude checks
Missing function doc comment Open
Open
public function getResourceIdentifier(): int
- Exclude checks
Missing function doc comment Open
Open
public function getResourceName(): string
- Exclude checks
Missing function doc comment Open
Open
public function getTitle(): string
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'iid', type: 'integer')]
- Exclude checks
Missing function doc comment Open
Open
public function setEndDate(?DateTime $endDate): self
- Exclude checks
Missing function doc comment Open
Open
public function setEmailSent(bool $emailSent): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Table(name: 'c_announcement')]
- Exclude checks
Missing function doc comment Open
Open
public function __toString(): string
- Exclude checks
Missing function doc comment Open
Open
public function removeAttachment(CAnnouncementAttachment $attachment): static
- 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\GeneratedValue]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\Column(name: 'email_sent', type: 'boolean', nullable: true)]
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function addAttachment(CAnnouncementAttachment $attachment): static
- Exclude checks
The 'getEmailSent()' method which returns a boolean should be named 'is...()' or 'has...()' Open
Open
public function getEmailSent()
{
return $this->emailSent;
}
- 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
}