Showing 3,235 of 4,504 total issues
Consider simplifying this complex logical expression. Open
Open
if (
$.inArray(keyCodes.n, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1 || event.ctrlKey)) {
if ($.inArray(keyCodes.shift, keys) !== -1) { //16=shift, New File
newFile();
} else { //New Folder
Consider simplifying this complex logical expression. Open
Open
if (
$.inArray(keyCodes.n, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1 || event.ctrlKey)) {
preventDefault = true; //new file/folder prevent browser from responding
}
Function prompt
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
prompt: function (text, title, callback, modal, name, password, buttonDeclineText, buttonConfirmText) {
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$appName,
IRequest $request,
IL10N $l10n,
IConfig $config,
Session $userSession,
Method setMailSettings
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mail_domain,
$mail_from_address,
$mail_smtpmode,
$mail_smtpsecure,
$mail_smtphost,
Method addShare
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addShare($remote, $token, $password, $name, $owner, $accepted = false, $user = null, $remoteId = -1) {
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IRootFolder $rootFolder,
IUrlGenerator $urlGenerator,
EventDispatcher $eventDispatcher,
\OCP\Share\IManager $shareManager,
NotificationPublisher $notificationPublisher,
Consider simplifying this complex logical expression. Open
Open
if ($newPermissions !== null &&
$newPermissions !== Constants::PERMISSION_READ &&
$newPermissions !== Constants::PERMISSION_CREATE &&
$newPermissions !== (Constants::PERMISSION_READ | Constants::PERMISSION_UPDATE) &&
$newPermissions !== (Constants::PERMISSION_READ | Constants::PERMISSION_CREATE) &&
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IDBConnection $connection,
IL10N $l,
IClientService $clientService,
ILogger $logger,
IJobList $jobList,
Method addShareToDB
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private function addShareToDB($itemSource, $itemType, $shareWith, $sharedBy, $uidOwner, $permissions, $expiration, $token) {
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IConfig $config,
ILogger $logger,
IDBConnection $databaseConnection,
IUserSession $userSession,
IMountManager $mountManager,
Consider simplifying this complex logical expression. Open
Open
if (\OC_User::handleApacheAuth() ||
//Fix for broken webdav clients
($this->userSession->isLoggedIn() && $this->session->get(self::DAV_AUTHENTICATED) === null) ||
//Well behaved clients that only send the cookie are allowed
($this->userSession->isLoggedIn() && $this->session->get(self::DAV_AUTHENTICATED) === $this->userSession->getUser()->getUID() && ($request->getHeader('Authorization') === null || $request->getHeader('Authorization') === ''))
Method create
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mountPoint,
$backend,
$authMechanism,
$backendOptions,
$mountOptions,
Method createStorage
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mountPoint,
$backend,
$authMechanism,
$backendOptions,
$mountOptions = null,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Tree $tree,
View $view,
ISystemTagManager $tagManager,
ISystemTagObjectMapper $tagMapper,
ITagManager $fileTagger,
Method shareItem
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null, $passwordChanged = null) {
Method createStorage
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mountPoint,
$backendIdentifier,
$authMechanismIdentifier,
$backendOptions,
$mountOptions = null,
Method register
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$method,
$url,
$action,
$app,
$authLevel = self::USER_AUTH,
Method createStorage
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$mountPoint,
$backendIdentifier,
$authMechanismIdentifier,
$backendOptions,
$mountOptions = null,
Method checkReshare
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static function checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate) {