Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4nn committed Jul 5, 2023
2 parents 7bbdbaa + 0e622d8 commit 0f7d0d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions Block/JavascriptSnippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ class JavascriptSnippet extends Template
{
/**
* Return the JavaScript snippet code without the <script> tags.
*
* @return string
*/
public function getJavascriptSnippetCode()
public function getJavascriptSnippetCode(): string
{
return str_replace(
array('<script type="text/javascript">//<![CDATA[', '//]]></script>'),
['<script type="text/javascript">//<![CDATA[', '//]]></script>'],
'',
$this->_scopeConfig->getValue('recolize_recommendation_engine/general/javascript_snippet', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)
(string)$this->_scopeConfig->getValue('recolize_recommendation_engine/general/javascript_snippet', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)
);
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "recolize/module-recommendation-engine-magento2",
"description": "The Recolize Recommendation Engine as extension for Magento 2",
"version": "1.1.1",
"description": "The Recolize Recommendation Engine Extension for Magento 2",
"version": "1.1.2",
"type": "magento2-module",
"keywords": [
"recolize",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Recolize_RecommendationEngine" setup_version="1.1.1">
<module name="Recolize_RecommendationEngine" setup_version="1.1.2">
<sequence>
<module name="Magento_Backend"/>
</sequence>
Expand Down

0 comments on commit 0f7d0d8

Please sign in to comment.