fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

Avoid too many return statements within this method.
Open

                return Registry::repositoryFactory()->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->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 $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 redirect($locations->first()->url());
        Severity: Major
        Found in app/Http/RequestHandlers/SearchGeneralPage.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return $this->response();
          Severity: Major
          Found in app/Http/Middleware/BadBotBlocker.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $response->withHeader('cache-control', 'public,max-age=31536000');
            Severity: Major
            Found in app/Http/RequestHandlers/MediaFileThumbnail.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return new HijriDate($this);
              Severity: Major
              Found in app/Date/AbstractCalendarDate.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 '';
                  Severity: Major
                  Found in app/Http/RequestHandlers/IndividualPage.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                                return I18N::translate('great ×%s grandparent', I18N::number($up - 2));
                    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 ×4 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 ×7 grandson');
                        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 grandchild', 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::translate('great ×%s grandson', I18N::number($up - 2));
                            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::translateContext('MALE', 'seventh 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('MALE', '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('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', 'fifth %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('(age %s)', $age);
                                        Severity: Major
                                        Found in app/Http/RequestHandlers/IndividualPage.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language