fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

Method alphabet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function alphabet(): array
    {
        return [
            'A',
            'B',
Severity: Minor
Found in app/Module/LanguageDanish.php - About 1 hr to fix

    Method alphabet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function alphabet(): array
        {
            return [
                'A',
                'B',
    Severity: Minor
    Found in app/Module/LanguageNorwegianBokmal.php - About 1 hr to fix

      Method alphabet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function alphabet(): array
          {
              return [
                  'A',
                  'B',
      Severity: Minor
      Found in app/Module/LanguageNorwegianNynorsk.php - About 1 hr to fix

        Method alphabet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function alphabet(): array
            {
                return [
                    'A',
                    'B',
        Severity: Minor
        Found in app/Module/LanguageFinnish.php - About 1 hr to fix

          Method editBlockConfiguration has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function editBlockConfiguration(Tree $tree, int $block_id): string
              {
                  $filter   = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
                  $controls = $this->getBlockSetting($block_id, 'controls', '1');
                  $start    = $this->getBlockSetting($block_id, 'start', '0');
          Severity: Minor
          Found in app/Module/SlideShowModule.php - About 1 hr to fix

            Method boot has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function boot(): void
                {
                    $router_container = Registry::container()->get(RouterContainer::class);
                    $router           = $router_container->getMap();
            
            
            Severity: Minor
            Found in app/Module/RedirectLegacyUrlsModule.php - About 1 hr to fix

              Method alphabet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function alphabet(): array
                  {
                      return [
                          'A',
                          'B',
              Severity: Minor
              Found in app/Module/LanguageSwedish.php - About 1 hr to fix

                Method getAddIndividualAction has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function getAddIndividualAction(ServerRequestInterface $request): ResponseInterface
                    {
                        $tree       = Validator::attributes($request)->tree();
                        $xref       = Validator::queryParams($request)->isXref()->string('xref');
                        $individual = Registry::individualFactory()->make($xref, $tree);
                Severity: Minor
                Found in app/Module/ClippingsCartModule.php - About 1 hr to fix

                  Method getMapData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private function getMapData(Individual $indi): object
                      {
                          $facts = $this->getPersonalFacts($indi);
                  
                          $geojson = [
                  Severity: Minor
                  Found in app/Module/PlacesModule.php - About 1 hr to fix

                    Method editBlockConfiguration has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function editBlockConfiguration(Tree $tree, int $block_id): string
                        {
                            $days      = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
                            $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE);
                            $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE);
                    Severity: Minor
                    Found in app/Module/RecentChangesModule.php - About 1 hr to fix

                      Method metaDescription has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private function metaDescription(Individual $individual): string
                          {
                              $meta_facts = [];
                      
                              $birth_date  = $individual->getBirthDate();
                      Severity: Minor
                      Found in app/Http/RequestHandlers/IndividualPage.php - About 1 hr to fix

                        Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function handle(ServerRequestInterface $request): ResponseInterface
                            {
                                $tree   = Validator::attributes($request)->tree();
                                $xref   = Validator::attributes($request)->isXref()->string('xref');
                                $record = Registry::gedcomRecordFactory()->make($xref, $tree);
                        Severity: Minor
                        Found in app/Http/RequestHandlers/DeleteRecord.php - About 1 hr to fix

                          Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function handle(ServerRequestInterface $request): ResponseInterface
                              {
                                  $tree     = Validator::attributes($request)->tree();
                                  $data_fix = Validator::attributes($request)->string('data_fix', '');
                                  $module   = $this->module_service->findByName($data_fix);
                          Severity: Minor
                          Found in app/Http/RequestHandlers/DataFixData.php - About 1 hr to fix

                            Method updateDates has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function updateDates(string $xref, int $ged_id, string $gedrec): void
                                {
                                    // Insert all new rows together
                                    $rows = [];
                            
                            
                            Severity: Minor
                            Found in app/Services/GedcomImportService.php - About 1 hr to fix

                              Method handle has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function handle(ServerRequestInterface $request): ResponseInterface
                                  {
                                      $tree           = Validator::attributes($request)->tree();
                                      $default_fields = array_fill_keys(self::DEFAULT_ADVANCED_FIELDS, '');
                                      $fields         = Validator::queryParams($request)->array('fields') ?: $default_fields;
                              Severity: Minor
                              Found in app/Http/RequestHandlers/SearchAdvancedPage.php - About 1 hr to fix

                                Method columns has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function columns(): array
                                    {
                                        return [
                                            new CensusColumnSurnameGivenNameInitial($this, 'Name', 'Name'),
                                            new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship of each person to the head of the family'),
                                Severity: Minor
                                Found in app/Census/CensusOfUnitedStates1910.php - About 1 hr to fix

                                  Method monthFirstChildQuery has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function monthFirstChildQuery(int $year1 = -1, int $year2 = -1): Builder
                                      {
                                          $first_child_subquery = DB::table('link')
                                              ->join('dates', static function (JoinClause $join): void {
                                                  $join
                                  Severity: Minor
                                  Found in app/Statistics/Repository/FamilyRepository.php - About 1 hr to fix

                                    Method displayImage has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function displayImage(int $width, int $height, string $fit, array $image_attributes = []): string
                                        {
                                            if ($this->isExternal()) {
                                                $src    = $this->multimedia_file_refn;
                                                $srcset = [];
                                    Severity: Minor
                                    Found in app/MediaFile.php - About 1 hr to fix

                                      Method starredName has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private static function starredName(string $textSpan, string $direction): string
                                          {
                                              // To avoid a TCPDF bug that mixes up the word order, insert those <u> and </u> tags
                                              // only when page and span directions are identical.
                                              if ($direction === strtoupper(I18N::direction())) {
                                      Severity: Minor
                                      Found in app/Report/RightToLeftSupport.php - About 1 hr to fix

                                        Method registerTags has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function registerTags(ElementFactoryInterface $element_factory, bool $include_custom_tags): void
                                            {
                                                // Standard GEDCOM.
                                                $element_factory->registerTags($this->gedcom551Tags());
                                        
                                        
                                        Severity: Minor
                                        Found in app/Gedcom.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language