fisharebest/webtrees

View on GitHub
app/Http/RequestHandlers/SearchAdvancedPage.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status