fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

Avoid too many return statements within this method.
Open

                return Registry::submissionFactory()->new($xref, $gedcom, $pending, $tree);
Severity: Major
Found in app/Factories/GedcomRecordFactory.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return new FrenchDate([$y, $m, $d]);
    Severity: Major
    Found in app/Factories/CalendarDateFactory.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return new CP437();
      Severity: Major
      Found in app/Factories/EncodingFactory.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return new ISO88591();
        Severity: Major
        Found in app/Factories/EncodingFactory.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return I18N::translateContext('FEMALE', 'partner');
          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('elder brother');
            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('brother’s wife', 'sister-in-law');
              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('father’s child', 'half-sibling');
                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, $gedcom);
                  Severity: Major
                  Found in app/Factories/GedcomRecordFactory.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return new ASCII();
                    Severity: Major
                    Found in app/Factories/EncodingFactory.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                                              return I18N::translate('ex-spouse');
                      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('twin brother');
                        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('brother’s daughter', 'niece');
                          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('father’s sibling', 'aunt/uncle');
                            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('husband’s brother', 'brother-in-law');
                              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('husband’s sister', 'sister-in-law');
                                Severity: Major
                                Found in app/Services/RelationshipService.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return new MacRoman();
                                  Severity: Major
                                  Found in app/Factories/EncodingFactory.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $this->replacementImageResponse(text: (string) StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR)
                                                    ->withHeader('x-image-exception', $ex->getMessage());
                                    Severity: Major
                                    Found in app/Factories/ImageFactory.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return I18N::translateContext('MALE', 'partner');
                                      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('sibling');
                                        Severity: Major
                                        Found in app/Services/RelationshipService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language