owncloud/core

View on GitHub

Showing 3,235 of 4,503 total issues

Avoid too many return statements within this method.
Open

                return $node->getSize();
Severity: Major
Found in apps/dav/lib/Connector/Sabre/FilesPlugin.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return $path . '?signature=' . $s->getSignature() . '&expires=' . \urlencode($validUntil->format(\DateTime::ATOM));
    Severity: Major
    Found in apps/dav/lib/Files/PublicFiles/PublicFilesPlugin.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $node->getSize();
      Severity: Major
      Found in apps/dav/lib/Connector/Sabre/FilesPlugin.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return false;
        Severity: Major
        Found in apps/dav/lib/Connector/Sabre/FilesPlugin.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return 0;
          Severity: Major
          Found in apps/files_external/lib/Command/Create.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return 0;
            Severity: Major
            Found in apps/files_external/lib/Command/Applicable.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return 1;
              Severity: Major
              Found in apps/files_external/lib/Command/Import.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return 1;
                Severity: Major
                Found in apps/files_external/lib/Command/Create.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return 1;
                  Severity: Major
                  Found in apps/files_external/lib/Command/Create.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return $this->getUnreadCount($node);
                    Severity: Major
                    Found in apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return \strtolower(\str_replace(' ', '_', $header));
                      Severity: Major
                      Found in apps/files_external/lib/Command/ListCommand.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return new DataResponse(
                                        [
                                            'message' => (string)$this->l10n->t('Unsatisfied authentication mechanism parameters')
                                        ],
                                        Http::STATUS_UNPROCESSABLE_ENTITY
                        Severity: Major
                        Found in apps/files_external/lib/Controller/StoragesController.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return null;
                          Severity: Major
                          Found in apps/files_external/lib/Controller/StoragesController.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return new GetLastModified($node->getDeleteTimestamp());
                            Severity: Major
                            Found in apps/dav/lib/TrashBin/TrashBinPlugin.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return new DataResponse(
                                              [
                                                  'message' => (string)$this->l10n->t('Not permitted to use authentication mechanism "%s"', [
                                                      $authMechanism->getIdentifier()
                                                  ])
                              Severity: Major
                              Found in apps/files_external/lib/Controller/StoragesController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return new DataResponse(
                                                [
                                                    'message' => (string)$this->l10n->t('Unsatisfied backend parameters')
                                                ],
                                                Http::STATUS_UNPROCESSABLE_ENTITY
                                Severity: Major
                                Found in apps/files_external/lib/Controller/StoragesController.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return $values;
                                  Severity: Major
                                  Found in apps/files_external/lib/Command/ListCommand.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return 1;
                                    Severity: Major
                                    Found in apps/files_external/lib/Command/Create.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return false;
                                      Severity: Major
                                      Found in apps/dav/lib/Connector/Sabre/AutorenamePlugin.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->parseData($entry, $storageService);
                                        Severity: Major
                                        Found in apps/files_external/lib/Command/Import.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language