Skip to content

Commit

Permalink
code style and dispatchTyped
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Dec 2, 2020
1 parent 88f35d5 commit aef1cdb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ public function remove($file) {
$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()));
}
}

Expand Down Expand Up @@ -705,7 +705,6 @@ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
} else {
$this->moveFromCacheFallback($sourceCache, $sourcePath, $targetPath);
}

}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/public/Files/Cache/CacheEntryInsertedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

namespace OCP\Files\Cache;


use OC\Files\Cache\AbstractCacheEvent;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/public/Files/Cache/CacheEntryUpdatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

namespace OCP\Files\Cache;


use OC\Files\Cache\AbstractCacheEvent;

/**
Expand Down

0 comments on commit aef1cdb

Please sign in to comment.