Showing 3,235 of 4,504 total issues
File ListCommand.php
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Robin Appelman <icewind@owncloud.com>
* @author Vincent Petry <pvince81@owncloud.com>
*
Method getDiff
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $connection) {
$schemaDiff = parent::getDiff($targetSchema, $connection);
// oracle forces us to quote the identifiers
$schemaDiff->newTables = \array_map(function (Table $table) {
File profile.js
has 279 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Post the email address change to the server.
*/
function changeEmailAddress () {
var emailInfo = $('#email');
Function _onClickFile
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onClickFile: function(event) {
this._setCurrentRow($(event.currentTarget).closest('tr'));
var $link = $(event.target).closest('a');
if ($link.attr('href') === '#' || $link.hasClass('disable-click')) {
Method move2trash
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function move2trash($file_path) {
// get the user for which the filesystem is setup
$root = Filesystem::getRoot();
list(, $user) = \explode('/', $root);
list($owner, $ownerPath) = self::getUidAndFilename($file_path);
Method getSpecialParameterList
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSpecialParameterList($app, $text) {
if ($app === self::APP_FILES) {
switch ($text) {
case 'created_self':
return [
Method update
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(\OCP\Share\IShare $share) {
$this->validate($share);
$shareAttributes = $this->formatShareAttributes(
$share->getAttributes()
Method initialize
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function initialize() {
$loadedExtensions = \get_loaded_extensions();
$packages = [];
// Extensions scanning
Method loadFromFile
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadFromFile($imagePath = false) {
// exif_imagetype throws "read error!" if file is less than 12 byte
if (!@\is_file($imagePath) || !\file_exists($imagePath) || \filesize($imagePath) < 12 || !\is_readable($imagePath)) {
return false;
}
Method execute
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$userNameSubString = $input->getArgument('search-pattern');
$attributes = \array_map('mb_strtolower', $input->getOption('attributes'));
$showAllAttributes = $input->getOption('show-all-attributes');
$useKey = \count($attributes) > 1
File de_AT.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Bitte wähle eine Datei aus.",
"File is too big" : "Datei ist zu groß",
File RequestHandlerController.php
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Björn Schießle <bjoern@schiessle.org>
* @author Joas Schilling <coding@schilljs.com>
UsersController
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class UsersController extends Controller {
/** @var IL10N */
private $l10n;
/** @var Session */
private $userSession;
DBConfigService
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DBConfigService {
public const MOUNT_TYPE_ADMIN = 1;
public const MOUNT_TYPE_PERSONAl = 2;
public const APPLICABLE_TYPE_GLOBAL = 1;
RepairMimeTypes
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class RepairMimeTypes implements IRepairStep {
/**
* @var \OCP\IConfig
*/
protected $config;
ContentSecurityPolicy
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy {
/**
* @return boolean
*/
public function isInlineScriptAllowed() {
Comment
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Comment implements IComment {
protected array $data = [
'id' => '',
'parentId' => '0',
'topmostParentId' => '0',
Manager
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Manager implements ICommentsManager {
use EventEmitterTrait;
/** @var IDBConnection */
protected $dbConn;
File filelist.js
has 277 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.
Function setupGroupsSelect
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setupGroupsSelect: function($elements, extraOptions, options) {
var self = this;
options = options || {};
if ($elements.length > 0) {
// note: settings are saved through a "change" event registered