owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Avoid too many return statements within this method.
Open

            return $this->tagManager->canUserAssignTag($node->getSystemTag(), $this->userSession->getUser()) ? 'true' : 'false';
Severity: Major
Found in apps/dav/lib/SystemTag/SystemTagPlugin.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $owner->getUID();
    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 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 [];
        Severity: Major
        Found in apps/dav/lib/Files/FileLocksBackend.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return \OC::$server->getURLGenerator()
                              ->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileId' => $node->getInternalFileId()]);
          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 true;
            Severity: Major
            Found in apps/dav/lib/Connector/Sabre/Auth.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return null;
              Severity: Major
              Found in apps/dav/lib/CalDAV/BirthdayService.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return $davLocks;
                Severity: Major
                Found in apps/dav/lib/Files/FileLocksBackend.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return null;
                  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 [];
                      Severity: Major
                      Found in apps/dav/lib/Files/FileLocksBackend.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new ChecksumList($checksum);
                        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 $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 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 $key . ': ' . \json_encode($value);
                                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 $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 \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 $this->parseData($entry, $storageService);
                                      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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language