Showing 3,235 of 4,504 total issues
Function reload
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reload: function () {
if (!this._systemTagIds.length) {
// don't reload
this.updateEmptyContent();
this.setFiles([]);
Function apply
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var apply = function () {
var username = dialog.find('[name=username]').val();
var password = dialog.find('[name=password]').val();
var endpoint = OC.generateUrl('apps/files_external/userglobalstorages/{id}', {
id: mountData.id
Function registerAction
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAction: function (action) {
var mime = action.mime;
var name = action.name;
var actionSpec = {
action: action.actionHandler,
Function highlightFiles
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
highlightFiles: function(files, highlightFunction) {
// Detection of the uploaded element
var filename = files[files.length - 1];
var $fileRow = this.findFileEl(filename);
Function _onClickDownloadSelected
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onClickDownloadSelected: function(event) {
var files;
var dir = this.getCurrentDirectory();
if (this.isAllSelected() && this.getSelectedFiles().length > 1) {
files = OC.basename(dir);
Function getTypeForMethod
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTypeForMethod(method, model) {
var type = methodMap[method];
if (!type) {
// return method directly
Function jqxhr
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var jqxhr = $.get(OC.filePath(props.appid, '', props.scriptName), function (data) {
popup.html(data).ready(function () {
popup.prepend('<span class="arrow ' + arrowclass + '"></span><h2>' + t('core', 'Settings') + '</h2><a class="close"></a>').show();
popup.find('.close').bind('click', function () {
popup.remove();
Function _show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_show: function (container, dir, leafname, leaflink) {
var self = this;
this._clear(container);
Function generateUrl
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateUrl: function (url, params, options) {
var defaultOptions = {
escape: true
},
allOptions = options || {};
Method execute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(InputInterface $input, OutputInterface $output): int {
$remoteStorages = $this->getRemoteStorages();
$output->writeln(\count($remoteStorages) . " remote storage(s) need(s) to be checked");
Method __construct
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($options) {
$this->memcacheFactory = \OC::$server->getMemCacheFactory();
$this->httpClient = \OC::$server->getHTTPClientService();
$this->logger = \OC::$server->getLogger();
$this->config = \OC::$server->getConfig();
Method changePersonalPassword
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function changePersonalPassword($args) {
// Check if we are an user
\OC_JSON::callCheck();
\OC_JSON::checkLoggedIn();
Method syncThemAll
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function syncThemAll(\Closure $callback) {
$trustedServers = $this->dbHandler->getAllServer();
foreach ($trustedServers as $trustedServer) {
$url = $trustedServer['url'];
$callback($url, null);
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run($argument) {
//Current time
$today = new \DateTime("today");
$today = $today->format('Y-m-d H:i:s');
Method copy_recursive
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function copy_recursive($source, $destination, View $view) {
$size = 0;
if ($view->is_dir($source)) {
$view->mkdir($destination);
$view->touch($destination, $view->filemtime($source));
Method getDavPermissions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDavPermissions() {
$p = '';
if ($this->info->isShared()) {
$p .= 'S';
}
Method getAccepted
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAccepted($remote, $shareWith) {
$event = $this->eventDispatcher->dispatch(
new GenericEvent('', ['remote' => $remote]),
'remoteshare.received'
);
Method lock
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function lock($uri, Locks\LockInfo $lockInfo) {
if ($this->isPublicEndpoint) {
throw new Forbidden('Forbidden to lock from public endpoint');
}
try {
Method setName
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setName($name) {
$mountPoint = $this->info->getMountPoint();
// rename of a shared mount should always be possible
if (!($mountPoint instanceof SharedMount) && !$this->info->isUpdateable()) {
throw new \Sabre\DAV\Exception\Forbidden();
Method updateCalendar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateCalendar($calendarId, PropPatch $propPatch) {
$supportedProperties = \array_keys($this->propertyMap);
$supportedProperties[] = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
$propPatch->handle($supportedProperties, function ($mutations) use ($calendarId) {