Commit 60d8b96e authored by Korko's avatar Korko
Browse files

PSR

parent fb93e733
Pipeline #188490 passed with stage
in 5 minutes and 40 seconds
......@@ -30,7 +30,7 @@ class OrganizerRecap extends Mailable
*/
public function build()
{
$csv = $this->formatCsv(array_map(function($participant) {
$csv = $this->formatCsv(array_map(function ($participant) {
return [
$participant['name'],
$participant['email']
......@@ -41,7 +41,7 @@ class OrganizerRecap extends Mailable
->text('emails.organizer_recap_plain')
->attachData($csv, 'secretsanta.csv', [
'mime' => 'text/csv',
]);;
]);
}
protected function formatCsv($data, $delimiter = ",", $enclosure = '"', $escape_char = "\\")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment