@@ -110,6 +110,9 @@ |
||
| 110 | 110 | return parent::moveFromCache($sourceCache, $sourcePath, $targetPath); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | + /** |
|
| 114 | + * @param ICacheEntry $entry |
|
| 115 | + */ |
|
| 113 | 116 | protected function formatCacheEntry($entry) { |
| 114 | 117 | $path = isset($entry['path']) ? $entry['path'] : ''; |
| 115 | 118 | $entry = parent::formatCacheEntry($entry); |
@@ -36,7 +36,6 @@ |
||
| 36 | 36 | use OCA\Files_Sharing\ISharedStorage; |
| 37 | 37 | use OCP\Constants; |
| 38 | 38 | use OCP\Files\Cache\ICacheEntry; |
| 39 | -use OCP\Files\Storage\IStorage; |
|
| 40 | 39 | use OCP\Lock\ILockingProvider; |
| 41 | 40 | |
| 42 | 41 | /** |
@@ -194,6 +194,9 @@ |
||
| 194 | 194 | return $this->cache->getStatus($this->getSourcePath($file)); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | + /** |
|
| 198 | + * @param ICacheEntry[] $results |
|
| 199 | + */ |
|
| 197 | 200 | private function formatSearchResults($results) { |
| 198 | 201 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
| 199 | 202 | $results = array_values($results); |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | namespace OCA\Files_Sharing; |
| 33 | 33 | |
| 34 | 34 | use OC\Files\Filesystem; |
| 35 | -use OC\Files\Cache\FailedCache; |
|
| 36 | 35 | use OC\Files\Storage\FailedStorage; |
| 37 | 36 | use OCP\Constants; |
| 38 | 37 | use OCP\Files\Cache\ICacheEntry; |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | namespace OC\Share20; |
| 25 | 25 | |
| 26 | 26 | use OC\Files\Cache\Cache; |
| 27 | -use OC\Files\Cache\CacheEntry; |
|
| 28 | 27 | use OCP\Files\File; |
| 29 | 28 | use OCP\Files\Folder; |
| 30 | 29 | use OCP\Share\IShareProvider; |