fisharebest/webtrees

View on GitHub

Showing 2,400 of 2,400 total issues

Avoid too many return statements within this method.
Open

                            return 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::translate('%s once removed ascending', 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::translate('%s twice removed ascending', 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::translate('sixth 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('%s twice 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', 'fifth %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 I18N::translateContext('FEMALE', 'seventh 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', 'second %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 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 response([
                                'draw'            => $draw,
                                'recordsTotal'    => $recordsTotal,
                                'recordsFiltered' => $recordsFiltered,
                                'data'            => $data,
                    Severity: Major
                    Found in app/Services/DatatablesService.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return [
                                              $this->mediaFileInfo($data_filesystem, $row[0]) . $delete_link,
                                              $img,
                                              $create_form,
                                          ];
                      Severity: Major
                      Found in app/Http/RequestHandlers/ManageMediaData.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->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 $handler->handle($request);
                            Severity: Major
                            Found in app/Http/Middleware/BadBotBlocker.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', '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 strip_tags(I18N::translateContext('CENTURY', '8th'));
                                  Severity: Major
                                  Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return $handler->handle($request);
                                    Severity: Major
                                    Found in app/Http/Middleware/Router.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 strip_tags(I18N::translateContext('CENTURY', '2nd'));
                                        Severity: Major
                                        Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language