From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 12:42:56 +0000 (+0100) Subject: wip #4804 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6280cdc8f5c64cea08f8773ebfe0a9b4891533a0;p=cubist_minisearch.git wip #4804 --- diff --git a/src/Document.php b/src/Document.php index 6363084..9de558b 100644 --- a/src/Document.php +++ b/src/Document.php @@ -149,9 +149,9 @@ class Document */ public function setKeywords(string|array|null $keywords): void { - if(null===$keywords){ - $keywords=''; - }else if (is_array($keywords)) { + if (null === $keywords) { + $keywords = ''; + } else if (is_array($keywords)) { $keywords = implode(' ', $keywords); } $this->keywords = $keywords;