diff options
| author | 2025-01-10 08:13:09 +0100 | |
|---|---|---|
| committer | 2025-01-10 08:13:09 +0100 | |
| commit | 5368f38753a3e655ed3d7d7dfc7af2cc22de7980 (patch) | |
| tree | decb975aa750660cea965bf61399df2335493b9d /app/Services/ExportService.php | |
| parent | 3280ec617f8081bf0d5349e441ae564a42fdc500 (diff) | |
Reduce undeeded use of elvis operator ?: (#7204)
Diffstat (limited to 'app/Services/ExportService.php')
| -rw-r--r-- | app/Services/ExportService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php index e9acda614..69f0b3d2b 100644 --- a/app/Services/ExportService.php +++ b/app/Services/ExportService.php @@ -40,7 +40,7 @@ class FreshRSS_Export_Service { public function generateOpml(): array { $view = new FreshRSS_View(); $day = date('Y-m-d'); - $view->categories = $this->category_dao->listCategories(true, true) ?: []; + $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true, details: true); $view->excludeMutedFeeds = false; return [ @@ -64,7 +64,7 @@ class FreshRSS_Export_Service { */ public function generateStarredEntries(string $type): array { $view = new FreshRSS_View(); - $view->categories = $this->category_dao->listCategories(true) ?: []; + $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true); $day = date('Y-m-d'); $view->list_title = _t('sub.import_export.starred_list'); @@ -89,7 +89,7 @@ class FreshRSS_Export_Service { */ public function generateFeedEntries(int $feed_id, int $max_number_entries): ?array { $view = new FreshRSS_View(); - $view->categories = $this->category_dao->listCategories(true) ?: []; + $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true); $feed = FreshRSS_Category::findFeed($view->categories, $feed_id); if ($feed === null) { |
