Skip to content

Commit 2d39a81

Browse files
author
Aasim Goriya
committed
Fixed: Static Tests
1 parent 3d6eaf4 commit 2d39a81

File tree

1 file changed

+8
-6
lines changed
  • app/code/Magento/Catalog/Helper/Product

1 file changed

+8
-6
lines changed

app/code/Magento/Catalog/Helper/Product/View.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,18 +297,20 @@ public function prepareAndRender(ResultPage $resultPage, $productId, $controller
297297
}
298298

299299
/**
300+
* Add Prefix and Suffix as per the configuration.
301+
*
300302
* @param string $title
301303
* @return string
302304
*/
303305
private function addConfigValues($title)
304306
{
305307
$preparedTitle = $this->scopeConfig->getValue(
306-
'design/head/title_prefix',
307-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
308-
) . ' ' . $title . ' ' . $this->scopeConfig->getValue(
309-
'design/head/title_suffix',
310-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
311-
);
308+
'design/head/title_prefix',
309+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
310+
) . ' ' . $title . ' ' . $this->scopeConfig->getValue(
311+
'design/head/title_suffix',
312+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
313+
);
312314
return trim($preparedTitle);
313315
}
314316
}

0 commit comments

Comments
 (0)