fisharebest/webtrees

View on GitHub

Showing 2,400 of 2,400 total issues

Avoid too many return statements within this method.
Open

                    return I18N::translateContext('FEMALE', 'tenth 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('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::translate('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', '%1$s × %2$s', I18N::number($n), $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::translate('%1$s × %2$s', I18N::number($n), $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::gedcomRecordFactory()->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 [
                                        $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 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 $modules->sort($this->moduleComparator());
                    Severity: Major
                    Found in app/Services/ModuleService.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $this->viewResponse('admin/import-progress', [
                                          'errors'   => '',
                                          'progress' => $progress,
                                          'status'   => 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 $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 $this->viewResponse('admin/import-progress', [
                                          'errors'   => $errors,
                                          'progress' => $progress,
                                          'status'   => '',
                                          '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 $this->viewResponse('errors/no-tree-access', ['title' => '', 'tree' => null]);
                            Severity: Major
                            Found in app/Http/RequestHandlers/HomePage.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $this->datatables_service->handleCollection($request, $unused_files, $search_columns, $sort_columns, $callback);
                              Severity: Major
                              Found in app/Http/RequestHandlers/ManageMediaData.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return I18N::translate('great ×6 grandparent');
                                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-great-grandson');
                                  Severity: Major
                                  Found in app/Services/RelationshipService.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->step5Administrator($data);
                                    Severity: Major
                                    Found in app/Http/RequestHandlers/SetupWizard.php - About 30 mins to fix

                                      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 $this->step6Install($data);
                                        Severity: Major
                                        Found in app/Http/RequestHandlers/SetupWizard.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language