This commit is contained in:
Adrian Hopek 2022-05-11 09:01:16 +02:00
parent cba8199178
commit 3864b5394c

View File

@ -98,10 +98,15 @@ class ResumeGenerator
"start_date#{$index}" => Carbon::create($project["startDate"])->toDisplayString(), "start_date#{$index}" => Carbon::create($project["startDate"])->toDisplayString(),
"end_date#{$index}" => Carbon::create($project["endDate"])->toDisplayString(), "end_date#{$index}" => Carbon::create($project["endDate"])->toDisplayString(),
"description#{$index}" => $project["description"], "description#{$index}" => $project["description"],
"tasks#{$index}" => $project["tasks"], "tasks#{$index}" => $this->withNewLines($project["tasks"]),
]; ];
} }
protected function withNewLines(string $text): string
{
return Str::replace("\n", "</w:t><w:br/><w:t>", $text);
}
protected function getProjectTechnologies(array $project, int $index): array protected function getProjectTechnologies(array $project, int $index): array
{ {
$technologies = new Collection($project["technologies"] ?? []); $technologies = new Collection($project["technologies"] ?? []);