fisharebest/webtrees

View on GitHub

Showing 1,725 of 2,402 total issues

Avoid too many return statements within this method.
Open

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