diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-01 09:26:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-01 09:26:22 +0100 |
commit | 634859e6ed31ecd4ebda0ad8cc4545d87e2052a4 (patch) | |
tree | 811a26ccd68bb76f7fe30a35f13fec487fa38b5d /apps | |
parent | 8a1e6c0ad98072803d4fe0b374fbfe1844fa139e (diff) | |
parent | d6da0396d02693e35073cfd4ec990a85393a92e5 (diff) | |
download | nextcloud-server-634859e6ed31ecd4ebda0ad8cc4545d87e2052a4.tar.gz nextcloud-server-634859e6ed31ecd4ebda0ad8cc4545d87e2052a4.zip |
Merge pull request #20825 from owncloud/scrutinizer-patch-1
Scrutinizer Auto-Fixes
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/controller/apicontroller.php | 2 | ||||
-rw-r--r-- | apps/files/lib/activity.php | 4 | ||||
-rw-r--r-- | apps/files/service/tagservice.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/config.php | 7 | ||||
-rw-r--r-- | apps/files_external/lib/config/configadapter.php | 1 | ||||
-rw-r--r-- | apps/files_external/lib/sftp.php | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/apps/files/controller/apicontroller.php b/apps/files/controller/apicontroller.php index 1ecd5294c66..ee54db63191 100644 --- a/apps/files/controller/apicontroller.php +++ b/apps/files/controller/apicontroller.php @@ -127,7 +127,7 @@ class ApiController extends Controller { * * @NoAdminRequired * - * @param array|string $tagName tag name to filter by + * @param string $tagName tag name to filter by * @return DataResponse */ public function getFilesByTag($tagName) { diff --git a/apps/files/lib/activity.php b/apps/files/lib/activity.php index 23e3f26e62d..a941572ed15 100644 --- a/apps/files/lib/activity.php +++ b/apps/files/lib/activity.php @@ -166,7 +166,7 @@ class Activity implements IExtension { * @param string $text * @param IL10N $l * @param array $params - * @return bool|string + * @return string|false */ protected function translateLong($text, IL10N $l, array $params) { switch ($text) { @@ -198,7 +198,7 @@ class Activity implements IExtension { * @param string $text * @param IL10N $l * @param array $params - * @return bool|string + * @return string|false */ protected function translateShort($text, IL10N $l, array $params) { switch ($text) { diff --git a/apps/files/service/tagservice.php b/apps/files/service/tagservice.php index 1999d97e1af..cf3f2bb7865 100644 --- a/apps/files/service/tagservice.php +++ b/apps/files/service/tagservice.php @@ -91,7 +91,7 @@ class TagService { /** * Get all files for the given tag * - * @param array $tagName tag name to filter by + * @param string $tagName tag name to filter by * @return FileInfo[] list of matching files * @throws \Exception if the tag does not exist */ diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index fac31445532..b0b9db123cd 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -243,6 +243,7 @@ class OC_Mount_Config { * * @param string $class backend class name * @param array $options backend configuration options + * @param boolean $isPersonal * @return int see self::STATUS_* * @throws Exception */ @@ -362,11 +363,11 @@ class OC_Mount_Config { private static function getSingleDependencyMessage(\OCP\IL10N $l, $module, $backend) { switch (strtolower($module)) { case 'curl': - return $l->t('<b>Note:</b> The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend); + return (string)$l->t('<b>Note:</b> The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend); case 'ftp': - return $l->t('<b>Note:</b> The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend); + return (string)$l->t('<b>Note:</b> The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend); default: - return $l->t('<b>Note:</b> "%s" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it.', array($module, $backend)); + return (string)$l->t('<b>Note:</b> "%s" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it.', array($module, $backend)); } } diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php index 3a04512e8a8..f9640d53377 100644 --- a/apps/files_external/lib/config/configadapter.php +++ b/apps/files_external/lib/config/configadapter.php @@ -32,7 +32,6 @@ use OCP\IUser; use OCA\Files_external\Service\UserStoragesService; use OCA\Files_External\Service\UserGlobalStoragesService; use OCA\Files_External\Lib\StorageConfig; -use OCP\Files\StorageNotAvailableException; use OCA\Files_External\Lib\FailedStorage; /** diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index f8651727fd2..bcf3143736e 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -195,7 +195,7 @@ class SFTP extends \OC\Files\Storage\Common { } /** - * @return bool|string + * @return string|false */ private function hostKeysPath() { try { |