From 5e8e252a6446c0bb348599ec20772cf8db863c10 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 2 Dec 2020 16:15:02 +0100 Subject: [PATCH] code style and dispatchTyped Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Cache.php | 3 +-- lib/public/Files/Cache/CacheEntryInsertedEvent.php | 1 - lib/public/Files/Cache/CacheEntryUpdatedEvent.php | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 8d5e0f2732f..2bc7fbb9541 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -549,7 +549,7 @@ class Cache implements ICache { $this->removeChildren($entry); } - $this->eventDispatcher->dispatch(CacheEntryRemovedEvent::class, new CacheEntryRemovedEvent($this->storage, $entry->getPath(), $entry->getId(), $this->getNumericStorageId())); + $this->eventDispatcher->dispatchTyped(new CacheEntryRemovedEvent($this->storage, $entry->getPath(), $entry->getId(), $this->getNumericStorageId())); } } @@ -709,7 +709,6 @@ class Cache implements ICache { } else { $this->moveFromCacheFallback($sourceCache, $sourcePath, $targetPath); } - } /** diff --git a/lib/public/Files/Cache/CacheEntryInsertedEvent.php b/lib/public/Files/Cache/CacheEntryInsertedEvent.php index 936cf8c6021..3b7e6ef8b49 100644 --- a/lib/public/Files/Cache/CacheEntryInsertedEvent.php +++ b/lib/public/Files/Cache/CacheEntryInsertedEvent.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCP\Files\Cache; - use OC\Files\Cache\AbstractCacheEvent; /** diff --git a/lib/public/Files/Cache/CacheEntryUpdatedEvent.php b/lib/public/Files/Cache/CacheEntryUpdatedEvent.php index 252a306404d..4966f8fdb4a 100644 --- a/lib/public/Files/Cache/CacheEntryUpdatedEvent.php +++ b/lib/public/Files/Cache/CacheEntryUpdatedEvent.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace OCP\Files\Cache; - use OC\Files\Cache\AbstractCacheEvent; /**