owncloud/core

View on GitHub
apps/federation/lib/AppInfo/Application.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method registerService has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function registerService() {
        $container = $this->getContainer();

        $container->registerService('addServerMiddleware', function (IAppContainer $c) {
            return new AddServerMiddleware(
Severity: Minor
Found in apps/federation/lib/AppInfo/Application.php - About 1 hr to fix

    Method registerHooks has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function registerHooks() {
            $container = $this->getContainer();
            $hooksManager = new Hooks($container->query('TrustedServers'));
    
            Util::connectHook(
    Severity: Minor
    Found in apps/federation/lib/AppInfo/Application.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status