Showing 4,504 of 4,504 total issues
Function triggerAction
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerAction: function(actionName, fileInfoModel, fileList) {
var actionFunc;
var actions = this.get(
fileInfoModel.get('mimetype'),
fileInfoModel.isDirectory() ? 'dir' : 'file',
Function onPermissionChange
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onPermissionChange: function(event) {
var $element = $(event.target);
var $li = $element.closest('li');
var shareId = $li.data('share-id');
var shareType = $li.data('share-type');
Function joinPaths
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
joinPaths: function () {
if (arguments.length < 1) {
return '';
}
var path = '';
Function registerAppsSlideToggle
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var registerAppsSlideToggle = function () {
var buttons = $('[data-apps-slide-toggle]');
$(document).click(function (event) {
Function hide
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide: function ($row, callback) {
var self = this;
var $notification = $('#notification');
if (_.isFunction($row)) {
Method exec
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function exec($folder, $license, $gitRoot = false) {
if (isset($this->licenseText[$license])) {
echo "Unknown license $license. Supported: agpl, gpl or ocl";
}
$license = $this->licenseText[$license];
Method changeMail
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function changeMail($token, $userId) {
$user = $this->userManager->get($userId);
$sessionUser = $this->userSession->getUser();
if ($user->getUID() !== $sessionUser->getUID()) {
Method notifyRecipients
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function notifyRecipients($itemSource, $itemType, $shareType, $recipient) {
$recipientList = [];
$sender = $this->userSession->getUser();
if ($shareType === Share::SHARE_TYPE_USER) {
$recipientList[] = $this->userManager->get($recipient);
Method removeShare
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function removeShare($mountPoint) {
if ($this->uid === null) {
throw new NoUserException();
}
Method run
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function run($argument) {
$enabled = $this->config->getAppValue('files_sharing', 'cronjob_scan_external_enabled', 'no');
if ($enabled !== 'yes') {
$this->logger->debug(
"Fed share scanner disabled, ignoring the run"
Method getCalendarById
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCalendarById($calendarId) {
$fields = \array_values($this->propertyMap);
$fields[] = 'id';
$fields[] = 'uri';
$fields[] = 'synctoken';
Method convertToSabreException
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function convertToSabreException(\Exception $e) {
if ($e instanceof FileContentNotAllowedException) {
// the file content is not permitted
throw new DAVForbiddenException($e->getMessage(), $e->getRetry(), $e);
}
Method createDavSharesTable
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createDavSharesTable(Schema $schema) {
if (!$schema->hasTable("{$this->prefix}dav_shares")) {
$table = $schema->createTable("{$this->prefix}dav_shares");
$table->addColumn('id', 'integer', [
'autoincrement' => true,
Method createSchedulingObjectsTable
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createSchedulingObjectsTable(Schema $schema) {
if (!$schema->hasTable("{$this->prefix}schedulingobjects")) {
$table = $schema->createTable("{$this->prefix}schedulingobjects");
$table->addColumn('id', 'integer', [
'autoincrement' => true,
Method onReport
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function onReport($reportName, $report, $uri) {
$reportTargetNode = $this->server->tree->getNodeForPath($uri);
if (!$reportTargetNode instanceof Directory ||
$reportName !== self::REPORT_NAME) {
return;
Method xmlSerialize
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function xmlSerialize(Writer $writer) {
$cs = '{' . Plugin::NS_OWNCLOUD . '}';
if ($this->organizer !== null) {
$writer->startElement($cs . 'organizer');
Method configure
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
$this
->setName('files_external:applicable')
->setDescription('Manage applicable users and groups for a mount')
->addArgument(
Method createAddressBook
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createAddressBook($principalUri, $url, array $properties) {
$values = [
'displayname' => null,
'description' => null,
'principaluri' => $principalUri,
Method update
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update(
$id,
$mountPoint,
$backend,
$authMechanism,
Method getFolderContents
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getFolderContents($path) {
$this->log('enter: '.__FUNCTION__."($path)");
try {
$path = $this->buildPath($path);
$result = [];