Showing 3,235 of 4,504 total issues
prototype
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
OC.Uploader.prototype = _.extend({
/**
* @type Array<OC.FileUpload>
*/
_uploads: {},
Manager
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Manager {
public const STORAGE = '\OCA\Files_Sharing\External\Storage';
/**
* @var string
Node
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Node implements \Sabre\DAV\INode {
/**
* @var \OC\Files\View
*/
protected $fileView;
OC
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OC {
/**
* Associative array for autoloading. classname => filename
*/
public static $CLASSPATH = [];
FailedCache
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class FailedCache implements ICache {
/** @var bool whether to show the failed storage in the ui */
private $visible;
/**
StoragesService
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class StoragesService implements IStoragesService {
/** @var IStoragesBackendService */
protected $backendService;
/**
Function _registerPendingShareActions
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_registerPendingShareActions: function(fileActions) {
var self = this;
// register pending share actions
fileActions.registerAction({
Function initialize
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function($el) {
OC.Plugins.register('OCA.Search', OC.Settings.Apps.Search);
OC.Settings.Apps.loadCategories();
OC.Util.History.addOnPopStateHandler(_.bind(this._onPopState, this));
Function _onSubmitComment
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onSubmitComment: function(e) {
var self = this;
var $form = $(e.target);
var commentId = $form.closest('.comment').data('id');
var currentUser = OC.getCurrentUser();
Function _setOption
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function(key, value) {
var self = this;
switch (key) {
case 'title':
if (this.$title) {
Function showPassword
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showPassword: function(c) {
// Setup callback object
var callback = {'fn':null,'args':{}}
callback.fn = c;
Method index
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function index($offset = 0, $limit = 10, $gid = '', $pattern = '', $backend = '') {
// FIXME: The JS sends the group '_everyone' instead of no GID for the "all users" group.
if ($gid === '_everyone') {
$gid = '';
}
Method retainVersions
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function retainVersions($filename, $owner, $ownerPath, $timestamp, $sourceStorage = null, $forceCopy = false) {
if (\OCP\App::isEnabled('files_versions') && !empty($ownerPath)) {
$copyKeysResult = false;
// Temporary
Method getLocalMethods
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getLocalMethods() {
return [
'OC_L10N::get' => '8.2.0',
'OCP\Activity\IManager::publishActivity' => '8.2.0',
Function showCredentialsDialog
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showCredentialsDialog: function (mountPoint, mountData) {
var template = Handlebars.compile(OCA.External.StatusManager.credentialsDialogTemplate);
var dialog = $(template({
credentials_text: t('files_external', 'Please enter the credentials for the {mount} mount', {
'mount': mountPoint
Method createCalendarObjectsTable
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createCalendarObjectsTable(Schema $schema) {
if (!$schema->hasTable("{$this->prefix}calendarobjects")) {
$table = $schema->createTable("{$this->prefix}calendarobjects");
$table->addColumn('id', 'integer', [
'notnull' => true,
Method findInvalidReshareInitiator
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function findInvalidReshareInitiator(InputInterface $input, OutputInterface $output, $fix, $scopeUid) {
$output->writeln([
"<info>==========================</info>",
"<info>Searching for reshares that have invalid uid_initiator(resharer), meaning resharer which does not have the received share mounted anymore (that he reshared with other user).</info>",
"<info>==========================</info>",
Method validatePermissions
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validatePermissions(IShare $share) {
// Permissions should be set
if ($share->getPermissions() === null) {
throw new \InvalidArgumentException('A share requires permissions');
}
Method installApp
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function installApp($data = []) {
$l = \OC::$server->getL10N('lib');
list($extractDir, $path) = self::downloadApp($data);
Method fixOrientation
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fixOrientation() {
$o = $this->getOrientation();
$this->logger->debug('OC_Image->fixOrientation() Orientation: ' . $o, ['app' => 'core']);
$rotate = 0;
$flip = false;