]> git.mxchange.org Git - hub.git/commitdiff
No need for calling ->getTemplateInstance() if is in same scope
authorRoland Häder <roland@mxchange.org>
Sun, 26 Aug 2012 20:18:38 +0000 (20:18 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 26 Aug 2012 20:18:38 +0000 (20:18 +0000)
application/hub/main/helper/hub/announcement/class_HubAnnouncementHelper.php
application/hub/main/helper/hub/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php
application/hub/main/helper/hub/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php
application/hub/main/helper/hub/connection/class_HubSelfConnectHelper.php
application/hub/main/helper/hub/requests/class_NodeRequestNodeListHelper.php

index 84f14e0f6eb2c4bb39108eab64db3513138d6c87..06d4d5571c7477a77c76d4036b4b63a406e829d7 100644 (file)
@@ -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();
        }
 
        /**
index 0fdb1918c2b1a4dcdf6f3c732c77095fd4277aae..db277f595ba61a0a5ebff1bb8ec0567f3350e6ed 100644 (file)
@@ -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();
        }
 
        /**
index 30cc9cf84f5194f491ca7961173c00490aa521d6..a303aad557bc16963b277225d5336a2193186e0d 100644 (file)
@@ -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();
        }
 
        /**
index 255afe5c6352536768f7313d74e6892e2f4dc045..7953f85133ea3f20c498d9c6979f17ee94e4c924 100644 (file)
@@ -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();
        }
 
        /**
index 3fea83238b5b8bdafaa39c7ed86286e5d8141dd0..75a4880b2e19626fc201707d319738b9ad45fd82 100644 (file)
@@ -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();
        }
 
        /**