@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @param \Google_Service_Drive_DriveFile |
218 | 218 | * |
219 | - * @return true if the file is a Google Doc file, false otherwise |
|
219 | + * @return boolean if the file is a Google Doc file, false otherwise |
|
220 | 220 | */ |
221 | 221 | private function isGoogleDocFile($file) { |
222 | 222 | return $this->getGoogleDocExtension($file->getMimeType()) !== ''; |
@@ -505,6 +505,9 @@ discard block |
||
505 | 505 | } |
506 | 506 | } |
507 | 507 | |
508 | + /** |
|
509 | + * @param string $path |
|
510 | + */ |
|
508 | 511 | public function writeBack($tmpFile, $path) { |
509 | 512 | $parentFolder = $this->getDriveFile(dirname($path)); |
510 | 513 | if ($parentFolder) { |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -212,6 +212,7 @@ |
||
212 | 212 | |
213 | 213 | /** |
214 | 214 | * write back temporary files |
215 | + * @param string $path |
|
215 | 216 | */ |
216 | 217 | function writeBack($tmpFile, $path) { |
217 | 218 | $this->addFile($path, $tmpFile); |
@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $path |
|
167 | + */ |
|
165 | 168 | private function rmObjects($path) { |
166 | 169 | $children = $this->getCache()->getFolderContents($path); |
167 | 170 | foreach ($children as $child) { |
@@ -364,6 +367,9 @@ discard block |
||
364 | 367 | return true; |
365 | 368 | } |
366 | 369 | |
370 | + /** |
|
371 | + * @param string $path |
|
372 | + */ |
|
367 | 373 | public function writeBack($tmpFile, $path) { |
368 | 374 | $stat = $this->stat($path); |
369 | 375 | if (empty($stat)) { |
@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $path |
|
167 | + */ |
|
165 | 168 | private function rmObjects($path) { |
166 | 169 | $children = $this->getCache()->getFolderContents($path); |
167 | 170 | foreach ($children as $child) { |
@@ -364,6 +367,9 @@ discard block |
||
364 | 367 | return true; |
365 | 368 | } |
366 | 369 | |
370 | + /** |
|
371 | + * @param string $path |
|
372 | + */ |
|
367 | 373 | public function writeBack($tmpFile, $path) { |
368 | 374 | $stat = $this->stat($path); |
369 | 375 | if (empty($stat)) { |
@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $path |
|
167 | + */ |
|
165 | 168 | private function rmObjects($path) { |
166 | 169 | $children = $this->getCache()->getFolderContents($path); |
167 | 170 | foreach ($children as $child) { |
@@ -364,6 +367,9 @@ discard block |
||
364 | 367 | return true; |
365 | 368 | } |
366 | 369 | |
370 | + /** |
|
371 | + * @param string $path |
|
372 | + */ |
|
367 | 373 | public function writeBack($tmpFile, $path) { |
368 | 374 | $stat = $this->stat($path); |
369 | 375 | if (empty($stat)) { |
@@ -212,6 +212,7 @@ |
||
212 | 212 | |
213 | 213 | /** |
214 | 214 | * write back temporary files |
215 | + * @param string $path |
|
215 | 216 | */ |
216 | 217 | function writeBack($tmpFile, $path) { |
217 | 218 | $this->addFile($path, $tmpFile); |
@@ -1063,7 +1063,7 @@ discard block |
||
1063 | 1063 | * @param string $app |
1064 | 1064 | * @param \OCP\IConfig $config |
1065 | 1065 | * @param \OCP\IL10N $l |
1066 | - * @return bool |
|
1066 | + * @return string |
|
1067 | 1067 | * |
1068 | 1068 | * @throws Exception if app is not compatible with this version of ownCloud |
1069 | 1069 | * @throws Exception if no app-name was specified |
@@ -1243,6 +1243,11 @@ discard block |
||
1243 | 1243 | } |
1244 | 1244 | } |
1245 | 1245 | |
1246 | + /** |
|
1247 | + * @param string $lang |
|
1248 | + * |
|
1249 | + * @return string |
|
1250 | + */ |
|
1246 | 1251 | protected static function findBestL10NOption($options, $lang) { |
1247 | 1252 | $fallback = $similarLangFallback = $englishFallback = false; |
1248 | 1253 |