code style and dispatchTyped

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/24113/head
Robin Appelman 5 years ago
parent 88f35d52d2
commit aef1cdba03
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 3
      lib/private/Files/Cache/Cache.php
  2. 1
      lib/public/Files/Cache/CacheEntryInsertedEvent.php
  3. 1
      lib/public/Files/Cache/CacheEntryUpdatedEvent.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);
}
}
/**

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

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

Loading…
Cancel
Save