bizley/yii2-podium

View on GitHub

Showing 223 of 419 total issues

Avoid too many return statements within this method.
Open

                return Json::encode($data);
Severity: Major
Found in src/controllers/ForumController.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return Json::encode($data);
    Severity: Major
    Found in src/controllers/ForumController.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return [
                  false,
                  Yii::t('podium/flash', 'The password reset link has been sent to your e-mail address.'),
                  true
              ];
      Severity: Major
      Found in src/models/forms/ResetForm.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $this->module->goPodium();
        Severity: Major
        Found in src/controllers/AccountController.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $this->render('deletepoll', ['model' => $poll]);
          Severity: Major
          Found in src/controllers/ForumController.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return Json::encode($data);
            Severity: Major
            Found in src/controllers/ForumController.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return false;
              Severity: Major
              Found in src/filters/PodiumRoleRule.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return $this->controller->redirect(['admin/members']);
                Severity: Major
                Found in src/actions/AdminAction.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $this->redirect(['members/view', 'id' => $model->id, 'slug' => $model->podiumSlug]);
                  Severity: Major
                  Found in src/controllers/MembersController.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $this->render('post', [
                                'replyFor' => $replyFor,
                                'preview' => $preview,
                                'model' => $model,
                                'thread' => $thread,
                    Severity: Major
                    Found in src/controllers/ForumPostController.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $this->render('deletepost', ['model' => $post]);
                      Severity: Major
                      Found in src/controllers/ForumPostController.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return Json::encode($data);
                        Severity: Major
                        Found in src/controllers/ForumPostController.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $this->render('report', ['model' => $model, 'post' => $post]);
                          Severity: Major
                          Found in src/controllers/ForumPostController.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return true;
                            Severity: Major
                            Found in src/controllers/BaseController.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                      return Json::encode($data);
                              Severity: Major
                              Found in src/controllers/ForumPostController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return $this->render('moveposts', [
                                            'model' => $thread,
                                            'list' => $list,
                                            'options' => $options,
                                            'listforum' => $listforum,
                                Severity: Major
                                Found in src/controllers/ForumPostController.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return Html::tag('span',
                                                  Html::tag('span', '', ['class' => 'glyphicon glyphicon-ok-circle'])
                                                  . ' ' . Yii::t('podium/view', "New categories' order has been saved."),
                                                  ['class' => 'text-success']
                                              );
                                  Severity: Major
                                  Found in src/controllers/AdminForumController.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return false;
                                    Severity: Major
                                    Found in src/controllers/BaseController.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return $this->redirect(['admin/members']);
                                      Severity: Major
                                      Found in src/controllers/AdminController.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return Html::tag('span',
                                                    Html::tag('span', '', ['class' => 'glyphicon glyphicon-warning-sign'])
                                                    . ' ' . Yii::t('podium/view', "Sorry! We can not save new categories' order."),
                                                    ['class' => 'text-danger']
                                                );
                                        Severity: Major
                                        Found in src/controllers/AdminForumController.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language