fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,402 total issues

Avoid too many return statements within this method.
Open

                return Registry::submitterFactory()->make($xref, $tree);
Severity: Major
Found in app/Services/DataFixService.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $this->viewResponse('admin/import-fail', [
                    'error' => e($ex->getMessage()),
                    'tree'  => $tree,
                ]);
    Severity: Major
    Found in app/Http/RequestHandlers/GedcomLoad.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return self::legacyCousinName($up + $down - 3, $sex2);
      Severity: Major
      Found in app/Services/RelationshipService.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                    return self::legacyCousinName($cousin, $sex2);
        Severity: Major
        Found in app/Services/RelationshipService.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                      return I18N::translate('%s three times removed descending', self::legacyCousinName($cousin, $sex2));
          Severity: Major
          Found in app/Services/RelationshipService.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return I18N::translateContext('FEMALE', 'twelfth cousin');
            Severity: Major
            Found in app/Services/RelationshipService.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return I18N::translate('third cousin');
              Severity: Major
              Found in app/Services/RelationshipService.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return I18N::translateContext('FEMALE', 'first %s', $relation);
                Severity: Major
                Found in app/Services/RelationshipService.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->unhandledExceptionResponse($request, $exception);
                  Severity: Major
                  Found in app/Http/Middleware/HandleExceptions.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return '';
                    Severity: Major
                    Found in app/Http/RequestHandlers/IndividualPage.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return $this->viewResponse('errors/no-tree-access', ['title' => '', 'tree' => null]);
                      Severity: Major
                      Found in app/Http/RequestHandlers/HomePage.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                                        return I18N::translate('great ×%s grandfather', I18N::number($up - 3));
                        Severity: Major
                        Found in app/Services/RelationshipService.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return I18N::translateContext('FEMALE', 'fifteenth cousin');
                          Severity: Major
                          Found in app/Services/RelationshipService.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return I18N::translate('eleventh cousin');
                            Severity: Major
                            Found in app/Services/RelationshipService.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return I18N::translate('fourth %s', $relation);
                              Severity: Major
                              Found in app/Services/RelationshipService.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return response('', StatusCodeInterface::STATUS_NO_CONTENT);
                                Severity: Major
                                Found in app/Http/RequestHandlers/UpgradeWizardStep.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return $this->viewResponse('admin/import-progress', [
                                                  'errors'   => $errors,
                                                  'progress' => $progress,
                                                  'status'   => '',
                                                  'tree'     => $tree,
                                  Severity: Major
                                  Found in app/Http/RequestHandlers/GedcomLoad.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this;
                                    Severity: Major
                                    Found in app/Date/AbstractCalendarDate.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return $this->viewResponse('admin/import-progress', [
                                                          'errors'   => '',
                                                          'progress' => $progress,
                                                          'status'   => e($ex->getMessage()),
                                                          'tree'     => $tree,
                                      Severity: Major
                                      Found in app/Http/RequestHandlers/GedcomLoad.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->step5Administrator($data);
                                        Severity: Major
                                        Found in app/Http/RequestHandlers/SetupWizard.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language