@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OC\Files\Cache\Cache; |
| 25 | 25 | use OCP\Files\IMimeTypeLoader; |
| 26 | 26 | use OCP\IDBConnection; |
| 27 | - |
|
| 28 | 27 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
| 29 | 28 | |
| 30 | 29 | /** |
@@ -154,6 +154,9 @@ discard block |
||
| 154 | 154 | return $resultSet->fetchRow(); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $storageId |
|
| 159 | + */ |
|
| 157 | 160 | private static function unsetCache($storageId) { |
| 158 | 161 | // delete from local cache |
| 159 | 162 | if(self::$localCache !== null) { |
@@ -205,7 +208,7 @@ discard block |
||
| 205 | 208 | /** |
| 206 | 209 | * Get the numeric of the storage with the provided string id |
| 207 | 210 | * |
| 208 | - * @param $storageId |
|
| 211 | + * @param string $storageId |
|
| 209 | 212 | * @return int|null either the numeric storage id or null if the storage id is not knwon |
| 210 | 213 | */ |
| 211 | 214 | public static function getNumericStorageId($storageId) { |
@@ -450,6 +450,9 @@ |
||
| 450 | 450 | return (int)$this->getId($parent); |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | + /** |
|
| 454 | + * @param string $path |
|
| 455 | + */ |
|
| 453 | 456 | private function getParentPath($path) { |
| 454 | 457 | $parent = \dirname($path); |
| 455 | 458 | if ($parent === '.') { |
@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param string $path |
|
| 107 | + */ |
|
| 105 | 108 | protected function getParents($path) { |
| 106 | 109 | $parts = \explode('/', $path); |
| 107 | 110 | $parent = ''; |
@@ -125,6 +128,10 @@ discard block |
||
| 125 | 128 | $this->inBatch = true; |
| 126 | 129 | } |
| 127 | 130 | |
| 131 | + /** |
|
| 132 | + * @param integer $time |
|
| 133 | + * @param integer $sizeDifference |
|
| 134 | + */ |
|
| 128 | 135 | private function addToBatch($internalPath, $time, $sizeDifference) { |
| 129 | 136 | if (!isset($this->batch[$internalPath])) { |
| 130 | 137 | $this->batch[$internalPath] = [ |