@@ -106,6 +106,9 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param string $path |
|
| 111 | + */ |
|
| 109 | 112 | protected function getParents($path) { |
| 110 | 113 | $parts = explode('/', $path); |
| 111 | 114 | $parent = ''; |
@@ -129,6 +132,10 @@ discard block |
||
| 129 | 132 | $this->inBatch = true; |
| 130 | 133 | } |
| 131 | 134 | |
| 135 | + /** |
|
| 136 | + * @param integer $time |
|
| 137 | + * @param integer $sizeDifference |
|
| 138 | + */ |
|
| 132 | 139 | private function addToBatch($internalPath, $time, $sizeDifference) { |
| 133 | 140 | if (!isset($this->batch[$internalPath])) { |
| 134 | 141 | $this->batch[$internalPath] = [ |
@@ -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 | /** |
@@ -22,8 +22,6 @@ |
||
| 22 | 22 | |
| 23 | 23 | namespace OCA\Files\Command; |
| 24 | 24 | |
| 25 | -use Doctrine\DBAL\Platforms\PostgreSqlPlatform; |
|
| 26 | -use Doctrine\DBAL\Platforms\SqlitePlatform; |
|
| 27 | 25 | use OC\Files\Cache\Cache; |
| 28 | 26 | use OCP\IDBConnection; |
| 29 | 27 | use Symfony\Component\Console\Command\Command; |
@@ -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) { |