From f9d66e97ff7fe58193ea8993c82aa309d0c24eea Mon Sep 17 00:00:00 2001 From: Vinai Kopp Date: Mon, 5 Jan 2015 14:49:59 +0100 Subject: [PATCH] Small cleanup refactoring * Fix typo in method name * Change interpret method return value to conform with Layout\ReaderInterface --- .../Magento/Framework/View/Page/Config/Reader/Body.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php b/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php index 95311e008f587..b714d2401f4a9 100644 --- a/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php +++ b/lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php @@ -63,10 +63,11 @@ public function interpret( /** @var \Magento\Framework\View\Layout\Element $element */ foreach ($bodyElement as $element) { if ($element->getName() === self::BODY_ATTRIBUTE) { - $this->setBodyAttributeTosStructure($readerContext, $element); + $this->setBodyAttributeToStructure($readerContext, $element); } } - return $this->readerPool->interpret($readerContext, $bodyElement); + $this->readerPool->readStructure($readerContext, $bodyElement); + return $this; } /** @@ -76,7 +77,7 @@ public function interpret( * @param Layout\Element $element * @return $this */ - protected function setBodyAttributeTosStructure(Layout\Reader\Context $readerContext, Layout\Element $element) + protected function setBodyAttributeToStructure(Layout\Reader\Context $readerContext, Layout\Element $element) { if ($element->getAttribute('name') == PageConfig::BODY_ATTRIBUTE_CLASS) { $readerContext->getPageConfigStructure()->setBodyClass($element->getAttribute('value'));