aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ExportService.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-02 14:38:32 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-02 14:38:32 +0200
commitbd9fa803f1f0c23face77fa1bc550d1198ce5ad6 (patch)
treeedba662e84e70a6b0f23c8379d4ef174f714e999 /app/Services/ExportService.php
parent4de1d5efea128e6cc70c71bad9be28d01e851f81 (diff)
PHPStan Level 7 complete DAOs (#5354)
* PHPStan Level 7 complete DAOs * Finalise PHPStan Level 7 for CategoryDAO * PHPStan Level 7 for Context and Search * Apply suggestions from code review Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>
Diffstat (limited to 'app/Services/ExportService.php')
-rw-r--r--app/Services/ExportService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php
index 0d45ba548..d3a3373a5 100644
--- a/app/Services/ExportService.php
+++ b/app/Services/ExportService.php
@@ -94,7 +94,7 @@ class FreshRSS_Export_Service {
*/
public function generateFeedEntries(int $feed_id, int $max_number_entries): ?array {
$feed = $this->feed_dao->searchById($feed_id);
- if (!$feed) {
+ if ($feed === null) {
return null;
}
@@ -127,7 +127,7 @@ class FreshRSS_Export_Service {
* @return array<string,string> Keys are filenames and values are contents.
*/
public function generateAllFeedEntries(int $max_number_entries): array {
- $feed_ids = $this->feed_dao->listFeedsIds() ?: [];
+ $feed_ids = $this->feed_dao->listFeedsIds();
$exported_files = [];
foreach ($feed_ids as $feed_id) {