fisharebest/webtrees

View on GitHub

Showing 1,726 of 2,403 total issues

Avoid too many return statements within this method.
Open

                return Registry::noteFactory()->make($xref, $this->record->tree());
Severity: Major
Found in app/Fact.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return Registry::repositoryFactory()->make($xref, $this->record->tree());
    Severity: Major
    Found in app/Fact.php - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return false;
      Severity: Major
      Found in resources/js/webtrees.js - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return Registry::gedcomRecordFactory()->make($xref, $this->record->tree());
        Severity: Major
        Found in app/Fact.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return null;
          Severity: Major
          Found in app/Module/UserFavoritesModule.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis, $y_axis_type));
            Severity: Major
            Found in app/Module/StatisticsChartModule.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return response($this->myPlot($chart_title, $x_axis, $x_axis_title, $ydata, $y_axis_title, $z_axis, $y_axis_type));
              Severity: Major
              Found in app/Module/StatisticsChartModule.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return '';
                Severity: Major
                Found in app/Module/ContactsFooterModule.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $this->viewResponse('modules/descendancy_chart/page', [
                              'ajax_url'            => $ajax_url,
                              'style'               => $style,
                              'styles'              => $this->styles(),
                              'default_generations' => self::DEFAULT_GENERATIONS,
                  Severity: Major
                  Found in app/Module/DescendancyChartModule.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return view('modules/block-template', [
                                    'block'      => Str::kebab($this->name()),
                                    'id'         => $block_id,
                                    'config_url' => $this->configUrl($tree, $context, $block_id),
                                    'title'      => $this->title(),
                    Severity: Major
                    Found in app/Module/SlideShowModule.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $content;
                      Severity: Major
                      Found in app/Module/SlideShowModule.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return Registry::mediaFactory()->make($xref, $tree);
                        Severity: Major
                        Found in app/Module/FamilyTreeFavoritesModule.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return Registry::noteFactory()->make($xref, $tree, $gedcom);
                          Severity: Major
                          Found in app/Factories/GedcomRecordFactory.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return Registry::repositoryFactory()->make($xref, $tree, $gedcom);
                            Severity: Major
                            Found in app/Factories/GedcomRecordFactory.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return $this;
                              Severity: Major
                              Found in app/Validator.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return null;
                                Severity: Major
                                Found in app/Module/FamilyTreeFavoritesModule.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $this->viewResponse('modules/ancestors-chart/page', [
                                              'ajax_url'            => $ajax_url,
                                              'generations'         => $generations,
                                              'individual'          => $individual,
                                              'maximum_generations' => self::MAXIMUM_GENERATIONS,
                                  Severity: Major
                                  Found in app/Module/AncestorsChartModule.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return Registry::mediaFactory()->make($xref, $tree, $gedcom);
                                    Severity: Major
                                    Found in app/Factories/GedcomRecordFactory.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return false;
                                      Severity: Major
                                      Found in app/Module/SlideShowModule.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return new CP850();
                                        Severity: Major
                                        Found in app/Factories/EncodingFactory.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language