From: Roland Häder Date: Sun, 26 Aug 2012 20:18:38 +0000 (+0000) Subject: No need for calling ->getTemplateInstance() if is in same scope X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=03f76c99f17ede5b98f0b301323d09c8ae7cc18d;p=hub.git No need for calling ->getTemplateInstance() if is in same scope --- diff --git a/application/hub/main/helper/hub/announcement/class_HubAnnouncementHelper.php b/application/hub/main/helper/hub/announcement/class_HubAnnouncementHelper.php index 84f14e0f6..06d4d5571 100644 --- a/application/hub/main/helper/hub/announcement/class_HubAnnouncementHelper.php +++ b/application/hub/main/helper/hub/announcement/class_HubAnnouncementHelper.php @@ -69,10 +69,10 @@ class HubAnnouncementHelper extends BaseHubHelper implements HelpableHub { $this->setTemplateInstance($templateInstance); // Read the XML descriptor - $this->getTemplateInstance()->loadXmlTemplate(); + $templateInstance->loadXmlTemplate(); // Render the XML content - $this->getTemplateInstance()->renderXmlContent(); + $templateInstance->renderXmlContent(); } /** diff --git a/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php b/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php index 0fdb1918c..db277f595 100644 --- a/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php +++ b/application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php @@ -73,10 +73,10 @@ class NodeAnnouncementMessageAnswerHelper extends BaseHubAnswerHelper implements $this->setTemplateInstance($templateInstance); // Read the XML descriptor - $this->getTemplateInstance()->loadXmlTemplate(); + $templateInstance->loadXmlTemplate(); // Render the XML content - $this->getTemplateInstance()->renderXmlContent(); + $templateInstance->renderXmlContent(); } /** diff --git a/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php b/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php index 30cc9cf84..a303aad55 100644 --- a/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php +++ b/application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php @@ -73,10 +73,10 @@ class NodeRequestNodeListMessageAnswerHelper extends BaseHubAnswerHelper impleme $this->setTemplateInstance($templateInstance); // Read the XML descriptor - $this->getTemplateInstance()->loadXmlTemplate(); + $templateInstance->loadXmlTemplate(); // Render the XML content - $this->getTemplateInstance()->renderXmlContent(); + $templateInstance->renderXmlContent(); } /** diff --git a/application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php b/application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php index 255afe5c6..7953f8513 100644 --- a/application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php +++ b/application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php @@ -69,10 +69,10 @@ class HubSelfConnectHelper extends BaseHubHelper implements HelpableHub { $this->setTemplateInstance($templateInstance); // Read the XML descriptor - $this->getTemplateInstance()->loadXmlTemplate(); + $templateInstance->loadXmlTemplate(); // Render the XML content - $this->getTemplateInstance()->renderXmlContent(); + $templateInstance->renderXmlContent(); } /** diff --git a/application/hub/main/helper/hub/requests/class_NodeRequestNodeListHelper.php b/application/hub/main/helper/hub/requests/class_NodeRequestNodeListHelper.php index 3fea83238..75a4880b2 100644 --- a/application/hub/main/helper/hub/requests/class_NodeRequestNodeListHelper.php +++ b/application/hub/main/helper/hub/requests/class_NodeRequestNodeListHelper.php @@ -69,10 +69,10 @@ class NodeRequestNodeListHelper extends BaseHubHelper implements HelpableHub { $this->setTemplateInstance($templateInstance); // Read the XML descriptor - $this->getTemplateInstance()->loadXmlTemplate(); + $templateInstance->loadXmlTemplate(); // Render the XML content - $this->getTemplateInstance()->renderXmlContent(); + $templateInstance->renderXmlContent(); } /**