Showing 3,235 of 4,504 total issues
Function _onClickRevertVersion
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onClickRevertVersion: function(ev) {
var self = this;
var $target = $(ev.target);
var fileInfoModel = this.versionsRoot.getFileInfo();
var revision;
Function _renderRow
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderRow: function(fileData, options) {
options = options || {};
var type = fileData.type || 'file',
mime = fileData.mimetype,
path = fileData.path || this.getCurrentDirectory(),
Function _extendFileActions
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_extendFileActions: function(fileList) {
var self = this;
fileList.fileActions.registerAction({
name: 'lock-status',
displayName: t('files', 'Lock status'),
Method checkStorageAvailability
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkStorageAvailability() {
// WARNING: Disabling this setting is recommended only in tightly integrated federated setups as temporarly setting,
// should NOT be used in decentralized federation setup. It could cause bad user experience when dealing
// with deleted external shares
// NOTE: This allows administrator to disable cleanup of invalid shares so only manual removal by user or admin is possible,
Method createShare
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createShare(
Address $ownerAddress,
Address $sharedByAddress,
$shareWith,
$remoteId,
Method createFederatedShare
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createFederatedShare(IShare $share) {
$token = $this->tokenHandler->generateToken();
$shareId = $this->addShareToDB(
$share->getNodeId(),
$share->getNodeType(),
Method createCalendarsTable
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createCalendarsTable(Schema $schema) {
if (!$schema->hasTable("{$this->prefix}calendars")) {
$table = $schema->createTable("{$this->prefix}calendars");
$table->addColumn('id', 'integer', [
'autoincrement' => true,
Method httpGet
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function httpGet(RequestInterface $request, ResponseInterface $response) {
$queryParams = $request->getQueryParameters();
if (!\array_key_exists('preview', $queryParams)) {
return true;
}
Method fopen
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fopen($path, $mode) {
$pos = \strrpos($path, '.');
if ($pos !== false) {
$ext = \substr($path, $pos);
} else {
Method findInvalidShareOwner
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function findInvalidShareOwner(InputInterface $input, OutputInterface $output, $fix, $scopeUid) {
$output->writeln([
"<info>==========================</info>",
"<info>Searching for shares that have invalid uid_owner, meaning share uid_owner that does not match associated file storage id.</info>",
"<info>==========================</info>",
Method getFileInfo
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFileInfo($path, $includeMountPoints = true) {
$this->assertPathLength($path);
if (!Filesystem::isValidPath($path)) {
return false;
}
Method updateForRecipient
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateForRecipient(\OCP\Share\IShare $share, $recipient) {
if ($share->getShareType() === \OCP\Share::SHARE_TYPE_USER) {
if ($share->getSharedWith() !== $recipient) {
throw new ProviderException('Recipient does not match');
}
Method getAllowedCorsHeaders
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function getAllowedCorsHeaders(\OCP\IConfig $config = null) {
if ($config === null) {
$config = \OC::$server->getConfig();
}
$allowedDefaultHeaders = [
Method loadRoutes
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadRoutes($app = null) {
if (\is_string($app)) {
$app = \OC_App::cleanAppId($app);
}
Method configure
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
$this
->setName('db:convert-type')
->setDescription('Convert the ownCloud database to the newly configured one. This feature is currently experimental.')
->addArgument(
File JobList.php
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Joas Schilling <coding@schilljs.com>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Robin Appelman <icewind@owncloud.com>
Storage
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Storage extends DAV implements ISharedStorage {
/** @var string */
private $remoteUser;
/** @var string */
private $remote;
Share20OcsController
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Share20OcsController extends OCSController {
/** @var IManager */
private $shareManager;
/** @var IGroupManager */
private $groupManager;
Calendar
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
public function __construct(BackendInterface $caldavBackend, $calendarInfo, IL10N $l10n) {
parent::__construct($caldavBackend, $calendarInfo);
if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) {
Checker
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Checker {
public const CACHE_KEY = 'oc.integritycheck.checker';
/** @var EnvironmentHelper */
private $environmentHelper;
/** @var AppLocator */