Skip to content

Commit f31d1f8

Browse files
author
Volodymyr Kublytskyi
committed
Deliver magento-partners/magento2ce#25: fixed static tests failures
1 parent cb1acb7 commit f31d1f8

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

app/code/Magento/Swagger/Block/Index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Magento\Framework\View\Element\Template;
99

1010
/**
11-
* Class Index
11+
* Block for swagger index page
1212
*
13-
* @package Magento\Swagger\Block
13+
* @api
1414
*/
1515
class Index extends Template
1616
{

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,26 @@ 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
}
99-
100101
/**
101-
* @param $designConfig
102-
* @return mixed
102+
* Load template text in configured scope
103+
*
104+
* @param integer|string $templateId
105+
* @param DesignConfigInterface $designConfig
106+
* @return string
103107
*/
104-
private function getTemplateText($templateId, $designConfig)
108+
private function getTemplateText($templateId, DesignConfigInterface $designConfig)
105109
{
106110
// Load template object by configured template id
107111
$template = $this->templateFactory->create();

0 commit comments

Comments
 (0)