diff --git a/core/Elements/Document.class.php b/core/Elements/Document.class.php index d0cc9a9..e902b85 100644 --- a/core/Elements/Document.class.php +++ b/core/Elements/Document.class.php @@ -35,7 +35,7 @@ abstract class Document { return new $this->activeView($this); } - function getCode() { + function getCode(): string { if ($this->databaseRequired) { $sql = $this->user->getSQL(); diff --git a/core/Elements/Head.class.php b/core/Elements/Head.class.php index 540bde7..b67ccd2 100644 --- a/core/Elements/Head.class.php +++ b/core/Elements/Head.class.php @@ -68,7 +68,7 @@ abstract class Head extends View { $this->addJS(Script::BOOTSTRAP); } - public function getCode() { + public function getCode(): string { $header = "
"; foreach($this->metas as $aMeta) { diff --git a/core/Elements/Link.class.php b/core/Elements/Link.class.php index 57b4243..09cd7fc 100644 --- a/core/Elements/Link.class.php +++ b/core/Elements/Link.class.php @@ -22,7 +22,7 @@ class Link extends StaticView { $this->rel = $rel; } - function getCode() { + function getCode(): string { $type = (empty($this->type) ? "" : " type=\"$this->type\""); return "rel\" href=\"$this->href\"$type/>"; } diff --git a/core/Elements/Script.class.php b/core/Elements/Script.class.php index 6aaaf25..21dd4d4 100644 --- a/core/Elements/Script.class.php +++ b/core/Elements/Script.class.php @@ -23,7 +23,7 @@ class Script extends StaticView { $this->content = $content; } - function getCode() { + function getCode(): string { $src = (empty($this->src) ? "" : " src=\"$this->src\""); return ""; } diff --git a/core/Elements/Style.class.php b/core/Elements/Style.class.php index 5fbe4e8..9775a9d 100644 --- a/core/Elements/Style.class.php +++ b/core/Elements/Style.class.php @@ -10,7 +10,7 @@ class Style extends StaticView { $this->style = $style; } - function getCode() { + function getCode(): string { return ""; } } diff --git a/core/Objects/Language.class.php b/core/Objects/Language.class.php index 84a19fc..a5b16d3 100644 --- a/core/Objects/Language.class.php +++ b/core/Objects/Language.class.php @@ -24,7 +24,7 @@ namespace Objects { } public function getId() { return $this->languageId; } - public function getCode() { return $this->langCode; } + public function getCode(): string { return $this->langCode; } public function getShortCode() { return substr($this->langCode, 0, 2); } public function getName() { return $this->langName; } public function getIconPath() { return "/img/icons/lang/$this->langCode.gif"; }