File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function setDataProvider(DataProviderInterface $dataProvider)
103
103
public function createRssXml ()
104
104
{
105
105
$ feed = $ this ->feedFactory ->create (
106
- $ this ->getFeeds (),
106
+ $ this ->getFeeds (),
107
107
FeedFactoryInterface::FORMAT_RSS
108
108
);
109
109
Original file line number Diff line number Diff line change @@ -18,24 +18,24 @@ public function __construct(
18
18
\Zend_Feed $ feed ,
19
19
array $ data
20
20
) {
21
- $ this ->feed = $ feed ;
22
- $ this ->data = $ data ;
21
+ $ this ->feed = $ feed ;
22
+ $ this ->data = $ data ;
23
23
}
24
24
25
25
/**
26
26
* Returns the formatted feed content
27
27
*
28
28
* @param string $format
29
- *
29
+ *
30
30
* @return string
31
31
*/
32
32
public function getFormattedContentAs (
33
33
$ format = self ::FORMAT_XML
34
34
) {
35
35
$ feed = $ this ->feed ::importArray (
36
- $ this ->data ,
36
+ $ this ->data ,
37
37
FeedFactoryInterface::FORMAT_RSS
38
38
);
39
39
return $ this ->feed ->saveXml ();
40
40
}
41
- }
41
+ }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function __construct(
48
48
* {@inheritdoc}
49
49
*/
50
50
public function create (
51
- array $ data ,
51
+ array $ data ,
52
52
$ format = FeedFactoryInterface::FORMAT_RSS
53
53
) {
54
54
if (!isset ($ this ->formats [$ format ])) {
@@ -62,7 +62,7 @@ public function create(
62
62
throw new \Magento \Framework \Exception \InputException (
63
63
__ ('Wrong format handler type ' ),
64
64
$ e
65
- );
65
+ );
66
66
}
67
67
68
68
try {
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ interface FeedFactoryInterface
17
17
18
18
/**
19
19
* Returns FeedInterface object from a custom array
20
- *
20
+ *
21
21
* @throws \Magento\Framework\Exception\InputException
22
22
* @throws \Magento\Framework\Exception\RuntimeException
23
23
* @param array $data
24
24
* @param string $format
25
25
* @return FeedInterface
26
26
*/
27
27
public function create (
28
- array $ data ,
28
+ array $ data ,
29
29
$ format = self ::FORMAT_RSS
30
30
);
31
31
}
Original file line number Diff line number Diff line change 10
10
*/
11
11
interface FeedInterface
12
12
{
13
- /**
13
+ /**
14
14
* XML feed output format
15
15
*/
16
16
const FORMAT_XML = 'xml ' ;
17
17
18
18
/**
19
19
* @param string $format
20
- *
20
+ *
21
21
* @return string
22
22
*/
23
23
public function getFormattedContentAs (
You can’t perform that action at this time.
0 commit comments