fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

Avoid too many return statements within this method.
Open

                    return I18N::translateContext('FEMALE', 'fourteenth 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 $this;
      Severity: Major
      Found in app/Date/AbstractCalendarDate.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 I18N::translate('great ×7 grandchild');
          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 - 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($up + $down + 2, $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('fourteenth cousin');
                Severity: Major
                Found in app/Services/RelationshipService.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 I18N::translate('%s × cousin', I18N::number($n));
                    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->datatables_service->handleCollection($request, $unused_files, $search_columns, $sort_columns, $callback);
                        Severity: Major
                        Found in app/Http/RequestHandlers/ManageMediaData.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

                            Avoid too many return statements within this method.
                            Open

                                    return $dispatcher->dispatch($request);
                            Severity: Major
                            Found in app/Http/Middleware/Router.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return [
                                                  new CensusOfCanada(),
                                                  new CensusOfFrance(),
                                                  new CensusOfCzechRepublic(),
                                                  new CensusOfDenmark(),
                              Severity: Major
                              Found in app/Census/Census.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return
                                            '<div class="wt-text-overflow-elipsis">' .
                                            '<button type="button" class="btn btn-text p-0" href="#" data-bs-target=".' . e($id) . '" data-bs-toggle="collapse" aria-controls="' . e($id) . '" aria-expanded="' . ($expanded ? 'true' : 'false') . '">' .
                                            view('icons/expand') .
                                            view('icons/collapse') .
                                Severity: Major
                                Found in app/Elements/NoteStructure.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return strip_tags(I18N::translateContext('CENTURY', '9th'));
                                  Severity: Major
                                  Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return strip_tags(I18N::translateContext('CENTURY', '8th'));
                                    Severity: Major
                                    Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                                      return true;
                                      Severity: Major
                                      Found in app/Individual.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return strip_tags(I18N::translateContext('CENTURY', '16th'));
                                        Severity: Major
                                        Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language