fisharebest/webtrees

View on GitHub
app/Module/FamilyTreeNewsModule.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getEditNewsAction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getEditNewsAction(ServerRequestInterface $request): ResponseInterface
    {
        $tree = Validator::attributes($request)->tree();

        if (!Auth::isManager($tree)) {
Severity: Minor
Found in app/Module/FamilyTreeNewsModule.php - About 1 hr to fix

    Method postEditNewsAction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function postEditNewsAction(ServerRequestInterface $request): ResponseInterface
        {
            $tree = Validator::attributes($request)->tree();
    
            if (!Auth::isManager($tree)) {
    Severity: Minor
    Found in app/Module/FamilyTreeNewsModule.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status