Showing 3,235 of 4,504 total issues
File SyncService.php
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Thomas Müller <thomas.mueller@tmit.eu>
*
Function message
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
message:function(content, title, dialogType, buttons, callback, modal, cssClass) {
return $.when(this._getMessageTemplate()).then(function($tmpl) {
var dialogName = 'oc-dialog-' + OCdialogs.dialogsCounter + '-content';
var dialogId = '#' + dialogName;
var $dlg = $tmpl.octemplate({
Method changeSchema
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function changeSchema(Schema $schema, array $options) {
$prefix = $options['tablePrefix'];
if (!$schema->hasTable("{$prefix}share_external")) {
$table = $schema->createTable("{$prefix}share_external");
$table->addColumn('id', 'bigint', [
Method buildDateFromContact
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildDateFromContact($cardData, $dateField, $summarySymbol) {
if (empty($cardData)) {
return null;
}
try {
Method moveInto
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function moveInto($targetName, $fullSourcePath, INode $sourceNode) {
if (!$sourceNode instanceof Node) {
if ($sourceNode instanceof ITrashBinNode) {
if (!$this->fileView->isCreatable($this->getPath())) {
throw new SabreForbidden('Destination directory is not writable');
Method _output
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function _output($filePath = null, $mimeType = null) {
if ($filePath) {
if (!\file_exists(\dirname($filePath))) {
\mkdir(\dirname($filePath), 0777, true);
}
Method execute
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$uid = $input->getArgument('uid');
if ($this->userManager->userExists($uid)) {
$output->writeln('<error>The user "' . $uid . '" already exists.</error>');
return 1;
SFTP
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SFTP extends \OCP\Files\Storage\StorageAdapter {
private $host;
private $user;
private $root;
private $port = 22;
NonExistingFolder
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class NonExistingFolder extends Folder {
/**
* @param string $newPath
* @throws \OCP\Files\NotFoundException
*/
CacheWrapper
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CacheWrapper extends Cache {
/**
* @var \OCP\Files\Cache\ICache
*/
protected $cache;
File id.js
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Sandi Anda salah",
"The new password cannot be the same as the previous one" : "Sandi baru tidak boleh sama dengan sebelumnya",
File ast.js
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"settings",
{
"No user supplied" : "Nun s'especificó un usuariu",
"Authentication error" : "Fallu d'autenticación",
File SharedStorage.php
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Bart Visscher <bartv@thisnet.nl>
* @author Björn Schießle <bjoern@schiessle.org>
* @author Joas Schilling <coding@schilljs.com>
File Manager.php
has 284 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 Bernhard Posselt <dev@bernhard-posselt.com>
Function _save
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_save: function () {
var deferred = $.Deferred();
var $el = this.$el;
var $formElements = $el.find('input, textarea, select, button'),
Method mapperEvent
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mapperEvent(MapperEvent $event) {
$tagIds = $event->getTags();
if ($event->getObjectType() !== 'files' ||empty($tagIds)
|| !\in_array($event->getEvent(), [MapperEvent::EVENT_ASSIGN, MapperEvent::EVENT_UNASSIGN])
|| !$this->appManager->isInstalled('activity')) {
Method updateHtaccess
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function updateHtaccess() {
$config = \OC::$server->getConfig();
$il10n = \OC::$server->getL10N('lib');
// For CLI read the value from overwrite.cli.url
Method match
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function match($url) {
if (\substr($url, 0, 6) === '/apps/') {
// empty string / 'apps' / $app / rest of the route
list(, , $app, ) = \explode('/', $url, 4);
File Apps.php
has 283 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Viktar Dubiniuk <dubiniuk@owncloud.com>
*
* @copyright Copyright (c) 2018, ownCloud GmbH
Function edit
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
edit:function(type, cb) {
if(!type && !this.type) {
throw {
name: 'MissingParameter',
message: t(