Skip to content

Commit 0770227

Browse files
committed
Some code style fixes
1 parent d2d397a commit 0770227

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function __construct(
2424

2525
/**
2626
* Returns the formatted feed content
27+
*
28+
* @param string $format
2729
*
2830
* @return string
2931
*/

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ public function __construct(
4545
}
4646

4747
/**
48-
* Get a new \Magento\Framework\App\FeedInterface object from a custom array
49-
*
50-
* @throws \Magento\Framework\Exception\InputException
51-
* @param array $data
52-
* @param string $format
53-
* @return \Magento\Framework\App\FeedInterface
48+
* {@inheritdoc}
5449
*/
5550
public function create(
5651
array $data,
@@ -63,7 +58,7 @@ public function create(
6358
);
6459
}
6560

66-
if (!is_subclass_of($this->formats[$format], '\Magento\Framework\App\FeedInterface')) {
61+
if (!is_subclass_of($this->formats[$format], \Magento\Framework\App\FeedInterface::class)) {
6762
throw new \Magento\Framework\Exception\InputException(
6863
__('Wrong format handler type'),
6964
$e

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
*/
66
namespace Magento\Framework\App;
77

8+
/**
9+
* Feed factory interface
10+
*/
811
interface FeedFactoryInterface
912
{
10-
13+
/**
14+
* RSS feed input format
15+
*/
1116
const FORMAT_RSS = 'rss';
1217

1318
/**
1419
* Returns FeedInterface object from a custom array
1520
*
1621
* @throws \Magento\Framework\Exception\InputException
22+
* @throws \Magento\Framework\Exception\RuntimeException
1723
* @param array $data
1824
* @param string $format
1925
* @return FeedInterface

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

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

8+
/**
9+
* Feed interface
10+
*/
811
interface FeedInterface
912
{
13+
/**
14+
* XML feed output format
15+
*/
1016
const FORMAT_XML = 'xml';
1117

1218
/**
19+
* @param string $format
20+
*
1321
* @return string
1422
*/
1523
public function getFormattedContentAs(

0 commit comments

Comments
 (0)