Skip to content

Commit 6311d5c

Browse files
committed
Code fixes
1 parent 3a3683f commit 6311d5c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function getFormattedContentAs(
3636
$this->data,
3737
FeedFactoryInterface::FORMAT_RSS
3838
);
39-
return $this->feed->saveXml();
39+
return $feed->saveXml();
4040
}
4141
}

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
*/
1515
class FeedFactory implements FeedFactoryInterface
1616
{
17-
/**
18-
* @var FeedProcessorInterface
19-
*/
20-
private $feedProcessor;
21-
2217
/**
2318
* @var LoggerInterface
2419
*/
@@ -53,14 +48,14 @@ public function create(
5348
) {
5449
if (!isset($this->formats[$format])) {
5550
throw new \Magento\Framework\Exception\InputException(
56-
__('The format is not supported'),
51+
new \Magento\Framework\Phrase('The format is not supported'),
5752
$e
5853
);
5954
}
6055

6156
if (!is_subclass_of($this->formats[$format], \Magento\Framework\App\FeedInterface::class)) {
6257
throw new \Magento\Framework\Exception\InputException(
63-
__('Wrong format handler type'),
58+
new \Magento\Framework\Phrase('Wrong format handler type'),
6459
$e
6560
);
6661
}
@@ -73,7 +68,7 @@ public function create(
7368
} catch (\Exception $e) {
7469
$this->logger->error($e->getMessage());
7570
throw new \Magento\Framework\Exception\RuntimeException(
76-
__('There has been an error with import'),
71+
new \Magento\Framework\Phrase('There has been an error with import'),
7772
$e
7873
);
7974
}

0 commit comments

Comments
 (0)