renderEachCell($originalData, $restructuredData, $options); } return $restructuredData; } protected function renderEachCell($originalData, $restructuredData, FormatterOptions $options) { foreach ($restructuredData as $id => $row) { foreach ($row as $key => $cellData) { $restructuredData[$id][$key] = $originalData->renderCell($key, $cellData, $options, $row); } } return $restructuredData; } }