From 0a8e7d724b2efb2979c653dd751c7216df439630 Mon Sep 17 00:00:00 2001 From: PierreLebedel Date: Tue, 29 Oct 2024 17:19:58 +0000 Subject: [PATCH] Fix styling --- src/VCardsCollection.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/VCardsCollection.php b/src/VCardsCollection.php index be67c7a..0556cd3 100644 --- a/src/VCardsCollection.php +++ b/src/VCardsCollection.php @@ -52,12 +52,13 @@ public function first(): ?AbstractVCard return $this->vCards[0] ?? null; } - public function __toString() :string + public function __toString(): string { $collectionString = ''; - foreach($this->vCards as $vCard){ + foreach ($this->vCards as $vCard) { $collectionString .= (string) $vCard; } + return $collectionString; }