-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add comment in SyncLivePhotosListener #41924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| $this->handleDeletion($event, $peerFile); | ||
| } elseif ($event instanceof CacheEntryRemovedEvent) { | ||
| $peerFile->delete(); | ||
| } elseif ($event instanceof BeforeNodeRestoredEvent) { |
Check failure
Code scanning / Psalm
RedundantCondition
| if (!str_ends_with($targetName, ".".$sourceExtension)) { | ||
| $event->abortOperation(new NotPermittedException("Cannot change the extension of a live photo")); | ||
| } | ||
| $this->handleMove($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion
| } | ||
| $this->handleMove($event, $peerFile); | ||
| } elseif ($event instanceof BeforeNodeDeletedEvent) { | ||
| $this->handleDeletion($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion
| } elseif ($event instanceof CacheEntryRemovedEvent) { | ||
| $peerFile->delete(); | ||
| } elseif ($event instanceof BeforeNodeRestoredEvent) { | ||
| $this->handleRestore($event, $peerFile); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion
| $event->abortOperation(new NotPermittedException("Cannot restore the video part of a live photo")); | ||
| } | ||
| } else { | ||
| $user = $this->userSession->getUser(); |
Check notice
Code scanning / Psalm
PossiblyNullReference
Signed-off-by: Louis Chemineau <[email protected]>
a80f5f4 to
e6bc34c
Compare
|
/backport to stable28 |
No description provided.