@@ -176,7 +176,7 @@ |
||
176 | 176 | * Returns an associative array with all translations |
177 | 177 | * |
178 | 178 | * Called by \OC_L10N_String |
179 | - * @return array |
|
179 | + * @return string[] |
|
180 | 180 | */ |
181 | 181 | public function getTranslations() { |
182 | 182 | return $this->translations; |
@@ -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]); |
@@ -29,7 +29,6 @@ |
||
29 | 29 | namespace OCA\DAV\Connector\Sabre; |
30 | 30 | |
31 | 31 | use OC\Files\View; |
32 | -use OCA\DAV\Upload\FutureFile; |
|
33 | 32 | use OCP\Files\ForbiddenException; |
34 | 33 | use Sabre\DAV\Exception\Forbidden; |
35 | 34 | use Sabre\DAV\Exception\NotFound; |
@@ -176,7 +176,7 @@ |
||
176 | 176 | * Returns an associative array with all translations |
177 | 177 | * |
178 | 178 | * Called by \OC_L10N_String |
179 | - * @return array |
|
179 | + * @return string[] |
|
180 | 180 | */ |
181 | 181 | public function getTranslations() { |
182 | 182 | return $this->translations; |
@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | use OCP\Files\IMimeTypeLoader; |
25 | 25 | use OCP\IDBConnection; |
26 | - |
|
27 | 26 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
28 | 27 | |
29 | 28 | /** |
@@ -89,6 +89,9 @@ |
||
89 | 89 | $this->user = $user; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $tagId |
|
94 | + */ |
|
92 | 95 | function createFile($tagId, $data = null) { |
93 | 96 | try { |
94 | 97 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | use OCP\Files\IMimeTypeLoader; |
25 | 25 | use OCP\IDBConnection; |
26 | - |
|
27 | 26 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
28 | 27 | |
29 | 28 | /** |
@@ -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]); |
@@ -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 @@ |
||
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()) !== ''; |