Skip to content

Commit 983d74f

Browse files
committed
#9347: Zend feed refactoring
- Coding style fixes per Travis CI static tests results
1 parent eba92d0 commit 983d74f

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

app/code/Magento/Rss/Model/Rss.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function setDataProvider(DataProviderInterface $dataProvider)
102102
public function createRssXml()
103103
{
104104
$feed = $this->feedFactory->importArray(
105-
$this->getFeeds(),
105+
$this->getFeeds(),
106106
\Magento\Framework\App\FeedFormatsInterface::DEFAULT_FORMAT
107107
);
108108

lib/internal/Magento/Framework/App/FeedFactory.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
namespace Magento\Framework\App;
77

8-
use Magento\Framework\App\FeedFactory;
9-
use Magento\Framework\App\FeedFactoryInterface;
108
use Psr\Log\LoggerInterface;
119

1210
/**
@@ -40,12 +38,12 @@ public function __construct(
4038
* Get a new \Magento\Framework\App\Feed object from a custom array
4139
*
4240
* @throws \Magento\Framework\Exception\InputException
43-
* @param array $data
44-
* @param string $format
41+
* @param array $data
42+
* @param string $format
4543
* @return \Magento\Framework\App\FeedInterface
4644
*/
4745
public function create(
48-
array $data,
46+
array $data,
4947
$format = FeedFactoryInterface::DEFAULT_FORMAT
5048
) {
5149
try {

lib/internal/Magento/Framework/App/FeedFactoryInterface.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@
77

88
interface FeedFactoryInterface
99
{
10-
1110
const DEFAULT_FORMAT = 'rss';
1211

1312
/**
1413
* Returns FeedInterface object from a custom array
15-
*
14+
*
1615
* @throws \Magento\Framework\Exception\RuntimeException
17-
* @param array $data
18-
* @param string $format
16+
* @param array $data
17+
* @param string $format
1918
* @return FeedInterface
2019
*/
2120
public function create(
22-
array $data,
21+
array $data,
2322
$format = self::DEFAULT_FORMAT
2423
);
2524
}

0 commit comments

Comments
 (0)