Showing 3,235 of 4,504 total issues
Function start
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function($el, options) {
if (this._started) {
return;
}
Method createShare
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createShare() {
try {
$this->ocmMiddleware->assertIncomingSharingEnabled();
$remote = $this->request->getParam('remote', null);
$token = $this->request->getParam('token', null);
File Directory.php
has 295 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>
File fi_FI.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"settings",
{
"No user supplied" : "Käyttäjää ei määritetty",
"Authentication error" : "Tunnistautumisvirhe",
Function _promptFileName
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_promptFileName: function($target) {
var self = this;
if (!OCA.Files.NewFileMenu._TEMPLATE_FORM) {
OCA.Files.NewFileMenu._TEMPLATE_FORM = Handlebars.compile(TEMPLATE_FILENAME_FORM);
}
Function _onSend
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onSend: function (e, data) {
if (!data.submit) {
this._addConvenienceMethods(e, data);
}
var that = this,
File MailNotifications.php
has 293 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 app.js
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
Method getFileInfo
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getFileInfo($path) {
$this->log('enter: '.__FUNCTION__."($path)");
$path = $this->buildPath($path);
if (!isset($this->statCache[$path])) {
try {
Share
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Share extends \OC\Share\Constants {
/**
* Register a sharing backend class that implements OCP\Share_Backend for an item type
* @param string $itemType Item type
* @param string $class Backend class
CacheJail
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CacheJail extends CacheWrapper {
/**
* @var string
*/
protected $root;
Tags
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Tags implements \OCP\ITags {
/**
* Tags
*
* @var array
Manager
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Manager implements IManager {
/** @var IRequest */
protected $request;
/** @var IUserSession */
Method changeSchema
has 75 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")) {
$table = $schema->createTable("{$prefix}share");
$table->addColumn('id', 'integer', [
File ast.js
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Por favor esbilla un ficheru.",
"File is too big" : "Ficheru ye demasiáu grande",
Function afterCall
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var afterCall = function(data, statusText, xhr) {
var messages = [];
if (xhr.status === 200 && data) {
if (!data.serverHasInternetConnection) {
messages.push({
File SFTP.php
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Andreas Fischer <bantu@owncloud.com>
* @author Bart Visscher <bartv@thisnet.nl>
* @author hkjolhede <hkjolhede@gmail.com>
Method basicOperation
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function basicOperation($operation, $path, $hooks = [], $extraParam = null) {
$postFix = (\substr($path, -1, 1) === '/') ? '/' : '';
$absolutePath = Filesystem::normalizePath($this->getAbsolutePath($path));
if (Filesystem::isValidPath($path)
and !Filesystem::isForbiddenFileOrDir($path)
Method verify
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function verify($signaturePath, $basePath, $certificateCN, $force = false) {
if (!$force && !$this->isCodeCheckEnforced()) {
return [];
}
Method upsert
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function upsert($table, $input, $compare) {
$this->conn->beginTransaction();
$done = false;
if (empty($compare)) {