Skip to content

Commit

Permalink
Merge pull request #25392 from nextcloud/imountpoint-ocp-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Oct 22, 2021
2 parents 3b06b47 + e673ec0 commit 6b099ec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
5 changes: 0 additions & 5 deletions apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,6 @@ public function getItemType(): string {
return $this->superShare->getNodeType();
}

/**
* @param string $path
* @param null $storage
* @return Cache
*/
public function getCache($path = '', $storage = null) {
if ($this->cache) {
return $this->cache;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface Storage extends \OCP\Files\Storage {
* get a cache instance for the storage
*
* @param string $path
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
* @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null);
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public function hasUpdated($path, $time) {
* get a cache instance for the storage
*
* @param string $path
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
* @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function hasUpdated($path, $time) {
* get a cache instance for the storage
*
* @param string $path
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
* @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/Mount/IMountPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setMountPoint($mountPoint);
/**
* Get the storage that is mounted
*
* @return \OC\Files\Storage\Storage|null
* @return \OCP\Files\Storage\IStorage|null
* @since 8.0.0
*/
public function getStorage();
Expand Down
4 changes: 3 additions & 1 deletion lib/public/Files/Storage/IStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,12 @@ public function setAvailability($isAvailable);
public function getOwner($path);

/**
* @param string $path
* @param IStorage|null $storage
* @return ICache
* @since 9.0.0
*/
public function getCache();
public function getCache($path = '', $storage = null);

/**
* @return IPropagator
Expand Down

0 comments on commit 6b099ec

Please sign in to comment.