File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 1414 */
1515class 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 }
You can’t perform that action at this time.
0 commit comments