Showing 3,235 of 4,504 total issues
Method getOrCreateEntry
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getOrCreateEntry($storageId, $path, $reuseFileId = null) {
if ($path === '.') {
$path = '';
}
// find the correct parent
Method getSingleFile
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function getSingleFile($view, $dir, $name, $params) {
$filename = "{$dir}/{$name}";
OC_Util::obEnd();
$view->lockFile($filename, ILockingProvider::LOCK_SHARED);
Method initTemplateEngine
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function initTemplateEngine($renderAs) {
if (self::$initTemplateEngineFirstRun) {
//apps that started before the template initialization can load their own scripts/styles
//so to make sure this scripts/styles here are loaded first we use OC_Util::addScript() with $prepend=true
//meaning the last script/style in this list will be loaded first
File DBConfigService.php
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Joas Schilling <coding@schilljs.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Robin Appelman <icewind@owncloud.com>
Function loadStorages
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadStorages: function() {
var self = this;
var ajaxRequests = [];
if (this._isPersonal) {
Function attach
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attach: function(fileList) {
var self = this;
if (this.ignoreLists.indexOf(fileList.id) >= 0) {
return;
}
Method getInternalDriveFile
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getInternalDriveFile($path) {
// Remove leading and trailing slashes
$path = \trim($path, '/');
if ($path === '.') {
$path = '';
Method writeExtra
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function writeExtra($app, $message, $level, $conditionalLogFile, $extraFields = []) {
$config = \OC::$server->getSystemConfig();
// default to ISO8601
$format = $config->getValue('logdateformat', 'c');
Method delete
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function delete($parent, $excludeParent = false, $uidOwner = null, $newParent = null, $excludeGroupChildren = false) {
$ids = [$parent];
$deletedItems = [];
$changeParent = [];
$parents = [$parent];
Method castValue
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function castValue($value, $type) {
switch ($type) {
case 'integer':
case 'int':
if (!\is_numeric($value)) {
Method validateInput
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validateInput(InputInterface $input, OutputInterface $output, $supportedDatabases) {
$db = \strtolower($input->getOption('database'));
if (!\in_array($db, $supportedDatabases)) {
throw new InvalidArgumentException("Database <$db> is not supported.");
File setupchecks.js
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014
*
* This file is licensed under the Affero General Public License version 3
* or later.
File user.php
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Aldo "xoen" Giambelluca <xoen@xoen.org>
* @author Andreas Fischer <bantu@owncloud.com>
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
File Manager.php
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Joas Schilling <coding@schilljs.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
EmptyContentSecurityPolicy
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EmptyContentSecurityPolicy {
/** @var bool Whether inline JS snippets are allowed */
protected $inlineScriptAllowed = null;
/**
* @var bool Whether eval in JS scripts is allowed
Manager
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Manager extends PublicEmitter implements IGroupManager {
/**
* @var GroupInterface[] $backends
*/
private $backends = [];
Event
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Event implements IEvent {
/** @var array */
protected $data = [
'app' => null,
'type' => null,
OC_Helper
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OC_Helper {
private static $templateManager;
/**
* Creates an absolute url for public use
MigrationService
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MigrationService {
/** @var boolean */
private $migrationTableCreated;
/** @var array */
private $migrations;
AllConfig
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class AllConfig implements IConfig {
/** @var SystemConfig */
private $systemConfig;
/** @var IDBConnection */