@@ -770,7 +770,7 @@ |
||
770 | 770 | |
771 | 771 | /** |
772 | 772 | * @param Share[] $shares |
773 | - * @param $userId |
|
773 | + * @param string $userId |
|
774 | 774 | * @return Share[] The updates shares if no update is found for a share return the original |
775 | 775 | */ |
776 | 776 | private function resolveGroupShares($shares, $userId) { |
@@ -24,7 +24,6 @@ |
||
24 | 24 | namespace OC\Share20; |
25 | 25 | |
26 | 26 | use OC\Files\Cache\Cache; |
27 | -use OC\Files\Cache\CacheEntry; |
|
28 | 27 | use OCP\Files\File; |
29 | 28 | use OCP\Files\Folder; |
30 | 29 | use OCP\Share\IShareProvider; |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param \Doctrine\DBAL\Connection $connection |
|
93 | + * @param IDBConnection $connection |
|
94 | 94 | * @return string[] |
95 | 95 | */ |
96 | 96 | protected function getAllNonUTF8BinTables($connection) { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * The deserialize method is called during xml parsing. |
62 | 62 | * |
63 | 63 | * @param Reader $reader |
64 | - * @return mixed |
|
64 | + * @return null|ShareTypeList |
|
65 | 65 | */ |
66 | 66 | static function xmlDeserialize(Reader $reader) { |
67 | 67 | $shareTypes = []; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * the next element. |
81 | 81 | * |
82 | 82 | * @param Reader $reader |
83 | - * @return mixed |
|
83 | + * @return null|TagList |
|
84 | 84 | */ |
85 | 85 | static function xmlDeserialize(Reader $reader) { |
86 | 86 | $tags = []; |
@@ -30,7 +30,6 @@ |
||
30 | 30 | |
31 | 31 | namespace OC\Share; |
32 | 32 | |
33 | -use DateTime; |
|
34 | 33 | use OCP\IL10N; |
35 | 34 | use OCP\IURLGenerator; |
36 | 35 | use OCP\IUser; |
@@ -51,7 +51,6 @@ |
||
51 | 51 | use OC\App\InfoParser; |
52 | 52 | use OC\App\Platform; |
53 | 53 | use OC\Installer; |
54 | -use OC\OCSClient; |
|
55 | 54 | use OC\Repair; |
56 | 55 | use OCP\App\ManagerEvent; |
57 | 56 |
@@ -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 |
@@ -318,6 +318,11 @@ |
||
318 | 318 | */ |
319 | 319 | // FIXME This method is only public, until OC_L10N does not need it anymore, |
320 | 320 | // FIXME This is also the reason, why it is not in the public interface |
321 | + |
|
322 | + /** |
|
323 | + * @param string $app |
|
324 | + * @param string $lang |
|
325 | + */ |
|
321 | 326 | public function getL10nFilesForApp($app, $lang) { |
322 | 327 | $languageFiles = []; |
323 | 328 |
@@ -45,7 +45,6 @@ |
||
45 | 45 | use OC\App\CodeChecker\CodeChecker; |
46 | 46 | use OC\App\CodeChecker\EmptyCheck; |
47 | 47 | use OC\App\CodeChecker\PrivateCheck; |
48 | -use OC\Archive\Archive; |
|
49 | 48 | use OC\Archive\TAR; |
50 | 49 | use OC_App; |
51 | 50 | use OC_DB; |
@@ -131,7 +131,7 @@ |
||
131 | 131 | /** |
132 | 132 | * Create the federated share provider |
133 | 133 | * |
134 | - * @return FederatedShareProvider |
|
134 | + * @return null|ShareByMailProvider |
|
135 | 135 | */ |
136 | 136 | protected function getShareByMailProvider() { |
137 | 137 | if ($this->shareByMailProvider === null) { |