@@ -108,6 +108,9 @@ |
||
108 | 108 | Helper::removeIfExists(self::getTempBase()); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @return string |
|
113 | + */ |
|
111 | 114 | protected static function getTempBase(){ |
112 | 115 | $app = new \OCA\Updater\AppInfo\Application(); |
113 | 116 | return $app->getContainer()->query('Config')->getTempBase(); |
@@ -110,6 +110,9 @@ |
||
110 | 110 | return self::getTempBase() . $version; |
111 | 111 | } |
112 | 112 | |
113 | + /** |
|
114 | + * @return string |
|
115 | + */ |
|
113 | 116 | protected static function getTempBase(){ |
114 | 117 | $app = new \OCA\Updater\AppInfo\Application(); |
115 | 118 | return $app->getContainer()->query('Config')->getTempBase(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * Check permissions recursive |
59 | 59 | * @param string $src - path to check |
60 | - * @param OCA\Updater\Collection $collection - object to store incorrect permissions |
|
60 | + * @param Collection $collection - object to store incorrect permissions |
|
61 | 61 | */ |
62 | 62 | public static function checkr($src, $collection) { |
63 | 63 | if (!is_writable($src)){ |
@@ -149,6 +149,9 @@ discard block |
||
149 | 149 | } |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param string $dir |
|
154 | + */ |
|
152 | 155 | protected static function rmdirr($dir) { |
153 | 156 | if(is_dir($dir)) { |
154 | 157 | $files = scandir($dir); |