BookStackApp/BookStack

View on GitHub
app/Users/Controllers/UserController.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method update has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function update(Request $request, int $id)
    {
        $this->preventAccessInDemoMode();
        $this->checkPermission('users-manage');

Severity: Minor
Found in app/Users/Controllers/UserController.php - About 1 hr to fix

    Method store has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function store(Request $request)
        {
            $this->checkPermission('users-manage');
    
            $authMethod = config('auth.method');
    Severity: Minor
    Found in app/Users/Controllers/UserController.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status