Skip to content

Commit 660834c

Browse files
author
rossbrandon
committed
MAGETWO-85063: Create a framework for dynamically composing what's new content
1 parent 142b2ae commit 660834c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

app/code/Magento/Analytics/Model/ReportXml/ModuleIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Framework\Module\Manager as ModuleManager;
99

1010
/**
11-
* Factory to create a module iterator
11+
* Iterator for ReportXml modules
1212
*/
1313
class ModuleIterator extends \IteratorIterator
1414
{

app/code/Magento/ReleaseNotification/Model/ContentProvider/Http/HttpContentProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getContent($version, $edition, $locale)
6666
$this->logger->warning(
6767
sprintf(
6868
'Failed to retrieve the release notification content. The response is: %s',
69-
!empty($result) ? $result : 'Response body is empty.'
69+
empty($result) ? 'Response body is empty.' : $result
7070
)
7171
);
7272
}

app/code/Magento/ReleaseNotification/Model/ContentProviderInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ interface ContentProviderInterface
1414
/**
1515
* Retrieves the release notification content data.
1616
*
17-
* Returns received content or FALSE in case of failure.
18-
*
1917
* @param string $version
2018
* @param string $edition
2119
* @param string $locale

app/code/Magento/ReleaseNotification/Test/Unit/Model/ContentProvider/Http/HttpContentProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testGetContentSuccessOnLocaleDefault()
112112
$edition = 'Community';
113113
$locale = 'fr_FR';
114114
$urlLocale = 'https://content.url.example/'. $version . '/' . $edition . '/' . $locale . '.json';
115-
$urlDefaultLocale = 'https://content.url.example/2.3.0/'. $version . '/' . $edition . '/en_US.json';
115+
$urlDefaultLocale = 'https://content.url.example/'. $version . '/' . $edition . '/en_US.json';
116116
$response = '{"return":"default-locale"}';
117117

118118
$this->urlBuilderMock->expects($this->exactly(2))
@@ -147,7 +147,7 @@ public function testGetContentSuccessOnLocaleDefault()
147147
public function testGetContentSuccessOnDefaultOrEmpty($version, $edition, $locale, $response)
148148
{
149149
$urlLocale = 'https://content.url.example/'. $version . '/' . $edition . '/' . $locale . '.json';
150-
$urlDefaultLocale = 'https://content.url.example/2.3.0/'. $version . '/' . $edition . '/en_US.json';
150+
$urlDefaultLocale = 'https://content.url.example/'. $version . '/' . $edition . '/en_US.json';
151151
$urlDefault = 'https://content.url.example/' . $version . '/default.json';
152152

153153
$this->urlBuilderMock->expects($this->exactly(3))

0 commit comments

Comments
 (0)