From 40f0c7f76e471aa69531ca226981f647be47f28c Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 2 Apr 2021 22:44:44 +0200 Subject: [PATCH] found more issues --- core/Elements/Head.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Elements/Head.class.php b/core/Elements/Head.class.php index 3a03e97..540bde7 100644 --- a/core/Elements/Head.class.php +++ b/core/Elements/Head.class.php @@ -38,13 +38,13 @@ abstract class Head extends View { public function setDescription($description) { $this->description = $description; } public function setKeywords($keywords) { $this->keywords = $keywords; } public function setTitle($title) { $this->title = $title; } - public function getSources() { return $this->sources; } + public function getSources(): array { return $this->sources; } public function addScript($type, $url, $js = '') { $this->sources[] = new Script($type, $url, $js); } public function addRawField($rawField) { $this->rawFields[] = $rawField; } public function addMeta($aMeta) { $this->metas[] = $aMeta; } public function addLink($rel, $href, $type = "") { $this->sources[] = new Link($rel, $href, $type); } - public function addKeywords($keywords) { array_merge($this->keywords, $keywords); } - public function getTitle() { return $this->title; } + public function addKeywords($keywords) { $this->keywords = array_merge($this->keywords, $keywords); } + public function getTitle(): string { return $this->title; } public function addCSS($href, $type = Link::MIME_TEXT_CSS) { $this->sources[] = new Link(Link::STYLESHEET, $href, $type); } public function addStyle($style) { $this->sources[] = new Style($style); }