fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,400 total issues

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 $this->step6Install($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 self::legacyCousinName2($cousin + 1, $sex2, $this->legacyNameAlgorithm('sib' . $descent));
      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 response(nl2br((string) $exception), StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
          Severity: Major
          Found in app/Http/Middleware/HandleExceptions.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              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 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->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 $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 I18N::translate('great ×7 grandfather');
                      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 grandmother', 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::translate('great ×%s grandmother', 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 grandfather', 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-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 ×4 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 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 I18N::translate('%s twice removed ascending', 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('%1$s %2$s times removed descending', self::legacyCousinName($cousin, $sex2), I18N::number($removed));
                                      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('thirteenth cousin');
                                        Severity: Major
                                        Found in app/Services/RelationshipService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language