fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,400 total issues

Avoid too many return statements within this method.
Open

        return
            '<div class="wt-text-overflow-elipsis">' .
            '<button type="button" class="btn btn-text p-0" href="#" data-bs-target=".' . e($id) . '" data-bs-toggle="collapse" aria-controls="' . e($id) . '" aria-expanded="' . ($expanded ? 'true' : 'false') . '">' .
            view('icons/expand') .
            view('icons/collapse') .
Severity: Major
Found in app/Elements/NoteStructure.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return false;
    Severity: Major
    Found in app/Individual.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 [
                            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 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', '4th'));
            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/Individual.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

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

                      Avoid too many return statements within this method.
                      Open

                                  return '<div>' . I18N::translate('%1$s: %2$s', $label, $value) . '</div>';
                      Severity: Major
                      Found in app/Elements/NoteStructure.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return strip_tags(I18N::translateContext('CENTURY', '9th'));
                        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', '13th'));
                          Severity: Major
                          Found in app/Statistics/Service/CenturyService.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 true;
                              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 ($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 [
                                                          new CensusOfSlovakia(),
                                                          new CensusOfCzechRepublic(),
                                                          new CensusOfDenmark(),
                                                          new CensusOfDeutschland(),
                                      Severity: Major
                                      Found in app/Census/Census.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language