fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

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 response(nl2br((string) $exception), StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR);
      Severity: Major
      Found in app/Http/Middleware/HandleExceptions.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->wizardStepUnzip($zip_file, $zip_folder);
          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 I18N::translate('great ×4 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 ×7 grandmother');
                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-granddaughter');
                  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 ×%s granddaughter', I18N::number($up - 2));
                    Severity: Major
                    Found in app/Services/RelationshipService.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return self::legacyCousinName($up + $down - 3, $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::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::translate('ninth 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('twelfth cousin');
                              Severity: Major
                              Found in app/Services/RelationshipService.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return Registry::sourceFactory()->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->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 I18N::translate('great ×%s grandfather', I18N::number($up));
                                    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 ×%s grandmother', I18N::number($up - 3));
                                      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 ×4 grandson');
                                        Severity: Major
                                        Found in app/Services/RelationshipService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language