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('fourteenth 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('great ×%s granddaughter', 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::translateContext('MALE', '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 I18N::translate('first %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 self::legacyCousinName2($cousin + 1, $sex2, $this->legacyNameAlgorithm('bro' . $descent));
          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', 'thirteenth 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::translateContext('FEMALE', '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 I18N::translate('fourth %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::translate('first 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('fifth 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 I18N::translateContext('FEMALE', 'first %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 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->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 $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 $dispatcher->dispatch($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 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 true;
                                        Severity: Major
                                        Found in app/Individual.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language