X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fhelper%2Fhtml%2Flinks%2Fclass_HtmlLinkHelper.php;h=e603d80521eb9b24f3a4027bc8e2d3307f6c2325;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=2dd3319c4d18a821b01c5879148c6051e998eb0c;hpb=035b3221bff7b542e264a9d0a4a6d086833487ef;p=core.git diff --git a/framework/main/classes/helper/html/links/class_HtmlLinkHelper.php b/framework/main/classes/helper/html/links/class_HtmlLinkHelper.php index 2dd3319c..e603d805 100644 --- a/framework/main/classes/helper/html/links/class_HtmlLinkHelper.php +++ b/framework/main/classes/helper/html/links/class_HtmlLinkHelper.php @@ -139,7 +139,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $extraContent Optional extra HTML content * @return $linkContent Rendered text link content */ - private function renderLinkContentWithTextExtraContent ($linkText, $linkTitle, $extraContent='') { + private function renderLinkContentWithTextExtraContent (string $linkText, string $linkTitle, string $extraContent = '') { // Construct link content $linkContent = sprintf('%s', $this->getLinkBase(), @@ -158,8 +158,8 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $linkName Name of the link we shall generate * @return void */ - protected final function setLinkName ($linkName) { - $this->linkName = (string) $linkName; + protected final function setLinkName (string $linkName) { + $this->linkName = $linkName; } /** @@ -177,8 +177,8 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $linkBase Base of the link we shall generate * @return void */ - protected final function setLinkBase ($linkBase) { - $this->linkBase = (string) $linkBase; + protected final function setLinkBase (string $linkBase) { + $this->linkBase = $linkBase; } /** @@ -222,7 +222,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $groupCode Code to open and close groups * @return void */ - public function addLinkGroup ($groupId, $groupText, $groupCode = 'div') { + public function addLinkGroup (string $groupId, string $groupText, string $groupCode = 'div') { // Is a group with that name open? if ($this->ifGroupOpenedPreviously()) { // Then close it here @@ -251,7 +251,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @return void * @throws NoGroupOpenedException If no previous group was opened */ - public function addLinkNote ($groupId, $groupNote, $groupCode = 'div') { + public function addLinkNote (string $groupId, string $groupNote, string $groupCode = 'div') { // Check if a previous group was opened if ($this->ifGroupOpenedPreviously() === false) { // No group was opened before! @@ -284,7 +284,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @return void * @throws NoGroupOpenedException If no previous group was opened */ - protected function addActionLink ($linkAction, $linkText, $linkTitle) { + protected function addActionLink (string $linkAction, string $linkText, string $linkTitle) { // Check if a previous group was opened if ($this->ifGroupOpenedPreviously() === false) { // No group was opened before! @@ -321,7 +321,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $languageId Language id string to use * @return void */ - public function addActionLinkById ($linkAction, $languageId) { + public function addActionLinkById (string $linkAction, string $languageId) { // Resolve the language string $languageResolvedText = FrameworkBootstrap::getLanguageInstance()->getMessage('link_' . $languageId . '_text'); @@ -339,7 +339,7 @@ class HtmlLinkHelper extends BaseHtmlHelper implements HelpableTemplate { * @param $languageId Language id string to use * @return void */ - public function addLinkWithTextById ($languageId) { + public function addLinkWithTextById (string $languageId) { // Resolve the language string $languageResolvedText = FrameworkBootstrap::getLanguageInstance()->getMessage('link_' . $languageId . '_text');