app/Module/DescendancyChartModule.php
Method handle
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$user = Validator::attributes($request)->user();
$xref = Validator::attributes($request)->isXref()->string('xref');
Avoid too many return
statements within this method. Open
Open
return $this->viewResponse('modules/descendancy_chart/page', [
'ajax_url' => $ajax_url,
'style' => $style,
'styles' => $this->styles(),
'default_generations' => self::DEFAULT_GENERATIONS,