Showing 3,235 of 4,504 total issues
Method getSupportedDatabases
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSupportedDatabases($allowAllDatabases = false) {
$availableDatabases = [
'sqlite' => [
'type' => 'class',
'call' => 'SQLite3',
Method execute
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$confirmed = $input->getOption('continue');
if (($confirmed !== 'yes') && ($confirmed !== 'no')) {
$output->writeln('Continue can accept either yes or no');
return 2;
Method execute
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
if (\OCP\Util::needUpgrade()) {
$output->writeln('Update required, skipping cron');
return 1;
}
File uk.js
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Хибний поточний пароль",
"The new password cannot be the same as the previous one" : "Новий пароль не може бути таким самим як і попередній",
File ro.js
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Te rugăm să alegi un fișier.",
"File is too big" : "Fișierul este prea mare",
File Storage.php
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Björn Schießle <bjoern@schiessle.org>
* @author Joas Schilling <coding@schilljs.com>
* @author Lukas Reschke <lukas@statuscode.ch>
File files.php
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Bart Visscher <bartv@thisnet.nl>
* @author Björn Schießle <bjoern@schiessle.org>
Function getMountStatusForMount
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getMountStatusForMount: function (mountData, afterCallback) {
var self = this;
if (typeof afterCallback !== 'function' || self.isGetMountStatusRunning) {
return $.Deferred().resolve();
}
Function _extendFileActions
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_extendFileActions: function(fileActions) {
var self = this;
// register "star" action
fileActions.registerAction({
name: 'Favorite',
Function render
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
var isPasswordSet = !!this.model.get('encryptedPassword');
// only show email field for new shares and if enabled globally
var showEmailField = this.configModel.isMailPublicNotificationEnabled();
Function markFileAsShared
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
markFileAsShared: function($tr, hasShares, hasLink) {
var action = $tr.find('.fileactions .action[data-action="Share"]');
var type = $tr.data('type');
var icon = action.find('.icon');
var message;
Function appSettings
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
appSettings: function (args) {
if (typeof args === 'undefined' || typeof args.appid === 'undefined') {
throw {name: 'MissingParameter', message: 'The parameter appid is missing'};
}
var props = {scriptName: 'settings.php', cache: true};
Function tipsy
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.tipsy = function (argument) {
console.warn('Deprecation warning: tipsy is deprecated. Use tooltip instead.');
if (typeof argument === 'object' && argument !== null) {
// tipsy defaults
Method schedule
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function schedule(ITip\Message $iTipMessage) {
// Not sending any emails if OC-CalDav-Import header is set
if ($this->request->getHeader('OC-CalDav-Import') !== null) {
return;
}
File AvatarController.php
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Joas Schilling <coding@schilljs.com>
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Martin Mattel <martin.mattel@diemattels.at>
Function _handleFileTreeEntry
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_handleFileTreeEntry: function (entry, path) {
var that = this,
dfd = $.Deferred(),
entries = [],
dirReader,
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
this.$el.html(this.template({
cid: this.cid,
urlLabel: t('core', 'Link'),
addLinkText: t('core', 'Create public link'),
Function _getUsersForBatchAction
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getUsersForBatchAction: function(search) {
var view = this;
var foundUsers = [];
var notFound = [];
var promises = [];
Method setEnabled
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setEnabled($id, $enabled) {
$userId = $this->userSession->getUser()->getUID();
$user = $this->userManager->get($id);
'@phan-var \OC\Group\Manager $this->groupManager';
Method xmlDeserialize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function xmlDeserialize(Reader $reader) {
$elems = (array)$reader->parseInnerTree([
'{DAV:}prop' => KeyValue::class,
'{http://owncloud.org/ns}filter-rules' => Base::class,
'{http://owncloud.org/ns}search' => KeyValue::class,