Merge pull request #20825 from owncloud/scrutinizer-patch-1
Scrutinizer Auto-Fixes
This commit is contained in:
commit
634859e6ed
6 changed files with 9 additions and 9 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -195,7 +195,7 @@ class SFTP extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return bool|string
|
||||
* @return string|false
|
||||
*/
|
||||
private function hostKeysPath() {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue