Skip to content

Commit

Permalink
lint: fix php
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Nov 16, 2024
1 parent 388f50b commit ff90f84
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/Exif.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,13 @@ public static function setFileExif(File $file, array $data): void
$file->putContent(fopen($path, 'r')); // closes the handler
}

// dispatch NodeWrittenEvent to trigger processing by other apps
try {
$eventDispatcher = \OCP\Server::get(IEventDispatcher::class);
$eventDispatcher->dispatchTyped(new NodeWrittenEvent($file));
} catch (\Exception) {}
// Dispatch NodeWrittenEvent to trigger processing by other apps
try {
$eventDispatcher = \OCP\Server::get(IEventDispatcher::class);
$eventDispatcher->dispatchTyped(new NodeWrittenEvent($file));
} catch (\Exception) {
// Not our problem
}

// Touch the file, triggering a reprocess through the hook
$file->touch();
Expand Down

0 comments on commit ff90f84

Please sign in to comment.