Skip to content

Commit 27055b2

Browse files
committed
use collections
1 parent 4a33370 commit 27055b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exercise/HaveTheLastSay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getArgs(): array
6262

6363
file_put_contents(
6464
$file,
65-
implode("\n", array_map(fn ($row) => implode("|", $row), $this->getRandomCountries($countries)))
65+
collect($this->getRandomCountries($countries))->map(fn ($row) => implode("|", $row))->implode("\n")
6666
);
6767

6868
return [

0 commit comments

Comments
 (0)