From dfac9f5813df7d4c7c812c381364c8898333f559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 11 Sep 2024 17:14:53 +0200 Subject: PHPStan booleansInConditions (#6793) * PHPStan booleansInConditions * Uniformisation --- app/Controllers/importExportController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controllers/importExportController.php') diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php index 62f7721ab..50c2037fe 100644 --- a/app/Controllers/importExportController.php +++ b/app/Controllers/importExportController.php @@ -351,7 +351,7 @@ class FreshRSS_importExport_Controller extends FreshRSS_ActionController { } } - if ($feed != null) { + if ($feed !== null) { $article_to_feed[$item['guid']] = $feed->id(); if (!isset($newFeedGuids['f_' . $feed->id()])) { $newFeedGuids['f_' . $feed->id()] = []; @@ -627,7 +627,7 @@ class FreshRSS_importExport_Controller extends FreshRSS_ActionController { foreach ($export_feeds as $feed_id) { $result = $export_service->generateFeedEntries((int)$feed_id, $max_number_entries); - if (!$result) { + if ($result === null) { // It means the actual feed_id doesn’t correspond to any existing feed continue; } -- cgit v1.2.3