owncloud/core

View on GitHub

Showing 3,230 of 4,482 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

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

            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 new DataResponse(['data' => ['message' => $this->l->t('An error occurred. Please contact your admin.')]], 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 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 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')->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 DataResponse(
                                              ['data' => ['message' => $this->l->t('Unknown filetype')]],
                                              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 TwoFactorChallengeController(
                                        $c->query('AppName'),
                                        $c->query('Request'),
                                        $c->query('TwoFactorAuthManager'),
                                        $c->query('UserSession'),
                        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')->getLogger();
                          Severity: Major
                          Found in core/Application.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return Util::getDefaultEmailAddress('lostpassword-noreply');
                            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" => $e->getMessage()
                                          ], 400);
                              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')->getUserManager();
                                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 TimeFactory();
                                    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('Invalid image')]],
                                                          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 DataResponse(['data' => ['message' => $this->l->t('An error occurred. Please contact your admin.')]], Http::STATUS_BAD_REQUEST);
                                        Severity: Major
                                        Found in core/Controller/AvatarController.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language