mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-06 00:14:36 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -99,6 +99,7 @@ class AttachmentDeleteListener
|
|||
|
||||
/**
|
||||
* Ensure that attachments are not used in preview, so that they can be deleted (without integrity violation).
|
||||
*
|
||||
* @ORM\PreRemove()
|
||||
*/
|
||||
public function preRemoveHandler(Attachment $attachment, LifecycleEventArgs $event): void
|
||||
|
@ -106,7 +107,7 @@ class AttachmentDeleteListener
|
|||
//Ensure that the attachment that will be deleted, is not used as preview picture anymore...
|
||||
$attachment_holder = $attachment->getElement();
|
||||
|
||||
if ($attachment_holder === null) {
|
||||
if (null === $attachment_holder) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue