fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,400 total issues

Avoid too many return statements within this method.
Open

        return $this;
Severity: Major
Found in app/Relationship.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return I18N::translate('Family with parents');
    Severity: Major
    Found in app/Individual.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $this;
      Severity: Major
      Found in app/Relationship.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                          return strip_tags(I18N::translateContext('CENTURY', '5th'));
          Severity: Major
          Found in app/Statistics/Service/CenturyService.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 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

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                            return I18N::number(0);
                    Severity: Major
                    Found in app/Age.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

                                        return [
                                            new CensusOfUnitedStates(),
                                            new CensusOfRhodeIsland(),
                                            new CensusOfEngland(),
                                            new CensusOfScotland(),
                        Severity: Major
                        Found in app/Census/Census.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return I18N::plural('%s day', '%s days', $this->days, I18N::number($this->days));
                          Severity: Major
                          Found in app/Age.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return strip_tags(I18N::translateContext('CENTURY', '17th'));
                            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', '11th'));
                              Severity: Major
                              Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return ($century - 1) . '01-' . $century . '00';
                                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/GedcomRecord.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return '<a href="' . e($individual->url()) . '">' . $individual->fullName() . '</a>';
                                    Severity: Major
                                    Found in app/Statistics/Repository/IndividualRepository.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $individual_privacy[$this->xref()] >= $access_level;
                                        Severity: Major
                                        Found in app/GedcomRecord.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language