Showing 4,504 of 4,504 total issues
Function Client
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Client = function(options) {
this._root = options.root;
if (this._root.charAt(this._root.length - 1) === '/') {
this._root = this._root.substr(0, this._root.length - 1);
}
Function computerFileSize
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
computerFileSize: function (string) {
if (typeof string !== 'string') {
return null;
}
Function dialog_createTitlebar
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.dialog.dialog_createTitlebar = function() {
var uiDialogTitle;
this.uiDialogTitlebar = $( "<div>" );
this._addClass( this.uiDialogTitlebar,
"ui-dialog-titlebar", "ui-widget-header ui-helper-clearfix" );
Function callPropPatch
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function callPropPatch(client, options, model, headers) {
var changes = model.changed;
if (options.wait && _.isEmpty(changes)) {
// usually with "wait" mode, the changes aren't set yet,
changes = options.data;
Method sendEmail
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendEmail($userId, $mailAddress) {
$token = $this->config->getUserValue($userId, 'owncloud', 'changeMail');
if ($token !== '') {
$splittedToken = \explode(':', $token);
if ((\count($splittedToken)) === 3 && $splittedToken[0] > ($this->timeFactory->getTime() - 60 * 5)) {
Method getPanel
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getPanel() {
$tmpl = new Template('files_sharing', 'settings-personal');
$enabledConfigs = [];
foreach (self::USER_CONFIGS as $config) {
if ($config['key'] === 'auto_accept_share') {
Method sendNotification
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendNotification(IShare $share) {
if ($share->getShareType() !== \OCP\Share::SHARE_TYPE_USER &&
$share->getShareType() !== \OCP\Share::SHARE_TYPE_GROUP) {
return;
}
Method getProperties
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getProperties($properties) {
if (($properties === null) || ($properties === [])) {
$properties = \array_keys($this->properties);
}
Method createAddressbooksTable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createAddressbooksTable(Schema $schema) {
if (!$schema->hasTable("{$this->prefix}addressbooks")) {
$table = $schema->createTable("{$this->prefix}addressbooks");
$table->addColumn('id', 'integer', [
'autoincrement' => true,
Method initFederatedShareProvider
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function initFederatedShareProvider() {
$addressHandler = new AddressHandler(
\OC::$server->getURLGenerator(),
\OC::$server->getL10N('federatedfilesharing')
);
Method createCalendar
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createCalendar($principalUri, $calendarUri, array $properties) {
$principalUri = $this->convertPrincipal($principalUri, true);
$values = [
'principaluri' => $principalUri,
'uri' => $calendarUri,
Method xmlDeserialize
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function xmlDeserialize(Reader $reader) {
$newProps = [
'properties' => [],
'searchInfo' => null,
];
Method initSession
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function initSession() {
// Let the session name be changed in the initSession Hook
$sessionName = OC_Util::getInstanceId();
try {
Method get
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get($groupSearch = '', $userSearch = '') {
$key = $groupSearch . '::' . $userSearch;
if (isset($this->metaData[$key])) {
return $this->metaData[$key];
}
Method getTagsByIds
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTagsByIds($tagIds) {
if (!\is_array($tagIds)) {
$tagIds = [$tagIds];
}
Method searchByTag
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function searchByTag($tag, $userId) {
$sql = 'SELECT `fileid`, `storage`, `path`, `parent`, `name`, ' .
'`mimetype`, `mimepart`, `size`, `mtime`, ' .
'`encrypted`, `etag`, `permissions`, `checksum` ' .
'FROM `*PREFIX*filecache` `file`, ' .
Method registerMounts
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function registerMounts(IUser $user, array $mounts) {
/** @var ICachedMountInfo[] $newMounts */
$newMounts = \array_map(function (IMountPoint $mount) use ($user) {
// filter out any storages which aren't scanned yet since we aren't interested in files from those storages (yet)
if ($mount->getStorageRootId() === -1) {
Method propagateChange
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function propagateChange($internalPath, $time, $sizeDifference = 0) {
$storageId = (int)$this->storage->getStorageCache()->getNumericId();
$parents = $this->getParents($internalPath);
Method doAppUpgrade
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doAppUpgrade() {
$apps = \OC_App::getEnabledApps();
$priorityTypes = ['authentication', 'filesystem', 'logging'];
$pseudoOtherType = 'other';
$stacks = [$pseudoOtherType => []];
Method rename
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rename($from, $to) {
$from = \trim($from);
$to = \trim($to);
if ($to === '' || $from === '') {