fisharebest/webtrees

View on GitHub
app/Module/StoriesModule.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getAdminEditAction has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getAdminEditAction(ServerRequestInterface $request): ResponseInterface
    {
        $this->layout = 'layouts/administration';

        $tree     = Validator::attributes($request)->tree();
Severity: Minor
Found in app/Module/StoriesModule.php - About 1 hr to fix

    Method getAdminAction has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getAdminAction(ServerRequestInterface $request): ResponseInterface
        {
            $this->layout = 'layouts/administration';
    
            // This module can't run without a tree
    Severity: Minor
    Found in app/Module/StoriesModule.php - About 1 hr to fix

      Method postAdminEditAction has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function postAdminEditAction(ServerRequestInterface $request): ResponseInterface
          {
              $tree        = Validator::attributes($request)->tree();
              $block_id    = Validator::queryParams($request)->integer('block_id', 0);
              $xref        = Validator::parsedBody($request)->string('xref');
      Severity: Minor
      Found in app/Module/StoriesModule.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status