diff --git a/app/Http/Controllers/ExportController.php b/app/Http/Controllers/ExportController.php index 240faf3..df2c077 100644 --- a/app/Http/Controllers/ExportController.php +++ b/app/Http/Controllers/ExportController.php @@ -23,8 +23,8 @@ public function export(Lists $lists, $type = null) $allContacts = $this->getContacts($lists, $type); - $allContacts->select('id', 'email', 'list_id')->with('fields')->chunk(10000, function ($contacts) use ($writer,$header) { - $contacts->each(function ($contact) use ($writer,$header) { + $allContacts->select('id', 'email', 'list_id')->with('fields')->chunk(10000, function ($contacts) use ($writer, $header) { + $contacts->each(function ($contact) use ($writer, $header) { $values = $this->getFields($contact->fields, $header); $values['email'] = $contact->email; $rowFromValues = WriterEntityFactory::createRowFromArray($values);