@@ -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]); |
@@ -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 | /** |
@@ -154,7 +154,7 @@ |
||
154 | 154 | |
155 | 155 | /** |
156 | 156 | * @param string $gid |
157 | - * @return \OCP\IGroup |
|
157 | + * @return null|Group |
|
158 | 158 | */ |
159 | 159 | protected function getGroupObject($gid) { |
160 | 160 | $backends = array(); |
@@ -482,7 +482,7 @@ |
||
482 | 482 | |
483 | 483 | /** |
484 | 484 | * Removes an app |
485 | - * @param string $name name of the application to remove |
|
485 | + * @param string $appId |
|
486 | 486 | * @return boolean |
487 | 487 | * |
488 | 488 | * |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Wrapper around file_get_contents($filename, $data) |
33 | 33 | * |
34 | 34 | * @param string $filename |
35 | - * @return string|false |
|
35 | + * @return string |
|
36 | 36 | */ |
37 | 37 | public function file_get_contents($filename) { |
38 | 38 | return file_get_contents($filename); |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | * Wrapper around file_put_contents($filename, $data) |
53 | 53 | * |
54 | 54 | * @param string $filename |
55 | - * @param $data |
|
56 | - * @return int|false |
|
55 | + * @param string $data |
|
56 | + * @return integer |
|
57 | 57 | */ |
58 | 58 | public function file_put_contents($filename, $data) { |
59 | 59 | return file_put_contents($filename, $data); |
@@ -278,6 +278,11 @@ |
||
278 | 278 | */ |
279 | 279 | // FIXME This method is only public, until OC_L10N does not need it anymore, |
280 | 280 | // FIXME This is also the reason, why it is not in the public interface |
281 | + |
|
282 | + /** |
|
283 | + * @param string|boolean $app |
|
284 | + * @param string|null $lang |
|
285 | + */ |
|
281 | 286 | public function getL10nFilesForApp($app, $lang) { |
282 | 287 | $languageFiles = []; |
283 | 288 |
@@ -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; |
@@ -331,7 +331,7 @@ |
||
331 | 331 | |
332 | 332 | /** |
333 | 333 | * http basic auth |
334 | - * @return string|false (username, or false on failure) |
|
334 | + * @return string (username, or false on failure) |
|
335 | 335 | */ |
336 | 336 | private static function loginUser() { |
337 | 337 | if(self::$isLoggedIn === true) { |
@@ -150,7 +150,6 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * saves database schema to xml file |
152 | 152 | * @param string $file name of file |
153 | - * @param int $mode |
|
154 | 153 | * @return bool |
155 | 154 | * |
156 | 155 | * TODO: write more documentation |
@@ -194,7 +193,7 @@ discard block |
||
194 | 193 | * simulate the database schema update |
195 | 194 | * @param string $file file to read structure from |
196 | 195 | * @throws Exception |
197 | - * @return string|boolean |
|
196 | + * @return boolean |
|
198 | 197 | */ |
199 | 198 | public static function simulateUpdateDbFromStructure($file) { |
200 | 199 | $schemaManager = self::getMDB2SchemaManager(); |