refactor(FeedParser): (#3928)

This commit is contained in:
Dag 2024-01-29 21:51:06 +01:00 committed by GitHub
parent cfe3dcfe6d
commit c4fceab7b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 88 additions and 41 deletions

View file

@ -32,6 +32,7 @@ abstract class FeedExpander extends BridgeAbstract
$feedParser = new FeedParser();
$this->feed = $feedParser->parseFeed($xmlString);
$items = array_slice($this->feed['items'], 0, $maxItems);
// todo: extract parse logic out from FeedParser
foreach ($items as $item) {
// Give bridges a chance to modify the item
$item = $this->parseItem($item);