From 5368f38753a3e655ed3d7d7dfc7af2cc22de7980 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 10 Jan 2025 08:13:09 +0100 Subject: Reduce undeeded use of elvis operator ?: (#7204) --- app/Services/ExportService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Services/ExportService.php') 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) { -- cgit v1.2.3