Files
FreshRSS/app/views/javascript/actualize.phtml
Alexandre Alapetite 5b28a35003 Pass PHPStan level 9 (#6544)
* More PHPStan

* More, passing

* 4 more files

* Update to PHPStan 1.11.4
Needed for fixed bug: Consider numeric-string types after string concat
https://github.com/phpstan/phpstan/releases/tag/1.11.4

* Pass PHPStan level 9
Start tracking booleansInConditions

* Fix mark as read

* Fix doctype

* ctype_digit
2024-06-09 20:32:12 +02:00

26 lines
736 B
PHTML

<?php
declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */
$categories = [];
foreach ($this->categories as $category) {
$categories[] = [
'url' => Minz_Url::display(['c' => 'category', 'a' => 'refreshOpml', 'params' => ['id' => $category->id(), 'ajax' => '1']], 'php'),
'title' => $category->name(),
];
}
$feeds = [];
foreach ($this->feeds as $feed) {
$feeds[] = [
'url' => Minz_Url::display(['c' => 'feed', 'a' => 'actualize', 'params' => ['id' => $feed->id(), 'ajax' => '1']], 'php'),
'title' => $feed->name(),
];
}
echo json_encode([
'categories' => $categories,
'feeds' => $feeds,
'feedback_no_refresh' => _t('feedback.sub.feed.no_refresh'),
'feedback_actualize' => _t('feedback.sub.actualize'),
]);