owncloud/core

View on GitHub
apps/dav/lib/Meta/MetaPlugin.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method handleGetProperties has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handleGetProperties(PropFind $propFind, INode $node) {
        if ($node instanceof MetaFolder) {
            $propFind->handle(self::PATH_FOR_FILEID_PROPERTYNAME, function () use ($node) {
                $fileId = $node->getName();

Severity: Minor
Found in apps/dav/lib/Meta/MetaPlugin.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return $node->getVersionEditedBy();
    Severity: Major
    Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return '';
      Severity: Major
      Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $node->getVersionTag();
        Severity: Major
        Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $node->getVersionTag();
          Severity: Major
          Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $user !== null ? $user->getDisplayName() : '';
            Severity: Major
            Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $user !== null ? $user->getDisplayName() : '';
              Severity: Major
              Found in apps/dav/lib/Meta/MetaPlugin.php - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status