@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | namespace OCA\Files_Trashbin\BackgroundJob; |
25 | 25 | |
26 | -use OCP\IConfig; |
|
27 | 26 | use OCP\IUser; |
28 | 27 | use OCP\IUserManager; |
29 | 28 | use OCA\Files_Trashbin\AppInfo\Application; |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * check if it is a file located in data/user/files only files in the |
111 | 111 | * 'files' directory should be moved to the trash |
112 | 112 | * |
113 | - * @param $path |
|
113 | + * @param string $path |
|
114 | 114 | * @return bool |
115 | 115 | */ |
116 | 116 | protected function shouldMoveToTrash($path){ |
@@ -1333,6 +1333,9 @@ |
||
1333 | 1333 | } |
1334 | 1334 | } |
1335 | 1335 | |
1336 | + /** |
|
1337 | + * @param string $lang |
|
1338 | + */ |
|
1336 | 1339 | protected static function findBestL10NOption($options, $lang) { |
1337 | 1340 | $fallback = $similarLangFallback = $englishFallback = false; |
1338 | 1341 |
@@ -402,6 +402,9 @@ |
||
402 | 402 | } |
403 | 403 | } |
404 | 404 | |
405 | + /** |
|
406 | + * @param string $path |
|
407 | + */ |
|
405 | 408 | private function getParentPath($path) { |
406 | 409 | $parent = dirname($path); |
407 | 410 | if ($parent === '.') { |
@@ -160,6 +160,9 @@ |
||
160 | 160 | return true; |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $path |
|
165 | + */ |
|
163 | 166 | private function rmObjects($path) { |
164 | 167 | $children = $this->getCache()->getFolderContents($path); |
165 | 168 | foreach ($children as $child) { |
@@ -54,6 +54,9 @@ |
||
54 | 54 | $this->flysystem->addPlugin(new GetWithMetadata()); |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $path |
|
59 | + */ |
|
57 | 60 | protected function buildPath($path) { |
58 | 61 | $fullPath = \OC\Files\Filesystem::normalizePath($this->root . '/' . $path); |
59 | 62 | return ltrim($fullPath, '/'); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |