owncloud/core

View on GitHub
apps/files_external/lib/Controller/GlobalStoragesController.php

Summary

Maintainability
B
5 hrs
Test Coverage

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

    public function update(
        $id,
        $mountPoint,
        $backend,
        $authMechanism,
Severity: Minor
Found in apps/files_external/lib/Controller/GlobalStoragesController.php - About 1 hr to fix

    Method update has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            $id,
            $mountPoint,
            $backend,
            $authMechanism,
            $backendOptions,
    Severity: Major
    Found in apps/files_external/lib/Controller/GlobalStoragesController.php - About 1 hr to fix

      Method create has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function create(
              $mountPoint,
              $backend,
              $authMechanism,
              $backendOptions,
      Severity: Minor
      Found in apps/files_external/lib/Controller/GlobalStoragesController.php - About 1 hr to fix

        Method create has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                $mountPoint,
                $backend,
                $authMechanism,
                $backendOptions,
                $mountOptions,
        Severity: Major
        Found in apps/files_external/lib/Controller/GlobalStoragesController.php - About 1 hr to fix

          Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $AppName,
                  IRequest $request,
                  IL10N $l10n,
                  IGlobalStoragesService $globalStoragesService,
                  ILogger $logger
          Severity: Minor
          Found in apps/files_external/lib/Controller/GlobalStoragesController.php - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status