Showing 3,235 of 4,504 total issues
Method execute
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$groupName = $input->getArgument('group');
$group = $this->groupManager->get($groupName);
$errorFound = false;
if (!$group) {
Method postCroppedAvatar
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postCroppedAvatar($crop) {
$userId = $this->userSession->getUser()->getUID();
if ($crop === null) {
return new DataResponse(
Method __construct
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$appName,
IRequest $request,
IGroupManager $groupManager,
IUserManager $userManager,
IManager $contactsManager,
Function _showMountOptionsDropdown
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_showMountOptionsDropdown: function($tr) {
if (this._preventNextDropdown) {
// prevented because the click was on the toggle
this._preventNextDropdown = false;
return;
Function _resize
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resize: function() {
var i, $crumb, $ellipsisCrumb;
if (!this.availableWidth) {
this.availableWidth = this.$el.width();
Function update
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function (gid, limit) {
if (UserList.updating) {
return;
}
if(!limit) {
Function _setShareTreeUserGroupView
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setShareTreeUserGroupView: function() {
var self = this;
var $list = $('<ul>', { id : 'shareTreeUserGroupList' });
if (! _.keys(self._shareTreeCache).length > 0) {
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
if (!this.model.hasReshare()
|| this.model.getReshareOwner() === OC.currentUser)
{
this.$el.empty();
Function _moveOrCopy
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_moveOrCopy: function(operation, path, destinationPath, allowOverwrite, headers, options) {
if (!path) {
throw 'Missing argument "path"';
}
if (!destinationPath) {
Method translateLong
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function translateLong($text, IL10N $l, array $params) {
switch ($text) {
case self::CREATE_TAG:
$params[1] = $this->convertParameterToTag($params[1], $l);
if ($this->actorIsCurrentUser($params[0])) {
Method sendUpdateToRemote
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendUpdateToRemote($remote, $remoteId, $token, $action, $data = [], $try = 0) {
$ocmNotification = $this->notificationManager->convertToOcmFileNotification($remoteId, $token, $action, $data);
$ocmFields = $ocmNotification->toArray();
$url = \rtrim(
$this->addressHandler->removeProtocolFromUrl($remote),
Method getUsersOwnCalendars
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getUsersOwnCalendars($principalUri) {
$principalUri = $this->convertPrincipal($principalUri, true);
$fields = \array_values($this->propertyMap);
$fields[] = 'id';
$fields[] = 'uri';
Method removeFromGroup
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function removeFromGroup($parameters) {
// Check if user is logged in
$loggedInUser = $this->userSession->getUser();
if ($loggedInUser === null) {
return new Result(null, API::RESPOND_UNAUTHORISED);
Method emitPreHooks
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function emitPreHooks($exists, $path = null) {
if ($path === null) {
$path = $this->path;
}
$hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path));
Method getACL
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getACL() {
$acl = [
[
'privilege' => '{DAV:}all',
'principal' => '{DAV:}owner',
Method run
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run(IOutput $out) {
if (!$this->config->getSystemValue('installed', false)) {
// Skip the migration for new installations -> nothing to migrate
return;
}
Method configure
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
$this
->setName('files_external:create')
->setDescription('Create a new mount configuration')
->addOption(
Method update
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(
$id,
$mountPoint,
$backend,
$authMechanism,
Method expireOlderThanMaxForUser
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function expireOlderThanMaxForUser($uid) {
$expiration = self::getExpiration();
$threshold = $expiration->getMaxAgeAsTimestamp();
$versions = self::getFileHelper()->getAllVersions($uid);
if (!$threshold || !\array_key_exists('all', $versions)) {
Method getQueryForFilter
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getQueryForFilter($filter) {
$user = $this->activityManager->getCurrentUserId();
// Display actions from all files
if ($filter === self::FILTER_FILES) {
return ['`app` = ?', [self::APP_FILES]];