app/Statistics/Google/ChartCommonSurname.php
Method getTopNameAndCount
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTopNameAndCount(array $surns): array
{
$max_name = 0;
$count_per = 0;
$top_name = '';
Method chartCommonSurnames
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function chartCommonSurnames(
int $tot_indi,
array $all_surnames,
string|null $color_from = null,
string|null $color_to = null