Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer 2015-12-07 12:05:27 +00:00
parent e44b164f40
commit 97f9213da9
10 changed files with 17 additions and 9 deletions

View File

@ -33,7 +33,6 @@ use Icewind\SMB\Exception\Exception;
use Icewind\SMB\Exception\NotFoundException; use Icewind\SMB\Exception\NotFoundException;
use Icewind\SMB\NativeServer; use Icewind\SMB\NativeServer;
use Icewind\SMB\Server; use Icewind\SMB\Server;
use Icewind\Streams\CallbackWrapper;
use Icewind\Streams\IteratorDirectory; use Icewind\Streams\IteratorDirectory;
use OC\Files\Filesystem; use OC\Files\Filesystem;

View File

@ -130,6 +130,9 @@ class AmazonS3Migration extends \Test\TestCase {
return $storages; return $storages;
} }
/**
* @param string $id
*/
public function deleteStorage($id) { public function deleteStorage($id) {
$stmt = \OC::$server->getDatabaseConnection()->prepare( $stmt = \OC::$server->getDatabaseConnection()->prepare(
'DELETE FROM `*PREFIX*storages` WHERE `id` = ?' 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?'

View File

@ -48,6 +48,9 @@ abstract class StoragesControllerTest extends \Test\TestCase {
\OC_Mount_Config::$skipTest = false; \OC_Mount_Config::$skipTest = false;
} }
/**
* @return \OCA\Files_External\Lib\Backend\Backend
*/
protected function getBackendMock($class = '\OCA\Files_External\Lib\Backend\SMB', $storageClass = '\OC\Files\Storage\SMB') { protected function getBackendMock($class = '\OCA\Files_External\Lib\Backend\SMB', $storageClass = '\OC\Files\Storage\SMB') {
$backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend') $backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend')
->disableOriginalConstructor() ->disableOriginalConstructor()
@ -59,6 +62,9 @@ abstract class StoragesControllerTest extends \Test\TestCase {
return $backend; return $backend;
} }
/**
* @return \OCA\Files_External\Lib\Auth\AuthMechanism
*/
protected function getAuthMechMock($scheme = 'null', $class = '\OCA\Files_External\Lib\Auth\NullMechanism') { protected function getAuthMechMock($scheme = 'null', $class = '\OCA\Files_External\Lib\Auth\NullMechanism') {
$authMech = $this->getMockBuilder('\OCA\Files_External\Lib\Auth\AuthMechanism') $authMech = $this->getMockBuilder('\OCA\Files_External\Lib\Auth\AuthMechanism')
->disableOriginalConstructor() ->disableOriginalConstructor()

View File

@ -35,6 +35,11 @@ class BackendServiceTest extends \Test\TestCase {
$this->l10n = $this->getMock('\OCP\IL10N'); $this->l10n = $this->getMock('\OCP\IL10N');
} }
/**
* @param string $class
*
* @return \OCA\Files_External\Lib\Backend\Backend
*/
protected function getBackendMock($class) { protected function getBackendMock($class) {
$backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend') $backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend')
->disableOriginalConstructor() ->disableOriginalConstructor()

View File

@ -25,7 +25,6 @@
namespace OCA\Files_Sharing\AppInfo; namespace OCA\Files_Sharing\AppInfo;
use OCA\Files_Sharing\Helper;
use OCA\Files_Sharing\MountProvider; use OCA\Files_Sharing\MountProvider;
use OCP\AppFramework\App; use OCP\AppFramework\App;
use OC\AppFramework\Utility\SimpleContainer; use OC\AppFramework\Utility\SimpleContainer;

View File

@ -98,7 +98,7 @@ class Shared_Cache extends Cache {
/** /**
* get the stored metadata of a file or folder * get the stored metadata of a file or folder
* *
* @param string|int $file * @param string $file
* @return array|false * @return array|false
*/ */
public function get($file) { public function get($file) {

View File

@ -45,7 +45,6 @@ class ExternalSharesController extends Controller {
/** /**
* @param string $appName * @param string $appName
* @param IRequest $request * @param IRequest $request
* @param bool $incomingShareEnabled
* @param \OCA\Files_Sharing\External\Manager $externalManager * @param \OCA\Files_Sharing\External\Manager $externalManager
* @param IClientService $clientService * @param IClientService $clientService
*/ */
@ -84,7 +83,7 @@ class ExternalSharesController extends Controller {
* @NoAdminRequired * @NoAdminRequired
* @NoOutgoingFederatedSharingRequired * @NoOutgoingFederatedSharingRequired
* *
* @param $id * @param integer $id
* @return JSONResponse * @return JSONResponse
*/ */
public function destroy($id) { public function destroy($id) {

View File

@ -124,7 +124,7 @@ class ShareController extends Controller {
* @UseSession * @UseSession
* *
* Authenticates against password-protected shares * Authenticates against password-protected shares
* @param $token * @param string $token
* @param string $password * @param string $password
* @return RedirectResponse|TemplateResponse * @return RedirectResponse|TemplateResponse
*/ */

View File

@ -27,7 +27,6 @@ namespace OCA\Files_Sharing\Middleware;
use OCP\App\IAppManager; use OCP\App\IAppManager;
use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\NotFoundResponse;
use OCP\AppFramework\Middleware; use OCP\AppFramework\Middleware;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Files\NotFoundException; use OCP\Files\NotFoundException;
use OCP\IConfig; use OCP\IConfig;
use OCP\AppFramework\Utility\IControllerMethodReflector; use OCP\AppFramework\Utility\IControllerMethodReflector;

View File

@ -32,8 +32,6 @@ namespace OC\Files\Storage;
use OC\Files\Filesystem; use OC\Files\Filesystem;
use OCA\Files_Sharing\ISharedStorage; use OCA\Files_Sharing\ISharedStorage;
use OCA\Files_Sharing\Propagator;
use OCA\Files_Sharing\SharedMount;
use OCP\Lock\ILockingProvider; use OCP\Lock\ILockingProvider;
/** /**