code style and dispatchTyped

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-12-02 16:15:02 +01:00
parent 88f35d52d2
commit aef1cdba03
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
3 changed files with 1 additions and 4 deletions

View File

@ -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);
}
}
/**

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace OCP\Files\Cache;
use OC\Files\Cache\AbstractCacheEvent;
/**

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace OCP\Files\Cache;
use OC\Files\Cache\AbstractCacheEvent;
/**