fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,402 total issues

Avoid too many return statements within this method.
Open

                return I18N::translate('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('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 I18N::translate('third %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 $modules;
        Severity: Major
        Found in app/Services/ModuleService.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $this->viewResponse('search-general-page', [
                      'all_trees'           => $all_trees,
                      'exist_locations'     => $exist_locations,
                      'exist_notes'         => $exist_notes,
                      'exist_repositories'  => $exist_repositories,
          Severity: Major
          Found in app/Http/RequestHandlers/SearchGeneralPage.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                        return I18N::translate('great ×%s grandparent', I18N::number($up));
            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('great ×%s grandparent', I18N::number($up + 1));
              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('MALE', 'thirteenth 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', 'thirteenth 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('great ×%s grandfather', I18N::number($up - 1));
                    Severity: Major
                    Found in app/Services/RelationshipService.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return new Collection();
                      Severity: Major
                      Found in app/Services/ServerCheckService.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return I18N::translateContext('MALE', 'sixth 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', 'second 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', '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 $modules->sort($this->moduleComparator());
                              Severity: Major
                              Found in app/Services/ModuleService.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT_FOUND);
                                Severity: Major
                                Found in app/Http/RequestHandlers/MediaFileThumbnail.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return redirect(route(LoginPage::class, ['url' => '']));
                                  Severity: Major
                                  Found in app/Http/RequestHandlers/HomePage.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->wizardStepDownload();
                                    Severity: Major
                                    Found in app/Http/RequestHandlers/UpgradeWizardStep.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                              return I18N::translate('great-great-granddaughter');
                                      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('great ×6 grandson');
                                        Severity: Major
                                        Found in app/Services/RelationshipService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language