diff --git a/lib/neues.php b/lib/neues.php index 11ec819..8b8b866 100644 --- a/lib/neues.php +++ b/lib/neues.php @@ -1,5 +1,3 @@ categories) { $this->categories = $this->getRelatedCollection('category_ids'); @@ -51,11 +51,11 @@ public function getImage(): string /** @api */ public function getImages(): ?array { - return array_filter(explode(",", $this->getValue('images'))); + return array_filter(explode(',', $this->getValue('images'))); } /** @api */ - public function getMedia() : ?rex_media + public function getMedia(): ?rex_media { return rex_media::get($this->getImage()); }