From a06737210edebcafedc374820c4ec7fb95b8b3d8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 14:38:31 +0200 Subject: [PATCH] wip #5184 @0.25 --- src/Document.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Document.php b/src/Document.php index 3352154..d4bec62 100644 --- a/src/Document.php +++ b/src/Document.php @@ -22,7 +22,7 @@ class Document /** * @var string */ - protected $displayedTitle=''; + protected $displayedTitle = ''; /** * @var string @@ -168,7 +168,7 @@ class Document */ public function getDisplayedTitle(): string { - return $this->displayedTitle?:$this->getTitle(); + return $this->displayedTitle ?: $this->getTitle(); } /** @@ -192,7 +192,16 @@ class Document */ public function getIndividualDocData() { - return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText(), 'keywords' => $this->getKeywords(),'displayedTitle'=>$this->getDisplayedTitle()]; + return [ + 'id' => $this->getId(), + 'type' => $this->getType(), + 'thumb' => $this->getThumb(), + 'title' => $this->getTitle(), + 'url' => $this->getUrl(), + 'text' => $this->getText(), + 'keywords' => $this->getKeywords(), + 'displayedTitle' => $this->getDisplayedTitle() + ]; } } \ No newline at end of file -- 2.39.5