apps/files_external/lib/Controller/UserStoragesController.php
Method update
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(
$id,
$mountPoint,
$backend,
$authMechanism,
Method create
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(
$mountPoint,
$backend,
$authMechanism,
$backendOptions,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$AppName,
IRequest $request,
IL10N $l10n,
IUserStoragesService $userStoragesService,
IUserSession $userSession,
Method update
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$id,
$mountPoint,
$backend,
$authMechanism,
$backendOptions,
Method create
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mountPoint,
$backend,
$authMechanism,
$backendOptions,
$mountOptions
Avoid too many return
statements within this method. Open
Open
return new DataResponse(
$storage,
Http::STATUS_OK
);
Avoid too many return
statements within this method. Open
Open
return new DataResponse(
$newStorage,
Http::STATUS_CREATED
);