Showing 59 of 59 total issues
Similar blocks of code found in 9 locations. Consider refactoring. Open
public int BusinessUser { get => Convert.ToInt32(this["BUSINESS_USER"], CultureInfo.InvariantCulture); set => this["BUSINESS_USER"] = value.ToString(CultureInfo.InvariantCulture); }
- Read upRead up
Similar blocks of code found in 9 locations. Consider refactoring. Open
public int Perfstats { get => Convert.ToInt32(this["PERFSTATS"], CultureInfo.InvariantCulture); set => this["PERFSTATS"] = value.ToString(CultureInfo.InvariantCulture); }
- Read upRead up
Avoid too many return
statements within this method. Open
return new ConflictResult();
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, reason: "Missing new lock identifier");
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, existingLock.LockId);
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, reason: "File not locked");
Avoid too many return
statements within this method. Open
return new ConflictResult();
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, reason: "Missing existing lock");
Avoid too many return
statements within this method. Open
return new JsonResult( new CreateChildContainerResponse( new(jsonResult.Data.Name, Url.GetWopiUrl(WopiResourceType.Container, newIdentifier)), jsonResult.Data));
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, reason: "File not locked");
Avoid too many return
statements within this method. Open
return NotFound();
Avoid too many return
statements within this method. Open
return new ConflictResult();
Avoid too many return
statements within this method. Open
return Ok();
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, "Could not create lock");
Avoid too many return
statements within this method. Open
return StatusCode(StatusCodes.Status500InternalServerError);
Avoid too many return
statements within this method. Open
return StatusCode(StatusCodes.Status500InternalServerError);
Avoid too many return
statements within this method. Open
return new StatusCodeResult(StatusCodes.Status500InternalServerError);
Avoid too many return
statements within this method. Open
return new LockMismatchResult(Response, "Could not create lock");
Avoid too many return
statements within this method. Open
return AuthenticateResult.Fail(ex);