src/services/formats/Csv.php
Method create
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(ExportElement $export, array $data, $fileName): string
{
$counts = array_map('count', $data);
$key = array_flip($counts)[max($counts)];
$largestRow = $data[$key];