owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Avoid too many return statements within this method.
Open

        return 0;
Severity: Major
Found in core/Command/User/Add.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $c->query('ServerContainer')->getTwoFactorAuthManager();
    Severity: Major
    Found in core/Application.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return new DataResponse([
                  'uri' => $uri]);
      Severity: Major
      Found in core/Controller/AppRegistryController.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $c->query('ServerContainer')->getL10N('core');
        Severity: Major
        Found in core/Application.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return new RedirectResponse($this->getDefaultUrl());
          Severity: Major
          Found in core/Controller/LoginController.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $c->query('ServerContainer')->getCache();
            Severity: Major
            Found in core/Application.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return new CloudController(
                              $c->query('AppName'),
                              $c->query('Request')
                          );
              Severity: Major
              Found in core/Application.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $c->query('ServerContainer')->getSecureRandom();
                Severity: Major
                Found in core/Application.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $c->query('ServerContainer')->getUserSession();
                  Severity: Major
                  Found in core/Application.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return new DataResponse(
                                    ['data' => ['message' => $this->l->t('Crop is not square')]],
                                    Http::STATUS_BAD_REQUEST
                                );
                    Severity: Major
                    Found in core/Controller/AvatarController.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return new DataResponse(
                                          ['data' => 'notsquare'],
                                          Http::STATUS_OK,
                                          $headers
                                      );
                      Severity: Major
                      Found in core/Controller/AvatarController.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return new CronController(
                                        $c->query('AppName'),
                                        $c->query('Request'),
                                        $c->query(IConfig::class),
                                        $c->query(ILogger::class),
                        Severity: Major
                        Found in core/Application.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return new LicenseController(
                                          $c->query('AppName'),
                                          $c->query('Request'),
                                          $server->getLicenseManager()
                                      );
                          Severity: Major
                          Found in core/Application.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $c->query('ServerContainer')->getConfig();
                            Severity: Major
                            Found in core/Application.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return new DataResponse([
                                              "code" => "INVALID_PARAMETER",
                                              "message" => "the file already exists"
                                          ], 403);
                              Severity: Major
                              Found in core/Controller/AppRegistryController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return new DataResponse(
                                                ['data' => ['message' => $this->l->t('No image or file provided')]],
                                                Http::STATUS_BAD_REQUEST,
                                                $headers
                                            );
                                Severity: Major
                                Found in core/Controller/AvatarController.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return new RolesController(
                                                  $c->query('AppName'),
                                                  $c->query('Request'),
                                                  $c->query('L10N'),
                                                  $serverContainer->getEventDispatcher()
                                  Severity: Major
                                  Found in core/Application.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $c->query('ServerContainer')->getSession();
                                    Severity: Major
                                    Found in core/Application.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return new OC_Defaults;
                                      Severity: Major
                                      Found in core/Application.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return new TokenController(
                                                        $c->query('AppName'),
                                                        $c->query('Request'),
                                                        $c->query('UserManager'),
                                                        $c->query('ServerContainer')->query('OC\Authentication\Token\IProvider'),
                                        Severity: Major
                                        Found in core/Application.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language