Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 66d7186

Browse files
author
Volodymyr Kublytskyi
committed
Deliver magento-partners/magento2ce#27: fixed annotations
1 parent 5c129fa commit 66d7186

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

app/code/Magento/Theme/Model/Design/Config/Validator.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,27 @@ public function validate(DesignConfigInterface $designConfig)
8686
}
8787

8888
/**
89-
* @param $designConfig
90-
* @return mixed
89+
* Returns store identifier if is store scope
90+
*
91+
* @param DesignConfigInterface $designConfig
92+
* @return string|bool
9193
*/
92-
private function getScopeId($designConfig)
94+
private function getScopeId(DesignConfigInterface $designConfig)
9395
{
9496
if ($designConfig->getScope() == 'stores') {
9597
return $designConfig->getScopeId();
9698
}
9799
return false;
98100
}
101+
99102
/**
100-
* @param $designConfig
101-
* @return mixed
103+
* Load template text in configured scope
104+
*
105+
* @param integer|string $templateId
106+
* @param DesignConfigInterface $designConfig
107+
* @return string
102108
*/
103-
private function getTemplateText($templateId, $designConfig)
109+
private function getTemplateText($templateId, DesignConfigInterface $designConfig)
104110
{
105111
// Load template object by configured template id
106112
$template = $this->templateFactory->create();

0 commit comments

Comments
 (0)