@@ -105,6 +105,9 @@ |
||
| 105 | 105 | return $result; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $value |
|
| 110 | + */ |
|
| 108 | 111 | private function getServersConfig($value) { |
| 109 | 112 | $regex = '/' . $value . '$/S'; |
| 110 | 113 | |
@@ -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; |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * @param bool $isLoggedIn |
| 92 | 92 | * @param bool $isAdminUser |
| 93 | 93 | * @param ContentSecurityPolicyManager $contentSecurityPolicyManager |
| 94 | - * @param CSRFTokenManager $csrfTokenManager |
|
| 94 | + * @param CsrfTokenManager $csrfTokenManager |
|
| 95 | 95 | */ |
| 96 | 96 | public function __construct(IRequest $request, |
| 97 | 97 | ControllerMethodReflector $reflector, |
@@ -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; |