fisharebest/webtrees

View on GitHub

Showing 2,400 of 2,400 total issues

Avoid too many return statements within this method.
Open

                            return I18N::translate('%s once 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('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 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 I18N::translateContext('FEMALE', 'first 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', '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 I18N::translateContext('FEMALE', '%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 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::translateContext('FEMALE', '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 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 $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 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 $this->conditionMarried($sex);
                        Severity: Major
                        Found in app/Census/AbstractCensusColumnCondition.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                                  return I18N::translate('great ×7 grandmother');
                          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 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 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::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 grandson', 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 granddaughter', 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 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::legacyCousinName2($cousin + 1, $sex2, $this->legacyNameAlgorithm('sib' . $descent));
                                        Severity: Major
                                        Found in app/Services/RelationshipService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language