Showing 3,235 of 4,504 total issues
Method createFile
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createFile($name, $data = null) {
# the check here is necessary, because createFile uses put covered in sabre/file.php
# and not touch covered in files/view.php
if (Filesystem::isForbiddenFileOrDir($name)) {
throw new SabreForbidden();
Method opendir
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function opendir($path) {
$folder = $this->getDriveFile($path);
if ($folder) {
$files = [];
$duplicates = [];
Method getVersions
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getVersions($uid, $filename) {
$versions = [];
if ($filename === null || $filename === '') {
return $versions;
}
Method parseRetentionObligation
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseRetentionObligation() {
$splitValues = \explode(',', $this->retentionObligation);
if (!isset($splitValues[0])) {
$minValue = 'auto';
} else {
Method getSharedWith
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSharedWith($userId, $shareType, $node, $limit, $offset) {
/** @var Share[] $shares */
$shares = [];
if ($shareType === \OCP\Share::SHARE_TYPE_USER) {
Method call
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function call($parameters) {
$request = \OC::$server->getRequest();
$method = $request->getMethod();
// Prepare the request variables
Method execute
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$appSteps = $this->getAppsRepairSteps($output);
// Handle listing repair steps
$steps = \array_merge(
\OC\Repair::getRepairSteps(),
Function reload
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reload: function() {
this.showMask();
if (this._reloadCall) {
this._reloadCall.abort();
}
Function applyGroupSelect
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyGroupSelect: function (element, user, checked) {
var $element = $(element);
var checkHandler = null;
if(user) { // Only if in a user row, and not the #newusergroups select
Function getFilteredFiles
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFilteredFiles: function(filter, options) {
options = options || {};
var self = this;
var deferred = $.Deferred();
var promise = deferred.promise();
Function autocompleteRenderItem
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
autocompleteRenderItem: function(ul, item) {
var text = item.label;
var showIcon = false;
var iconClass = "";
var typeInfo = t('core', 'User');
Function _create
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var self = this;
this.originalTitle = this.element.attr('title');
this.options.title = this.options.title || this.originalTitle;
Method setupFromToken
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function setupFromToken($token, $relativePath = null, $password = null) {
\OC_User::setIncognitoMode(true);
$linkItem = \OCP\Share::getShareByToken($token, !$password);
if ($linkItem === false || ($linkItem['item_type'] !== 'file' && $linkItem['item_type'] !== 'folder')) {
Method handleUpdateProperties
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handleUpdateProperties($path, PropPatch $propPatch) {
$node = $this->server->tree->getNodeForPath($path);
if (!($node instanceof SystemTagNode)) {
return;
}
Method save
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function save() {
if (\is_array($this->tags)) {
foreach ($this->tags as $tag) {
try {
if (!$this->mapper->tagExists($tag)) {
Method post_deleteUser
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function post_deleteUser($arguments) {
// Find all objectid/tagId pairs.
$result = null;
try {
$stmt = \OCP\DB::prepare('SELECT `id` FROM `' . self::TAG_TABLE . '` '
Method getShareByToken
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getShareByToken($token) {
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
try {
$share = $provider->getShareByToken($token);
Method resizeAndStore
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function resizeAndStore() {
$image = $this->preview;
if (!($image instanceof IImage)) {
Util::writeLog(
'core',
Method checkTokenCredentials
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkTokenCredentials(IToken $dbToken, $token) {
// Check whether login credentials are still valid and the user was not disabled
// This check is performed each 5 minutes per default
// However, we try to read last_check_timeout from the appconfig table so the
// administrator could change this 5 minutes timeout
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var self = this;
this.$el.html(this.template());
this.$el.find('[title]').tooltip({placement: 'bottom'});