Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2019-03-20 22:53:06 +01:00
parent 782e2b7fdf
commit 0f3ba9b6a8
19 changed files with 109 additions and 139 deletions

View file

@ -38,7 +38,7 @@ class AttachmentType extends StructuralDBElement
* @var ArrayCollection
* @ORM\OneToMany(targetEntity="Attachment", mappedBy="attachement_type")
*/
protected $attachments = null;
protected $attachments;
/**
@ -62,7 +62,7 @@ class AttachmentType extends StructuralDBElement
public function getAttachementsForType() : ArrayCollection
{
// the attribute $this->attachements is used from class "AttachementsContainingDBELement"
if ($this->attachments == null) {
if ($this->attachments === null) {
$this->attachments = new ArrayCollection();
}
@ -76,7 +76,7 @@ class AttachmentType extends StructuralDBElement
*/
public function getIDString(): string
{
return "";
return '';
//return 'AT' . sprintf('%09d', $this->getID());
}
}