mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 21:34:35 -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:
committed by
GitHub
parent
4de1d5efea
commit
bd9fa803f1
@@ -155,7 +155,10 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
|
||||
|
||||
foreach ($feeds as $feed) {
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
$feed['favicon'] = $feedDAO->searchById($feed['id'])->favicon();
|
||||
$feedObject = $feedDAO->searchById($feed['id']);
|
||||
if ($feedObject !== null) {
|
||||
$feed['favicon'] = $feedObject->favicon();
|
||||
}
|
||||
|
||||
$feedDate->setTimestamp($feed['last_date']);
|
||||
if ($feedDate >= $lastWeek) {
|
||||
|
||||
Reference in New Issue
Block a user