forked from mirror/Part-DB.Part-DB-server
Fixed some inspection issues.
This commit is contained in:
parent
782e2b7fdf
commit
0f3ba9b6a8
19 changed files with 109 additions and 139 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue