fisharebest/webtrees

View on GitHub

Showing 1,727 of 2,400 total issues

Avoid too many return statements within this method.
Open

        return I18N::translate('(age %s)', $age);
Severity: Major
Found in app/Http/RequestHandlers/IndividualPage.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 $response->withHeader('cache-control', 'public,max-age=31536000');
      Severity: Major
      Found in app/Http/RequestHandlers/MediaFileThumbnail.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 new JalaliDate($this);
          Severity: Major
          Found in app/Date/AbstractCalendarDate.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 $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 $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->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->step6Install($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 $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 $modules;
                        Severity: Major
                        Found in app/Services/ModuleService.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 CensusOfUnitedStates(),
                                                new CensusOfRhodeIsland(),
                                                new CensusOfCanada(),
                                                new CensusOfCzechRepublic(),
                            Severity: Major
                            Found in app/Census/Census.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 strip_tags(I18N::translateContext('CENTURY', '15th'));
                                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', '7th'));
                                  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', '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 $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', '3rd'));
                                        Severity: Major
                                        Found in app/Statistics/Service/CenturyService.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language