diff options
author | Robin Appelman <robin@icewind.nl> | 2020-12-02 16:15:02 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-12-02 16:15:02 +0100 |
commit | aef1cdba03319e1958f284f56acf183051470ad3 (patch) | |
tree | 8dbcd5070a7410b4b07a8b0e2f9bb51bdf4393e4 /lib | |
parent | 88f35d52d2baf6421725ce5f2a40331afe13f1de (diff) | |
download | nextcloud-server-aef1cdba03319e1958f284f56acf183051470ad3.tar.gz nextcloud-server-aef1cdba03319e1958f284f56acf183051470ad3.zip |
code style and dispatchTyped
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 3 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheEntryInsertedEvent.php | 1 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheEntryUpdatedEvent.php | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 83b81d284c3..be44d461933 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())); } } @@ -705,7 +705,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; /** |