mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-24 03:58:33 -04:00
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>
This commit is contained in:
1 parent
4de1d5efea
commit
bd9fa803f1
15 files changed
+234
-247
No files matched your search
@@ -823,8 +823,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
$feed = $feedDAO->searchById($id);
|
||||
|
||||
if (!$feed) {
|
||||
if ($feed === null) {
|
||||
Minz_Request::bad(_t('feedback.sub.feed.not_found'), array());
|
||||
return;
|
||||
}
|
||||
@@ -854,8 +853,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
|
||||
$entryDAO = FreshRSS_Factory::createEntryDao();
|
||||
|
||||
$feed = $feedDAO->searchById($feed_id);
|
||||
|
||||
if (!$feed) {
|
||||
if ($feed === null) {
|
||||
Minz_Request::bad(_t('feedback.sub.feed.not_found'), array());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user