Showing 3,235 of 4,504 total issues
Function launchNext
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.launchNext = function() {
var currentCounter = this.counter++;
if (currentCounter in this.functionList) {
var funcData = this.functionList[currentCounter];
if ($.isFunction(funcData.funcName)) {
Function ensureFolderExists
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ensureFolderExists: function(fullPath) {
if (!fullPath || fullPath === '/') {
return $.Deferred().resolve().promise();
}
Function _onSelectTag
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onSelectTag: function(e) {
var self = this;
var tag;
if (e.object && e.object.isNew) {
// newly created tag, check if existing
Function getModelForFile
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getModelForFile: function(fileName) {
var self = this;
var $tr;
// jQuery object ?
if (fileName.is) {
Function initialize
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(options) {
var view = this;
this.model.on('fetchError', function() {
OC.Notification.showTemporary(t('core', 'Share details could not be loaded for this item.'));
Function share
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
share:function(itemType, itemSource, shareType, shareWith, permissions, itemSourceName, expirationDate, callback, errorCallback) {
// Add a fallback for old share() calls without expirationDate.
// We should remove this in a later version,
// after the Apps have been updated.
if (typeof callback === 'undefined' &&
Function _afterRender
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_afterRender: function () {
var _this = this;
this.$el.find('.emailPrivateLinkForm--emailField').select2({
containerCssClass: 'emailPrivateLinkForm--dropDown',
Function search
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.search = function(query, inApps, page, size) {
if (query) {
OC.addStyle('core/search','results');
if (typeof page !== 'number') {
page = 1;
Method run
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function run($argument) {
$target = $argument['url'];
$source = $this->urlGenerator->getAbsoluteURL('/');
$source = \rtrim($source, '/');
$token = $argument['token'];
Method getSharesBy
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSharesBy($userId, $shareType, $node, $reshares, $limit, $offset) {
$qb = $this->dbConnection->getQueryBuilder();
$qb->select('*')
->from($this->shareTable);
Method sql
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sql(IDBConnection $connection) {
$qb = $connection->getQueryBuilder();
$qb->select('*')
->from('properties', 'props')
->setMaxResults(1);
Method getAddressBooksForUser
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAddressBooksForUser($principalUri) {
$addressBooks = $this->getUsersOwnAddressBooks($principalUri);
// query for shared calendars
$principals = $this->principalBackend->getGroupMembership($principalUri, true);
Method verifyChecksumsForFile
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function verifyChecksumsForFile($file, InputInterface $input, OutputInterface $output) {
$path = $file->getInternalPath();
$currentChecksums = $file->getChecksum();
$storage = $file->getStorage();
$storageId = $storage->getId();
Method searchCommon
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function searchCommon($method, $args) {
$files = [];
$rootLength = \strlen($this->path);
$mount = $this->root->getMount($this->path);
$storage = $mount->getStorage();
Method searchCommon
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function searchCommon($method, $args) {
$files = [];
$rootLength = \strlen($this->fakeRoot);
$mount = $this->getMount('');
Method writeBack
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function writeBack($tmpFile) {
if (!isset(self::$tmpFiles[$tmpFile])) {
return;
}
Method generatePreview
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function generatePreview() {
$file = $this->getFile();
$preview = null;
$previewProviders = \OC::$server->getPreviewManager()
Method xmlToArray
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function xmlToArray($xml) {
if (!$xml->children()) {
return (string)$xml;
}
Method getAppInfoByPath
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAppInfoByPath($path, $etag = null) {
$file = \realpath($path);
// check the cache
$data = $this->appInfo->get($file);
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) {