Skip to content

Commit 517cd18

Browse files
committed
Make cosmetic changes to View\Page\Config\Reader\Body
* Fix typo in method name * Change interpret method return value to conform with Layout\ReaderInterface
1 parent e4b6347 commit 517cd18

File tree

1 file changed

+4
-3
lines changed
  • lib/internal/Magento/Framework/View/Page/Config/Reader

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/View/Page/Config/Reader/Body.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ public function interpret(
6363
/** @var \Magento\Framework\View\Layout\Element $element */
6464
foreach ($bodyElement as $element) {
6565
if ($element->getName() === self::BODY_ATTRIBUTE) {
66-
$this->setBodyAttributeTosStructure($readerContext, $element);
66+
$this->setBodyAttributeToStructure($readerContext, $element);
6767
}
6868
}
69-
return $this->readerPool->interpret($readerContext, $bodyElement);
69+
$this->readerPool->interpret($readerContext, $bodyElement);
70+
return $this;
7071
}
7172

7273
/**
@@ -76,7 +77,7 @@ public function interpret(
7677
* @param Layout\Element $element
7778
* @return $this
7879
*/
79-
protected function setBodyAttributeTosStructure(Layout\Reader\Context $readerContext, Layout\Element $element)
80+
protected function setBodyAttributeToStructure(Layout\Reader\Context $readerContext, Layout\Element $element)
8081
{
8182
if ($element->getAttribute('name') == PageConfig::BODY_ATTRIBUTE_CLASS) {
8283
$readerContext->getPageConfigStructure()->setBodyClass($element->getAttribute('value'));

0 commit comments

Comments
 (0)